| | |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @PostMapping("/page") |
| | | @ApiOperation("转运箱分页列表") |
| | | @PostMapping("/page") |
| | | public R<PageDTO<MwBoxVO>> pageList(@Valid @RequestBody MwBoxPageQuery query) { |
| | | return R.ok(boxService.pageList(query)); |
| | | } |
| | |
| | | * @param boxNumberEnd |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | @ApiOperation("新增转运箱") |
| | | @PostMapping("/add") |
| | | @ApiImplicitParams({@ApiImplicitParam(name = "boxNumberStart", value = "转运箱编号开始", required = true), |
| | | @ApiImplicitParam(name = "boxNumberEnd", value = "转运箱编号结束", required = true)}) |
| | | public R<?> add(@RequestParam String boxNumberStart, @RequestParam String boxNumberEnd) { |
| | |
| | | * @param dtoList |
| | | * @return |
| | | */ |
| | | @PostMapping("/editBatch") |
| | | @ApiOperation("批量修改转运箱状态") |
| | | @PostMapping("/editBatch") |
| | | public R<?> editBatch(@Valid @RequestBody List<MwBoxDTO> dtoList) { |
| | | boxService.editBatch(dtoList); |
| | | return R.ok(); |
| | |
| | | * @param idList |
| | | * @return |
| | | */ |
| | | @PostMapping("/delBatch") |
| | | @ApiOperation("批量删除") |
| | | @PostMapping("/delBatch") |
| | | public R<?> delBatch(@ApiParam(name = "idList", value = "转运箱id列表", required = true, allowMultiple = true) @NotEmpty(message = "转运箱列表不能为空") @RequestBody List<Long> idList) { |
| | | boxService.removeByIds(idList); |
| | | return R.ok(); |