| | |
| | | // ledCommand.setSourceStaNo(wrkMast.getSourceStaNo()); |
| | | if (wrkMast.getIoType() != 110 && wrkMast.getIoType() != 10) { |
| | | List<WrkDetl> wrkDetls = wrkDetlService.findByWorkNo(wrkMast.getWrkNo()); |
| | | wrkDetls.forEach(wrkDetl -> ledCommand.getMatDtos().add(new MatDto(wrkDetl.getMatnr(), wrkDetl.getMaktx(), wrkDetl.getAnfme(),wrkDetl.getSpecs(),wrkDetl.getBatch()))); |
| | | wrkDetls.forEach(wrkDetl -> ledCommand.getMatDtos().add(new MatDto(wrkDetl.getMatnr(), wrkDetl.getMaktx(), wrkDetl.getAnfme(),wrkDetl.getSpecs(),wrkDetl.getBatch(),wrkDetl.getMemo()))); |
| | | } |
| | | commands.add(ledCommand); |
| | | } |
| | |
| | | this.maknx = maknx; |
| | | this.count = count; |
| | | } |
| | | public MatDto(String matNo, String maknx, Double count,String specs,String batch) { |
| | | public MatDto(String matNo, String maknx, Double count,String specs,String batch, String memo) { |
| | | this.batch = batch; |
| | | this.specs = specs; |
| | | this.matnr = matNo; |
| | | this.maknx = maknx; |
| | | this.count = count; |
| | | this.total = Double.valueOf(memo); |
| | | } |
| | | public MatDto(String matNo, String maknx, Double count,Double total,String specs) { |
| | | this.specs = specs; |
| | |
| | | String strQty = matDto.getCount().toString(); |
| | | int idx = strQty.lastIndexOf("."); |
| | | if(idx >= 0){ |
| | | strQty.substring(0,idx); |
| | | strQty = strQty.substring(0,idx); |
| | | } |
| | | page.newLine(matDto.getBatch() + "[数量" + strQty +"]"); |
| | | |
| | | page.newLine(matDto.getMatnr()); |
| | | page.newLine(matDto.getMaknx()); |
| | | page.newLine("[数量:" + strQty + "/" + matDto.getTotal().intValue()+"]"); |
| | | // page.newLine(matDto.getMaknx() + "[数量" + strQty +"]"); |
| | | // page.newLine(matDto.getMaknx() + "【数量" + matDto.getCount() +"】"); |
| | | } |
| | |
| | | </resultMap> |
| | | |
| | | <select id="findByWorkNo" resultMap="BaseResultMap"> |
| | | select wrk_no, mat_no as matnr, mat_name as maktx, qty as anfme ,specs, supplier as batch from asr_wrk_detl where 1=1 and wrk_no = #{workNo} |
| | | select wrk_no, mat_no as matnr, mat_name as maktx, qty as anfme ,specs, supplier as batch,memo from asr_wrk_detl where 1=1 and wrk_no = #{workNo} |
| | | </select> |
| | | |
| | | <update id="updateIoTime"> |