...
|
...
|
@@ -46,8 +46,12 @@ public class StorageDepositController { |
|
|
@RequestMapping(value = "/batchBindShelfCode")
|
|
|
public ApiResponse batchBindShelfCode(StorageDepositReq req) {
|
|
|
LOGGER.info("batchBindShelfCode in. param is {}", req);
|
|
|
if(StringUtils.isEmpty(req.getShelfCode()) || StringUtils.isEmpty(req.getDepositCodeStr())) {
|
|
|
return new ApiResponse.ApiResponseBuilder().data("").code(400).message("参数shelfCode或depositCodeStr不能为空").build();
|
|
|
if(StringUtils.isEmpty(req.getShelfCode())) {
|
|
|
return new ApiResponse.ApiResponseBuilder().data("").code(400).message("参数shelfCode不能为空").build();
|
|
|
}
|
|
|
if(StringUtils.isEmpty(req.getDepositCodeStr())){
|
|
|
return new ApiResponse.ApiResponseBuilder().data("").code(400).message("请先扫描商品").build();
|
|
|
|
|
|
}
|
|
|
int result = storageDepositService.batchBindShelfCode(req.getShelfCode(), req.getDepositCodeStr());
|
|
|
if(result > 0) {
|
...
|
...
|
|