Authored by caoyan

质检优化

... ... @@ -141,7 +141,7 @@ public class StorageDepositController {
if(StringUtils.isEmpty(req.getShelfCode())) {
return new ApiResponse.ApiResponseBuilder().code(400).message("请扫描货位号").build();
}
boolean result = storageDepositService.queryIsShelfCodeExist(req.getShelfCode());
int result = storageDepositService.queryIsShelfCodeExist(req.getShelfCode());
return new ApiResponse.ApiResponseBuilder().code(200).data(result).message("查询成功").build();
}
... ...
... ... @@ -53,5 +53,5 @@ public interface IStorageDepositService {
void saveShelfCode(MultipartFile file) throws Exception;
boolean queryIsShelfCodeExist(String shelfCode);
int queryIsShelfCodeExist(String shelfCode);
}
... ...
... ... @@ -351,14 +351,14 @@ public class StorageDepositServiceImpl implements IStorageDepositService, IBusin
}
@Override
public boolean queryIsShelfCodeExist(String shelfCode) {
public int queryIsShelfCodeExist(String shelfCode) {
//校验货位号是否存在
DepositShelfCode shelfCodeDb = depositShelfCodeMapper.selectByShelfCode(shelfCode);
if(null == shelfCodeDb) {
return false;
return 0;//不存在
}
return true;
return 1;//存在
}
private PageResponseBO<StorageDepositPickRsp> queryDepositPickListByQueryStr(String queryStr, Integer status, Integer depotNo){
... ...