Showing
1 changed file
with
6 additions
and
2 deletions
@@ -46,8 +46,12 @@ public class StorageDepositController { | @@ -46,8 +46,12 @@ public class StorageDepositController { | ||
46 | @RequestMapping(value = "/batchBindShelfCode") | 46 | @RequestMapping(value = "/batchBindShelfCode") |
47 | public ApiResponse batchBindShelfCode(StorageDepositReq req) { | 47 | public ApiResponse batchBindShelfCode(StorageDepositReq req) { |
48 | LOGGER.info("batchBindShelfCode in. param is {}", req); | 48 | LOGGER.info("batchBindShelfCode in. param is {}", req); |
49 | - if(StringUtils.isEmpty(req.getShelfCode()) || StringUtils.isEmpty(req.getDepositCodeStr())) { | ||
50 | - return new ApiResponse.ApiResponseBuilder().data("").code(400).message("参数shelfCode或depositCodeStr不能为空").build(); | 49 | + if(StringUtils.isEmpty(req.getShelfCode())) { |
50 | + return new ApiResponse.ApiResponseBuilder().data("").code(400).message("参数shelfCode不能为空").build(); | ||
51 | + } | ||
52 | + if(StringUtils.isEmpty(req.getDepositCodeStr())){ | ||
53 | + return new ApiResponse.ApiResponseBuilder().data("").code(400).message("请先扫描商品").build(); | ||
54 | + | ||
51 | } | 55 | } |
52 | int result = storageDepositService.batchBindShelfCode(req.getShelfCode(), req.getDepositCodeStr()); | 56 | int result = storageDepositService.batchBindShelfCode(req.getShelfCode(), req.getDepositCodeStr()); |
53 | if(result > 0) { | 57 | if(result > 0) { |
-
Please register or login to post a comment