| | |
| | | private OrderDetlService orderDetlService; |
| | | @Autowired |
| | | private InOutService inOutService; |
| | | @Autowired |
| | | private MatService matService; |
| | | |
| | | public ReturnT<String> start(WrkMast wrkMast) { |
| | | // 4.入库完成 |
| | |
| | | locDetl.setModel(wrkDetl.getModel()); |
| | | |
| | | InOut inOut=inOutService.selectByMatnr(wrkDetl.getMatnr()); |
| | | Mat mat = matService.selectByMatnr(wrkDetl.getMatnr()); |
| | | if (inOut != null){ |
| | | inOut.setTemp1("在库"); |
| | | inOut.setTemp1("在库");//属性 是否在库 |
| | | inOut.setBrand(wrkDetl.getZpallet());//托盘条码 |
| | | inOut.setTemp2(mat.getName());//套号 |
| | | inOut.setTemp3(wrkMast.getLocNo());//库位号 |
| | | // inOut.setModiTime(now.toString()); |
| | | } |
| | | if (!inOutService.updateById(inOut)){ |
| | |
| | | |
| | | InOut inOut=inOutService.selectByMatnr(wrkDetl.getMatnr()); |
| | | if (inOut != null){ |
| | | inOut.setTemp1("不在库"); |
| | | inOut.setTemp1("不在库");//属性 是否在库 |
| | | inOut.setBrand("");//托盘条码 |
| | | inOut.setTemp3(""); |
| | | // inOut.setModiTime(now.toString()); |
| | | } |
| | | if (!inOutService.updateById(inOut)){ |
| | |
| | | |
| | | InOut inOut=inOutService.selectByMatnr(wrkDetl.getMatnr()); |
| | | if (inOut != null){ |
| | | inOut.setTemp1("在库"); |
| | | inOut.setTemp1("在库");//属性 是否在库 |
| | | inOut.setBrand(wrkDetl.getZpallet());//托盘条码 |
| | | inOut.setTemp3(wrkMast.getLocNo());//库位号 |
| | | // inOut.setModiTime(now.toString()); |
| | | } |
| | | if (!inOutService.updateById(inOut)){ |
| | |
| | | for (WrkDetl wrkDetl : wrkDetls101) { |
| | | InOut inOut=inOutService.selectByMatnr(wrkDetl.getMatnr()); |
| | | if (inOut != null){ |
| | | inOut.setTemp1("不在库"); |
| | | inOut.setTemp1("不在库");//属性 是否在库 |
| | | inOut.setBrand("");//托盘条码 |
| | | inOut.setTemp3("");//库位号 |
| | | // inOut.setModiTime(now.toString()); |
| | | } |
| | | if (!inOutService.updateById(inOut)){ |