Browse Source

移除审核需求变动

feature/teamB_zz_wgh
zhaoqifeng 3 years ago
parent
commit
959f8f1e39
  1. 1
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/ConfirmListResultDTO.java
  2. 20
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/ChangeRelocationServiceImpl.java
  3. 3
      epmet-user/epmet-user-server/src/main/resources/mapper/IcResiUserConfirmDao.xml

1
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/ConfirmListResultDTO.java

@ -12,6 +12,7 @@ import lombok.NoArgsConstructor;
@Data @Data
public class ConfirmListResultDTO { public class ConfirmListResultDTO {
private String id; private String id;
private String agencyId;
private String name; private String name;
private String gender; private String gender;
private String mobile; private String mobile;

20
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/ChangeRelocationServiceImpl.java

@ -298,15 +298,6 @@ public class ChangeRelocationServiceImpl extends BaseServiceImpl<ChangeRelocatio
if (null == userInfo) { if (null == userInfo) {
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "居民信息不存在", "居民信息不存在"); throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "居民信息不存在", "居民信息不存在");
} }
//更改房屋
IcResiUserEntity uerEntity = new IcResiUserEntity();
uerEntity.setId(dto.getIcUserId());
uerEntity.setGridId(dto.getGridId());
uerEntity.setVillageId(dto.getVillageId());
uerEntity.setBuildId(dto.getBuildId());
uerEntity.setUnitId(dto.getUnitId());
uerEntity.setHomeId(dto.getHomeId());
icResiUserService.updateById(uerEntity);
//组织内走变更流程 //组织内走变更流程
IcResiUserTransferFormDTO formDTO = new IcResiUserTransferFormDTO(); IcResiUserTransferFormDTO formDTO = new IcResiUserTransferFormDTO();
formDTO.setIcUserId(dto.getIcUserId()); formDTO.setIcUserId(dto.getIcUserId());
@ -322,10 +313,19 @@ public class ChangeRelocationServiceImpl extends BaseServiceImpl<ChangeRelocatio
formDTO.setCustomerId(dto.getCustomerId()); formDTO.setCustomerId(dto.getCustomerId());
formDTO.setStaffId(dto.getStaffId()); formDTO.setStaffId(dto.getStaffId());
icUserTransferRecordService.add(formDTO); icUserTransferRecordService.add(formDTO);
//更改房屋
IcResiUserEntity uerEntity = new IcResiUserEntity();
uerEntity.setId(dto.getIcUserId());
uerEntity.setGridId(dto.getGridId());
uerEntity.setVillageId(dto.getVillageId());
uerEntity.setBuildId(dto.getBuildId());
uerEntity.setUnitId(dto.getUnitId());
uerEntity.setHomeId(dto.getHomeId());
icResiUserService.updateById(uerEntity);
} else { } else {
//不需要迁至其他房屋,直接变游离状态 //不需要迁至其他房屋,直接变游离状态
dto.setType("out"); dto.setType("out");
dto.setTransferTime(new Date()); dto.setOutOfTime(new Date());
dto.setAddress("其他"); dto.setAddress("其他");
dto.setReason("移除"); dto.setReason("移除");
this.saveOutOfInfo(dto); this.saveOutOfInfo(dto);

3
epmet-user/epmet-user-server/src/main/resources/mapper/IcResiUserConfirmDao.xml

@ -62,6 +62,7 @@
<select id="getConfirmList" resultType="com.epmet.dto.result.ConfirmListResultDTO"> <select id="getConfirmList" resultType="com.epmet.dto.result.ConfirmListResultDTO">
SELECT SELECT
a.ID, a.ID,
a.AGENCY_ID,
b.`NAME`, b.`NAME`,
b.GENDER, b.GENDER,
b.ID_CARD, b.ID_CARD,
@ -81,7 +82,7 @@
WHERE WHERE
a.DEL_FLAG = 0 a.DEL_FLAG = 0
AND a.SUBMIT_TYPE IN ( 'in', 'out' ) AND a.SUBMIT_TYPE IN ( 'in', 'out' )
AND a.AGENCY_ID = #{agencyId} AND (a.AGENCY_ID = #{agencyId} OR a.PIDS LIKE concat( '%', #{agencyId}, '%' ))
<if test="null != name and name.trim() != ''"> <if test="null != name and name.trim() != ''">
AND b.NAME LIKE CONCAT('%',#{name},'%') AND b.NAME LIKE CONCAT('%',#{name},'%')
</if> </if>

Loading…
Cancel
Save