Преглед изворни кода

补录订单没有费用信息校验提示异常的修复

dongxin пре 1 година
родитељ
комит
6309906532

+ 1 - 1
src/main/java/com/ydtech/modules/order/service/impl/InsAreaCompanyServiceImpl.java

@@ -578,7 +578,7 @@ public class InsAreaCompanyServiceImpl extends ServiceImpl<InsAreaCompanyMapper,
 
         List<PtlAgreementProductCostsNew> costsNews = ptlAgreementProductCostsNewService.getByAgreementId(agreementProductQueryVo);
 
-        if (costsNews.isEmpty() && !Objects.isNull(quoteVo.getNowCostsId())) {
+        if (costsNews.isEmpty() || Objects.isNull(quoteVo.getNowCostsId()) ) {
             throw new SystemException("没有找到费用信息");
         }
         PtlAgreementProductCostsNew ptlAgreementProductCostsNew = costsNews.get(0);