| | |
| | | import com.zy.asrs.entity.MatCode; |
| | | import com.zy.asrs.entity.MatCodePrint; |
| | | import com.zy.asrs.service.MatCodeService; |
| | | import com.zy.asrs.utils.VersionUtils; |
| | | import com.zy.common.CodeRes; |
| | | import com.zy.common.config.AdminInterceptor; |
| | | import com.zy.common.utils.BarcodeUtils; |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/matCode/auth") |
| | | // @ManagerAuth |
| | | @ManagerAuth |
| | | public R find(@RequestParam("id") String id) { |
| | | return R.ok(matCodeService.selectById(String.valueOf(id))); |
| | | } |
| | |
| | | List<MatCode> list = matCodeService.selectList(new EntityWrapper<>()); |
| | | List<MatCodeExcel> excels = new ArrayList<>(); |
| | | for (MatCode matCode : list) { |
| | | MatCodeExcel excel = new MatCodeExcel(); |
| | | excel.setMatNo(matCode.getMatNo()); |
| | | excel.setBarcode(matCode.getBarcode()); |
| | | excel.setMatName(matCode.getMatName()); |
| | | excel.setStr1(matCode.getStr1()); |
| | | MatCodeExcel excel = VersionUtils.getExcel(matCode); |
| | | excels.add(excel); |
| | | if (rowCount != null && excels.size() >= rowCount){ |
| | | break; |