修改供应商为非必填
This commit is contained in:
parent
115c722e3b
commit
b8e1907d49
|
|
@ -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()));
|
||||
|
|
|
|||
Loading…
Reference in New Issue