Commit dd6d1920 authored by suhuiguang's avatar suhuiguang

fix(jyjc): 报检规则4.0开发

1.报检结果页面,内部人员编号错误显示为内部编号,调整显示为身份证号
parent 5b6a1a47
......@@ -97,12 +97,12 @@ public class CommonController extends BaseController {
if (CollectionUtils.isEmpty(userPhones)) {
return null;
}
List<String> phones = userPhones.stream().filter(e -> StringUtils.isNotEmpty(e.getInnerPersonCode())).map(TzsUserInfo::getInnerPersonCode).collect(Collectors.toList());
List<String> certNubs = userPhones.stream().map(TzsUserInfo::getCertificateNum).filter(StringUtils::isNotEmpty).collect(Collectors.toList());
Map<String, Object> map = new HashMap<>();
if (CollectionUtils.isEmpty(phones)) {
map.put("innerPersonCode", " ");
if (CollectionUtils.isEmpty(certNubs)) {
map.put("innerPersonCode", "");
} else {
String innerPersonCode = String.join(",", phones);
String innerPersonCode = String.join(",", certNubs);
map.put("innerPersonCode", innerPersonCode);
}
......
......@@ -171,8 +171,8 @@ public class CommonServiceImpl {
public List<TzsUserInfo> getUserPhonesByPersonCode(String personCode) {
List<String> ids = StrUtil.split(personCode, ",");
QueryWrapper userInfoQueryWrapper = new QueryWrapper<>();
userInfoQueryWrapper.in("sequence_nbr", ids);
LambdaQueryWrapper<TzsUserInfo> userInfoQueryWrapper = new LambdaQueryWrapper<>();
userInfoQueryWrapper.in(BaseEntity::getSequenceNbr, ids);
return userInfoMapper.selectList(userInfoQueryWrapper);
}
......
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