Bläddra i källkod

feat(采购):签署

Wangyafan 6 månader sedan
förälder
incheckning
037f26b9f2

+ 3 - 1
src/main/java/com/sunxung/factoring/service/purchcontractmanagement/impl/PurchContractSignConclusionServiceImpl.java

@@ -137,7 +137,9 @@ public class PurchContractSignConclusionServiceImpl extends ServiceImpl<PurchCon
             PurchContractApproval latestPurchContractApproval = purchContractApprovalService
                     .getOne(new QueryWrapper<PurchContractApproval>().eq("purch_contract_basic_info_id", purch.getId())
                             .eq("visible", 1)
-                            .orderByDesc("gmt_create").last("limit 1"));
+                            .eq("approval_conclusion", "pass")
+                            .orderByDesc("gmt_create")
+                            .last("limit 1"));
             if (latestPurchContractApproval == null) {
                 return null;
             }