lyhzzz 11 ay önce
ebeveyn
işleme
edaabb1f40

+ 1 - 0
src/main/java/com/fdkankan/sale/common/ResultCode.java

@@ -52,6 +52,7 @@ public enum ResultCode  {
     DING_SEND_ERROR(60026, "发送钉钉失败"),
     NOt_PAY(60027, "未进行支付登记"),
 
+    PRICE_COUNT_NOT(60028, "报价单备件数量为空"),
 
     ;
 

+ 3 - 0
src/main/java/com/fdkankan/sale/service/impl/RepairSaleService.java

@@ -199,6 +199,9 @@ public class RepairSaleService {
             if(priceList.getType() == null){
                 throw new BusinessException(ResultCode.PRICE_TYPE_NOT);
             }
+            if(priceList.getCount() == null){
+                throw new BusinessException(ResultCode.PRICE_COUNT_NOT);
+            }
             if(priceList.getType() == 0){   //设备备件
                 if(priceList.getPartId() == null ||  partMap.get(priceList.getPartId()) == null || priceList.getDiscount() == null){
                     throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);