| | |
| | | // }catch (Exception e){ |
| | | // log.error("工作档案明细输入电视机失败1:异常信息==》"+e); |
| | | // } |
| | | wrkDetls.forEach(wrkDetl -> ledCommand.getMatDtos().add(new MatDto( |
| | | |
| | | if (!wrkDetls.isEmpty()) { |
| | | WrkDetl wrkDetl = wrkDetls.get(0); |
| | | for (WrkDetl detl : wrkDetls) { |
| | | double anfme = wrkDetl.getAnfme() + detl.getAnfme(); |
| | | double weight = wrkDetl.getWeight() + detl.getWeight(); |
| | | double stockNum = wrkDetl.getStockNum() + detl.getStockNum(); |
| | | double stockNum2 = wrkDetl.getStockNum2() + detl.getStockNum2(); |
| | | wrkDetl.setAnfme(anfme); |
| | | wrkDetl.setWeight(weight); |
| | | wrkDetl.setStockNum(stockNum); |
| | | wrkDetl.setStockNum2(stockNum2); |
| | | } |
| | | |
| | | ledCommand.getMatDtos().add(new MatDto( |
| | | wrkDetl.getMatnr() |
| | | , wrkDetl.getMaktx() |
| | | , wrkDetl.getAnfme() |
| | |
| | | , wrkDetl.getKpCstmrName() |
| | | , wrkDetl.getOrderNo() |
| | | , wrkDetl.getCstateid$() |
| | | ))); |
| | | )); |
| | | |
| | | // wrkDetls.forEach(wrkDetl -> ledCommand.getMatDtos().add(new MatDto( |
| | | // wrkDetl.getMatnr() |
| | | // , wrkDetl.getMaktx() |
| | | // , wrkDetl.getAnfme() |
| | | // , wrkDetl.getWeight() |
| | | // , wrkDetl.getStockNum() |
| | | // , wrkDetl.getStockNum2() |
| | | // , wrkDetl.getSpecs() |
| | | // , wrkDetl.getSku() |
| | | // , wrkDetl.getZpallet() |
| | | // , wrkDetl.getModel() |
| | | // , wrkDetl.getSupp() |
| | | // , wrkDetl.getKpCstmrName() |
| | | // , wrkDetl.getOrderNo() |
| | | // , wrkDetl.getCstateid$() |
| | | // ))); |
| | | } |
| | | |
| | | } |
| | | commands.add(ledCommand); |
| | | } |