yangdamao 2 anos atrás
pai
commit
5680f2b988

+ 8 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/top/goods/service/impl/TopOldOrderServiceImpl.java

@@ -2368,6 +2368,14 @@ public class TopOldOrderServiceImpl extends ServiceImpl<TopOldOrderMapper, TopOl
                                 //账款未收完 不能完单
                                 throw new CustomException(String.format("订单号存在未收账款不能完单【%s】", orderSn));
                             }
+                            if (order.getFinishStatus() == 1) {
+                                //账款未收完 不能完单
+                                throw new CustomException(String.format("订单已完单不能重复完单【%s】", orderSn));
+                            }
+                            if (order.getCheckStatus() != 1) {
+                                //账款未收完 不能完单
+                                throw new CustomException(String.format("订单未审核不能完单【%s】", orderSn));
+                            }
                             //成本设置项
                             String costJson = order.getCostJson();
                             if (StringUtils.isBlank(costJson)) {