Browse Source

Merge remote-tracking branch 'origin/yantai_zhengwu_master' into dev

master
yinzuomei 3 years ago
parent
commit
7e1572e9f2
  1. 4
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBadgeServiceImpl.java
  2. 2
      epmet-user/epmet-user-server/src/main/resources/mapper/UserBadgeDao.xml

4
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBadgeServiceImpl.java

@ -281,6 +281,7 @@ public class UserBadgeServiceImpl implements UserBadgeService {
}
}
// 0309:如果是党员徽章去判断居民信息-类别是否是党员
String auditRemark="";
BadgeEntity badgeEntity = badgeDao.selectBadgeInfo(EpmetRequestHolder.getLoginUserCustomerId(),certificationAddFormDTO.getBadgeId());
if (null == badgeEntity) {
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "徽章信息查询异常", "徽章信息查询异常");
@ -289,6 +290,7 @@ public class UserBadgeServiceImpl implements UserBadgeService {
// 如果是党员徽章,去查看居民信息-类别
IcResiUserDTO icResiUserDTO = SpringContextUtils.getBean(IcResiUserService.class).getByResiId(certificationAddFormDTO.getIdcard());
if (null != icResiUserDTO && NumConstant.ONE_STR.equals(icResiUserDTO.getIsParty())) {
auditRemark ="居民信息是党员,徽章申请自动通过";
certificationAddFormDTO.setAutoPassFlag(true);
}
}
@ -333,6 +335,7 @@ public class UserBadgeServiceImpl implements UserBadgeService {
//审核状态 approved:审核通过,rejected:审核驳回;auditing:审核中
badgeAuditFormDTO.setAuditStatus(BadgeConstant.APPROVED);
badgeAuditFormDTO.setCurrentUserId("APP_USER");
badgeAuditFormDTO.setAuditRemark(auditRemark);
autoPassBadge(badgeAuditFormDTO);
}
Map resultMap=new HashMap();
@ -351,6 +354,7 @@ public class UserBadgeServiceImpl implements UserBadgeService {
dto.setStaffId(badgeAuditFormDTO.getCurrentUserId());
dto.setIsLast(BadgeConstant.YES);
dto.setAuditTime(new Date());
dto.setAuditRemark(badgeAuditFormDTO.getAuditRemark());
SpringContextUtils.getBean(UserBadgeCertificateRecordService.class).update(dto);
ResiUserBadgeDTO resiUserBadgeDTO = new ResiUserBadgeDTO();

2
epmet-user/epmet-user-server/src/main/resources/mapper/UserBadgeDao.xml

@ -121,7 +121,7 @@
b.BADGE_NAME as badgeName
FROM
user_badge_certificate_record r
left join badge b on(r.BADGE_ID=b.id)
left join badge b on(r.BADGE_ID=b.id and r.CUSTOMER_ID=b.CUSTOMER_ID)
WHERE
r.DEL_FLAG = 0
AND r.BADGE_ID = #{badgeId}

Loading…
Cancel
Save