فهرست منبع

更新 'src/main/java/com/steerinfo/dil/service/impl/WmspGridMaterialServiceImpl.java'

胡杰焕 3 سال پیش
والد
کامیت
dec9cda970
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/main/java/com/steerinfo/dil/service/impl/WmspGridMaterialServiceImpl.java

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

@@ -277,8 +277,10 @@ public class WmspGridMaterialServiceImpl  implements IWmspGridMaterialService {
         BigDecimal checkId = wmspCheckWarehouseMapper.getMaxId();
         if (checkId==null){
             checkId=new BigDecimal(1);
+        }else{
+            checkId.add(new BigDecimal(1));
         }
-        wmspCheckWarehouse.setCheckId(checkId.add(new BigDecimal(1)));
+        wmspCheckWarehouse.setCheckId(checkId);
         int result = wmspCheckWarehouseMapper.insertSelective(wmspCheckWarehouse);
 
         return result;