|
|
|
@ -241,10 +241,27 @@ public class AppEnforcementRegistrationController extends BaseController |
|
|
|
{ |
|
|
|
EnforcementRegistration enforcementRegistration = enforcementRegistrationService.selectEnforcementRegistrationById(id); |
|
|
|
if (null != enforcementRegistration) { |
|
|
|
LinkageDict ld1 = iLinkageDictService.selectLinkageDictById(enforcementRegistration.getLawEnforcementItem()); |
|
|
|
Zqyjjdm137344 zq = iZqyjjdm137344Service.getZqyjjdmById(enforcementRegistration.getLawEnforcementBasis()); |
|
|
|
enforcementRegistration.setLawEnforcementItemText(null==ld1?"":ld1.getTitle()); |
|
|
|
enforcementRegistration.setLawEnforcementBasisText(null==zq?"":zq.getLawName()); |
|
|
|
// LinkageDict ld1 = iLinkageDictService.selectLinkageDictById(enforcementRegistration.getLawEnforcementItem());
|
|
|
|
// Zqyjjdm137344 zq = new Zqyjjdm137344();
|
|
|
|
// try {
|
|
|
|
// zq = iZqyjjdm137344Service.getZqyjjdmById(enforcementRegistration.getLawEnforcementBasis());
|
|
|
|
// } catch (Exception e) {
|
|
|
|
// e.printStackTrace();
|
|
|
|
// }
|
|
|
|
// enforcementRegistration.setLawEnforcementItemText(null==ld1?"":ld1.getTitle());
|
|
|
|
// enforcementRegistration.setLawEnforcementBasisText(null==zq?"":zq.getLawName());
|
|
|
|
|
|
|
|
// 执法人员需要展示用户名+执法码
|
|
|
|
List<UserBean> userBeans = userApi.getUserByUserIds(enforcementRegistration.getLawEnforcerIdTwo()); |
|
|
|
String tmpUserShow = ""; |
|
|
|
for (UserBean ub : userBeans) { |
|
|
|
String lawCertificateNum = StringUtils.isEmpty(ub.getLawCertificateNum())?"":ub.getLawCertificateNum(); |
|
|
|
tmpUserShow += ub.getUserName() +" - "+ lawCertificateNum + ","; |
|
|
|
} |
|
|
|
if (tmpUserShow.length() > 0) { |
|
|
|
tmpUserShow = tmpUserShow.substring(0, tmpUserShow.length()-1); |
|
|
|
} |
|
|
|
enforcementRegistration.setLawEnforcer2Show(tmpUserShow); |
|
|
|
} |
|
|
|
return ZDResponse.success("查询成功",enforcementRegistration); |
|
|
|
} |
|
|
|
|