| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/trayCode/latest") |
| | | @ManagerAuth |
| | | public R trayCodeLatest() { |
| | | TrayCode latest = trayCodeService.selectOne(new EntityWrapper<TrayCode>().orderBy("id", false)); |
| | | return R.ok().add(latest==null?"000001":latest.getTrayNo()); |
| | | } |
| | | |
| | | @RequestMapping(value = "/trayCode/print/preview") |
| | | @ManagerAuth |
| | | public R printPreview(@RequestParam String startNo, |
| | | @RequestParam Integer count, |
| | | @RequestParam Integer type) { |
| | | @RequestParam Integer count, |
| | | @RequestParam Integer type) { |
| | | if (count <= 0) { |
| | | return R.error("数量必须大于零"); |
| | | } |