Browse Source

快速出入库报错

3254194295 1 year ago
parent
commit
be9f8877c9

+ 1 - 1
platform-service/src/main/java/com/platform/service/store/impl/InStoreFormServiceImpl.java

@@ -419,7 +419,7 @@ public class InStoreFormServiceImpl extends BaseServiceImpl<InStoreFormMapper, I
         BigDecimal maxStock = sparePartInfo.getMaxStock()==null?new BigDecimal(0):sparePartInfo.getMaxStock();
 
         if (num.intValue()+model.getInNum()>maxStock.intValue()){
-            throw new BusinessException("该备件的最大库存量为"+sparePartInfo.getMaxStock()+"目前已超出,请修改入库数量!");
+            throw new BusinessException("该备件的最大库存量为"+maxStock+"目前已超出,请修改入库数量!");
         }
         UserInfo userInfo = SecurityUtils.getUserInfo();
         Weekend<InStoreForm> weekend = new Weekend<>(InStoreForm.class);