Showing
3 changed files
with
5 additions
and
5 deletions
@@ -141,7 +141,7 @@ public class StorageDepositController { | @@ -141,7 +141,7 @@ public class StorageDepositController { | ||
141 | if(StringUtils.isEmpty(req.getShelfCode())) { | 141 | if(StringUtils.isEmpty(req.getShelfCode())) { |
142 | return new ApiResponse.ApiResponseBuilder().code(400).message("请扫描货位号").build(); | 142 | return new ApiResponse.ApiResponseBuilder().code(400).message("请扫描货位号").build(); |
143 | } | 143 | } |
144 | - boolean result = storageDepositService.queryIsShelfCodeExist(req.getShelfCode()); | 144 | + int result = storageDepositService.queryIsShelfCodeExist(req.getShelfCode()); |
145 | return new ApiResponse.ApiResponseBuilder().code(200).data(result).message("查询成功").build(); | 145 | return new ApiResponse.ApiResponseBuilder().code(200).data(result).message("查询成功").build(); |
146 | } | 146 | } |
147 | 147 |
@@ -53,5 +53,5 @@ public interface IStorageDepositService { | @@ -53,5 +53,5 @@ public interface IStorageDepositService { | ||
53 | 53 | ||
54 | void saveShelfCode(MultipartFile file) throws Exception; | 54 | void saveShelfCode(MultipartFile file) throws Exception; |
55 | 55 | ||
56 | - boolean queryIsShelfCodeExist(String shelfCode); | 56 | + int queryIsShelfCodeExist(String shelfCode); |
57 | } | 57 | } |
@@ -351,14 +351,14 @@ public class StorageDepositServiceImpl implements IStorageDepositService, IBusin | @@ -351,14 +351,14 @@ public class StorageDepositServiceImpl implements IStorageDepositService, IBusin | ||
351 | } | 351 | } |
352 | 352 | ||
353 | @Override | 353 | @Override |
354 | - public boolean queryIsShelfCodeExist(String shelfCode) { | 354 | + public int queryIsShelfCodeExist(String shelfCode) { |
355 | //校验货位号是否存在 | 355 | //校验货位号是否存在 |
356 | DepositShelfCode shelfCodeDb = depositShelfCodeMapper.selectByShelfCode(shelfCode); | 356 | DepositShelfCode shelfCodeDb = depositShelfCodeMapper.selectByShelfCode(shelfCode); |
357 | if(null == shelfCodeDb) { | 357 | if(null == shelfCodeDb) { |
358 | - return false; | 358 | + return 0;//不存在 |
359 | } | 359 | } |
360 | 360 | ||
361 | - return true; | 361 | + return 1;//存在 |
362 | } | 362 | } |
363 | 363 | ||
364 | private PageResponseBO<StorageDepositPickRsp> queryDepositPickListByQueryStr(String queryStr, Integer status, Integer depotNo){ | 364 | private PageResponseBO<StorageDepositPickRsp> queryDepositPickListByQueryStr(String queryStr, Integer status, Integer depotNo){ |
-
Please register or login to post a comment