Browse Source

问题处理

yzc 1 năm trước cách đây
mục cha
commit
62da398afd

+ 1 - 5
hx-sale/src/main/java/com/fjhx/sale/service/contract/impl/ContractServiceImpl.java

@@ -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