| | |
| | | @ApiOperation("单据信息修改") |
| | | @PostMapping("/transfer/items/update") |
| | | @PreAuthorize("hasAuthority('manager:transfer:update')") |
| | | public R orderAndrItemUpdate(@RequestBody TransferItemParams params) throws Exception { |
| | | public R orderAndrItemUpdate(@RequestBody TransferItemParams params) { |
| | | if (Objects.isNull(params)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | |
| | | @ApiOperation("获取原库区物料信息") |
| | | @PostMapping("/transfer/locs/items") |
| | | @PreAuthorize("hasAuthority('manager:transfer:list')") |
| | | public R locsPage(@RequestBody OrgLocParams params) throws Exception { |
| | | public R locsPage(@RequestBody OrgLocParams params) { |
| | | if (Objects.isNull(params)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | |
| | | @PostMapping("/transfer/template/download") |
| | | @ApiOperation("下载盘点单模板") |
| | | @PreAuthorize("hasAuthority('manager:transfer:update')") |
| | | public void downloadTemplate(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | public void downloadTemplate(@RequestBody Map<String, Object> map, HttpServletResponse response) { |
| | | CheckOrderTemplate template = ExcelUtil.mockData(CheckOrderTemplate.class); |
| | | List<CheckOrderTemplate> list = Arrays.asList(template); |
| | | ExcelUtil.build(ExcelUtil.create(list, CheckOrderTemplate.class, true), response); |