| | |
| | | @ExcelProperty(index = 1, value = "打印数量") |
| | | private String anfme; |
| | | |
| | | @ExcelProperty(index = 2, value = "制令") |
| | | private String decrees; |
| | | } |
| | |
| | | } catch (Exception e){ |
| | | matax = ""; |
| | | } |
| | | String decrees = ""; |
| | | try{ |
| | | decrees = excel.getDecrees(); |
| | | } catch (Exception e){ |
| | | decrees = ""; |
| | | } |
| | | String anfme = "1"; |
| | | try{ |
| | | String anfme1 = excel.getAnfme(); |
| | |
| | | } catch (Exception e){ |
| | | anfme = "1"; |
| | | } |
| | | String[] s=new String[3]; |
| | | String[] s=new String[4]; |
| | | s[0] = matnr; |
| | | s[1] = matax; |
| | | s[2] = anfme; |
| | | s[3] = decrees; |
| | | printMatList.add(s); |
| | | total++; |
| | | totalAnfme = totalAnfme+Integer.parseInt(anfme); |
| | |
| | | String matnr = printMat[0]; |
| | | String matax = printMat[1]; |
| | | String anfme = printMat[2]; |
| | | String decrees = printMat[3]; |
| | | Integer intAnfme = 1; |
| | | try{ |
| | | Integer intAnfme1 = Integer.parseInt(anfme); |
| | |
| | | locInPrintMat.setUpdateBy(userId); |
| | | locInPrintMat.setCreateTime(now); |
| | | locInPrintMat.setUpdateTime(now); |
| | | locInPrintMat.setDecrees(decrees); |
| | | locInPrintMatService.save(locInPrintMat); |
| | | } |
| | | |
| | |
| | | @ApiModelProperty(value= "商品名称") |
| | | private Long ownerId; |
| | | |
| | | @ApiModelProperty(value="制令") |
| | | private String decrees; |
| | | |
| | | public LocInPrintMat() {} |
| | | |
| | | public LocInPrintMat(String uuid,Integer status,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo,String matnr,String batch,Double anfme,String locNo,String maktx) { |
| | |
| | | @Autowired |
| | | private LocDetlService locDetlService; |
| | | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | // @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void orderComplete() { |
| | | //订单完成上报 |
| | | |
| | |
| | | print.setMemo(mat.getMemo()); |
| | | |
| | | print.setMaterial(mat.getMaterial()); |
| | | print.setDecrees(mat.getDecrees()); |
| | | print.setDecrees(locInPrintMat.getDecrees()); |
| | | print.setImgNum(mat.getImgNum()); |
| | | print.setWeight(String.valueOf(mat.getWeight())); |
| | | print.setModel(mat.getModel()); |
| | |
| | | log.error("", e); } |
| | | } |
| | | } |
| | | if (success){ |
| | | if (!success){ |
| | | return FAIL.setMsg("上報失敗"); |
| | | } |
| | | return SUCCESS; |