| | |
| | | , param.get("matnr") |
| | | , param.get("maktx") |
| | | , param.get("specs") |
| | | , param.get("mat_type") |
| | | ) |
| | | ); |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/mat/covert/{id}/auth") |
| | | @ManagerAuth |
| | | public R covert(@PathVariable("id") String id) { |
| | | Mat mat = matService.selectByMatnr(String.valueOf(id)); |
| | | public R covert(@PathVariable("id") String id) throws UnsupportedEncodingException{ |
| | | byte[] decode = Base64.getDecoder().decode(id); |
| | | String id2 = new String(decode, "utf-8"); |
| | | Mat mat = matService.selectByMatnr(id2); |
| | | if (mat == null) { |
| | | return R.ok(); |
| | | } |
| | |
| | | List<MatPrint> res = new ArrayList<>(); |
| | | for (String matnr : param){ |
| | | Mat mat = matService.selectByMatnr(matnr); |
| | | if(Cools.isEmpty(mat)) { |
| | | continue; |
| | | } |
| | | // 打印数据注入 |
| | | MatPrint print = new MatPrint(); |
| | | print.setMatnr(mat.getMatnr()); |