|
@@ -1348,11 +1348,7 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
.set(BasePo::getUpdateTime, new Date())
|
|
|
.set(BasePo::getUpdateUser, SecurityUtils.getUserId())
|
|
|
);
|
|
|
- List<EhsdPurchase> purchaseList = ehsdPurchaseService.list(q -> q
|
|
|
- .eq(EhsdPurchase::getDataResourceId, businessId)
|
|
|
- .eq(EhsdPurchase::getStatus, 10)
|
|
|
- );
|
|
|
- List<Long> flowIds = purchaseList.stream().map(EhsdPurchase::getFlowId).collect(Collectors.toList());
|
|
|
+ List<Long> flowIds = ehsdPurchaseService.listObject(EhsdPurchase::getFlowId, q -> q.eq(EhsdPurchase::getDataResourceId, businessId));
|
|
|
if (ObjectUtil.isNotEmpty(flowIds)) {
|
|
|
//修改流程审批状态
|
|
|
flowExampleService.update(q -> q
|