| | |
| | | public void startupFullTakeStore(StockOutParam param, Long userId) { |
| | | //判断出库熟练是否大于库存数量 |
| | | for (StockOutParam.LocDetl detl : param.getLocDetls()) { |
| | | LocDetl locDetl = locDetlService.selectById(detl.getLocNo()); |
| | | // LocDetl locDetl = locDetlService.selectById(detl.getLocNo()); |
| | | LocDetl locDetl = locDetlService.selectOne(new EntityWrapper<LocDetl>().eq("loc_no",detl.getLocNo())); |
| | | if(locDetl != null){ |
| | | if(detl.getCount() > locDetl.getAnfme()){ |
| | | throw new CoolException("出库数量超过了库存数量[locNo=" + detl.getLocNo() + "]"); |