luobang 1 year ago
parent
commit
fa300a225f

+ 1 - 1
src/main/java/com/steerinfo/dil/service/impl/BmstruckDetailsOrderServiceImpl.java

@@ -1196,7 +1196,7 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
     public int updateDetailsDirect(Map<String, Object> mapValue) throws Exception {
         List<BigDecimal> orderIds = (List<BigDecimal>) mapValue.get("orderList");
         BigDecimal priceValue = DataChange.dataToBigDecimal(mapValue.get("detailAmount"));//以java变量名为准,这里是所填写的单价值
-        if(priceValue.intValue() <= 0){
+        if(priceValue.intValue() < 0){
             throw new Exception("单价不能小于等于0");
         }
         String detailRemark = mapValue.get("detailRemark").toString();