Commit 3e730809 authored by lisong's avatar lisong

监管码导出bug修复

parent 7943cbaf
......@@ -491,11 +491,14 @@ public class EquipmentCategoryController extends BaseController {
LambdaQueryWrapper<IdxBizJgOtherInfo> lambda = new QueryWrapper<IdxBizJgOtherInfo>().lambda();
lambda.eq(IdxBizJgOtherInfo::getClaimStatus, "已认领");
lambda.in(IdxBizJgOtherInfo::getCode96333, code96333);
Integer integer = idxBizJgOtherInfoMapper.selectCount(lambda);
if (!ObjectUtils.isEmpty(strings) && strings.size() != integer){
throw new FileDownLoadException("96333码存在重复数据,请联系管理员!");
}
if (ObjectUtils.isEmpty(strings) && !String.valueOf(code96333.size()).equals(String.valueOf(integer))) {
// Integer integer = idxBizJgOtherInfoMapper.selectCount(lambda);
List<IdxBizJgOtherInfo> idxBizJgOtherInfos = idxBizJgOtherInfoMapper.selectList(lambda);
List<String> collect = idxBizJgOtherInfos.stream().map(IdxBizJgOtherInfo::getCode96333).collect(Collectors.toList());
HashSet<String> strings1 = new HashSet<>(collect);
// if (!ObjectUtils.isEmpty(strings) && strings.size() != strings1.size()){
// throw new FileDownLoadException("96333码存在重复数据,请联系管理员!");
// }
if (code96333.size()!=strings1.size()) {
throw new FileDownLoadException("96333码存在重复数据,请联系管理员!");
}
}
......@@ -504,11 +507,11 @@ public class EquipmentCategoryController extends BaseController {
LambdaQueryWrapper<IdxBizJgOtherInfo> lambda = new QueryWrapper<IdxBizJgOtherInfo>().lambda();
lambda.eq(IdxBizJgOtherInfo::getClaimStatus, "已认领");
lambda.in(IdxBizJgOtherInfo::getSupervisoryCode, supervisoryCode);
Integer integer = idxBizJgOtherInfoMapper.selectCount(lambda);
if (!ObjectUtils.isEmpty(strings) && strings.size() != integer){
throw new FileDownLoadException("监管码存在重复数据,请联系管理员!");
}
if (ObjectUtils.isEmpty(strings) && !String.valueOf(supervisoryCode.size()).equals(String.valueOf(integer))) {
// Integer integer = idxBizJgOtherInfoMapper.selectCount(lambda);
List<IdxBizJgOtherInfo> idxBizJgOtherInfos = idxBizJgOtherInfoMapper.selectList(lambda);
List<String> collect = idxBizJgOtherInfos.stream().map(IdxBizJgOtherInfo::getSupervisoryCode).collect(Collectors.toList());
HashSet<String> strings1 = new HashSet<>(collect);
if (supervisoryCode.size() != strings1.size()) {
throw new FileDownLoadException("监管码存在重复数据,请联系管理员!");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment