|
|
@ -63,23 +63,31 @@ public class NonEnforcementRegistrationServiceImpl implements INonEnforcementReg |
|
|
{ |
|
|
{ |
|
|
NonEnforcementRegistrationVo nonReg = nonEnforcementRegistrationMapper.selectVoById(id); |
|
|
NonEnforcementRegistrationVo nonReg = nonEnforcementRegistrationMapper.selectVoById(id); |
|
|
if (nonReg != null && nonReg.getId() != null) { |
|
|
if (nonReg != null && nonReg.getId() != null) { |
|
|
|
|
|
// 处理主执法人员信息
|
|
|
|
|
|
if (StringUtils.isNotEmpty(nonReg.getLawEnforcerId())) { |
|
|
SysUserVo user = sysUserMapper.selectUserById(Long.valueOf(nonReg.getLawEnforcerId())); |
|
|
SysUserVo user = sysUserMapper.selectUserById(Long.valueOf(nonReg.getLawEnforcerId())); |
|
|
|
|
|
if (user != null) { |
|
|
String temp = user.getLawCertificateNum(); |
|
|
String temp = user.getLawCertificateNum(); |
|
|
if (StringUtils.isEmpty(temp)) { |
|
|
if (StringUtils.isEmpty(temp)) { |
|
|
temp = CommonUtil.encryptPhone(user.getPhonenumber()); |
|
|
temp = CommonUtil.encryptPhone(user.getPhonenumber()); |
|
|
} |
|
|
} |
|
|
nonReg.setLawEnforcer(user.getUserName() + " " + temp); |
|
|
nonReg.setLawEnforcer(user.getUserName() + " " + temp); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if(StringUtils.isNotEmpty(nonReg.getLawEnforcerOther())){ |
|
|
if(StringUtils.isNotEmpty(nonReg.getLawEnforcerOther())){ |
|
|
List<SysUserVo> list = sysUserMapper.selectUserByIds(Convert.toStrArray(nonReg.getLawEnforcerIdOther())); |
|
|
List<SysUserVo> list = sysUserMapper.selectUserByIds(Convert.toStrArray(nonReg.getLawEnforcerIdOther())); |
|
|
if(list.size()!=0){ |
|
|
if(list != null && list.size() != 0){ |
|
|
String tmpUserShow = ""; |
|
|
String tmpUserShow = ""; |
|
|
for (SysUserVo ub : list) { |
|
|
for (SysUserVo ub : list) { |
|
|
|
|
|
if (ub != null) { |
|
|
String t = ub.getLawCertificateNum(); |
|
|
String t = ub.getLawCertificateNum(); |
|
|
if(StringUtils.isEmpty(t)){ |
|
|
if(StringUtils.isEmpty(t)){ |
|
|
t = CommonUtil.encryptPhone(ub.getPhonenumber()); |
|
|
t = CommonUtil.encryptPhone(ub.getPhonenumber()); |
|
|
} |
|
|
} |
|
|
tmpUserShow += ub.getUserName() + " " + t + ","; |
|
|
tmpUserShow += ub.getUserName() + " " + t + ","; |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
if (tmpUserShow.length() > 0) { |
|
|
if (tmpUserShow.length() > 0) { |
|
|
tmpUserShow = tmpUserShow.substring(0, tmpUserShow.length() - 1); |
|
|
tmpUserShow = tmpUserShow.substring(0, tmpUserShow.length() - 1); |
|
|
} |
|
|
} |
|
|
|