修改供应商为非必填

This commit is contained in:
牛叉闪闪
2024-08-05 11:32:15 +08:00
parent 115c722e3b
commit b8e1907d49

View File

@@ -264,7 +264,7 @@ public class TbConsInfoServiceImpl implements TbConsInfoService {
stockOperate.setSubType(-1);
if(conInfos.getStockNumber().compareTo(info.getStockNumber())>0){
throw new BadRequestException("库存不允许为负数");
throw new BadRequestException("出库数量大于现有的库存数量");
}
info.setStockNumber(info.getStockNumber().subtract(conInfos.getStockNumber()));