| | |
| | | private CommonService commonService; |
| | | @Autowired |
| | | private WrkDetlService wrkDetlService; |
| | | @Autowired |
| | | private LocNormalService locNormalService; |
| | | |
| | | @Override |
| | | public Page<OutStockBillEntry> queryOutStock(Page<OutStockBillEntry> page) { |
| | |
| | | List<LocDetl> locList = new ArrayList<LocDetl>(); |
| | | for (Integer i = 0; i < matList.size(); i++) { |
| | | /*自动根据物料编码选取最优出货顺序(先进先出,靠外货物先出)*/ |
| | | tempLocList = baseMapper.queryMatWithLoc(matList.get(i).getFNumber()); |
| | | tempLocList = baseMapper.queryMatWithLoc(matList.get(i).getFnumber()); |
| | | BigDecimal needNum = matList.get(i).getFAuxQty(); |
| | | BigDecimal locNum = BigDecimal.ZERO; |
| | | if (tempLocList.size() > 0) { |
| | |
| | | } |
| | | } |
| | | return locList; |
| | | } |
| | | |
| | | @Override |
| | | public Integer queryOutStockFInterID(String supplier) { |
| | | return baseMapper.queryOutStockFInterID(supplier); |
| | | } |
| | | |
| | | @Override |
| | |
| | | wrkDetl.setAppeUser(userId); |
| | | wrkDetl.setModiTime(new Date()); |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetl.setWarehouse(fbillNo); |
| | | wrkDetl.setSupplier(fbillNo); |
| | | wrkDetl.setMemo(detlDto.getLocDetl().getMemo()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |