Browse Source

迁入管理、迁出人员管理、死亡人员管理、出生管理增加变更记录,操作列增加变更记录按钮,查看该居民的变更记录

dev
wanggongfeng 3 years ago
parent
commit
cd6a530ea4
  1. 5
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/ChangeDeathDTO.java
  2. 5
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/ChangeRelocationDTO.java
  3. 6
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/IcMoveInListResultDTO.java
  4. 1
      epmet-user/epmet-user-server/src/main/resources/mapper/ChangeDeathDao.xml
  5. 3
      epmet-user/epmet-user-server/src/main/resources/mapper/ChangeRelocationDao.xml
  6. 86
      epmet-user/epmet-user-server/src/main/resources/mapper/IcMoveInRecordDao.xml

5
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/ChangeDeathDTO.java

@ -26,6 +26,11 @@ public class ChangeDeathDTO implements Serializable {
*/ */
private String id; private String id;
/**
* ic_resi_user主键
*/
private String icResiUserId;
/** /**
* epmet用户主键 * epmet用户主键
*/ */

5
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/ChangeRelocationDTO.java

@ -24,6 +24,11 @@ public class ChangeRelocationDTO implements Serializable {
*/ */
private String id; private String id;
/**
* ic_resi_user主键
*/
private String icResiUserId;
/** /**
* 姓名 * 姓名
*/ */

6
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/result/IcMoveInListResultDTO.java

@ -18,6 +18,12 @@ public class IcMoveInListResultDTO implements Serializable {
* 迁入Id * 迁入Id
*/ */
private String moveInId; private String moveInId;
/**
* ic_resi_user主键
*/
private String icResiUserId;
/** /**
* 网格ID * 网格ID
*/ */

1
epmet-user/epmet-user-server/src/main/resources/mapper/ChangeDeathDao.xml

@ -28,6 +28,7 @@
SELECT SELECT
d.id, d.id,
u.id AS userId, u.id AS userId,
u.id as icResiUserId,
d.GRID_ID, d.GRID_ID,
u.`NAME`, u.`NAME`,
d.ID_CARD, d.ID_CARD,

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

@ -64,7 +64,8 @@
r.CREATED_TIME, r.CREATED_TIME,
r.UPDATED_TIME, r.UPDATED_TIME,
r.OUT_OF_TIME, r.OUT_OF_TIME,
r.IC_USER_ID r.IC_USER_ID,
r.IC_USER_ID as icResiUserId
FROM FROM
pli_change_relocation r pli_change_relocation r
LEFT JOIN ic_resi_user u ON u.ID_CARD = r.ID_CARD LEFT JOIN ic_resi_user u ON u.ID_CARD = r.ID_CARD

86
epmet-user/epmet-user-server/src/main/resources/mapper/IcMoveInRecordDao.xml

@ -5,74 +5,74 @@
<select id="selectMoveInList" resultType="com.epmet.dto.result.IcMoveInListResultDTO"> <select id="selectMoveInList" resultType="com.epmet.dto.result.IcMoveInListResultDTO">
SELECT SELECT
id moveInId, iru.ID as icResiUserId,
grid_id gridId, mir.id moveInId,
village_id villageId, mir.grid_id gridId,
build_id buildId, mir.village_id villageId,
unit_id unitId, mir.build_id buildId,
home_id homeId, mir.unit_id unitId,
name NAME, mir.home_id homeId,
is_welfare isWeifare, mir.name NAME,
is_check isCheck, mir.is_welfare isWeifare,
mobile mobile, mir.is_check isCheck,
id_card idCard, mir.mobile mobile,
gender gender, mir.id_card idCard,
IF(gender='1','男',IF(gender='2','女','未知'))genderName, mir.gender gender,
age age, IF(mir.gender='1','男',IF(mir.gender='2','女','未知'))genderName,
in_time inTime, mir.age age,
in_reason inReason, mir.in_time inTime,
source_address_code sourceAddressCode, mir.in_reason inReason,
source_address_path_code sourceAddressPathCode, mir.source_address_code sourceAddressCode,
source_address sourceAddress, mir.source_address_path_code sourceAddressPathCode,
address address, mir.source_address sourceAddress,
move_number moveNumber, mir.address address,
householder_name householderName, mir.move_number moveNumber,
householder_relation householderRelation mir.householder_name householderName,
FROM mir.householder_relation householderRelation
ic_move_in_record FROM ic_move_in_record mir
WHERE left join ic_resi_user iru on iru.ID_CARD = mir.ID_CARD and iru.DEL_FLAG = 0
del_flag = '0' WHERE mir.del_flag = '0'
AND customer_id=#{customerId} AND mir.customer_id=#{customerId}
<if test="gridId != null and gridId != '' "> <if test="gridId != null and gridId != '' ">
AND grid_id = #{gridId} AND mir.grid_id = #{gridId}
</if> </if>
<if test="villageId != null and villageId != '' "> <if test="villageId != null and villageId != '' ">
AND village_id = #{villageId} AND mir.village_id = #{villageId}
</if> </if>
<if test="buildId != null and buildId != '' "> <if test="buildId != null and buildId != '' ">
AND build_id = #{buildId} AND mir.build_id = #{buildId}
</if> </if>
<if test="unitId != null and unitId != '' "> <if test="unitId != null and unitId != '' ">
AND unit_id = #{unitId} AND mir.unit_id = #{unitId}
</if> </if>
<if test="homeId != null and homeId != '' "> <if test="homeId != null and homeId != '' ">
AND home_id = #{homeId} AND mir.home_id = #{homeId}
</if> </if>
<if test="name != null and name != '' "> <if test="name != null and name != '' ">
AND `name` LIKE CONCAT('%', #{name}, '%') AND mir.name LIKE CONCAT('%', #{name}, '%')
</if> </if>
<if test="mobile != null and mobile != '' "> <if test="mobile != null and mobile != '' ">
AND mobile = #{mobile} AND mir.mobile = #{mobile}
</if> </if>
<if test="idCard != null and idCard != '' "> <if test="idCard != null and idCard != '' ">
AND id_card = #{idCard} AND mir.id_card = #{idCard}
</if> </if>
<if test="startTime != null and startTime != '' "> <if test="startTime != null and startTime != '' ">
AND DATE_FORMAT(in_time,"%Y-%m-%d") <![CDATA[>=]]> #{startTime} AND DATE_FORMAT(mir.in_time,"%Y-%m-%d") <![CDATA[>=]]> #{startTime}
</if> </if>
<if test="endTime != null and endTime != '' "> <if test="endTime != null and endTime != '' ">
AND DATE_FORMAT(in_time,"%Y-%m-%d") <![CDATA[<=]]> #{endTime} AND DATE_FORMAT(mir.in_time,"%Y-%m-%d") <![CDATA[<=]]> #{endTime}
</if> </if>
<if test="isWeifare != null and isWeifare != '' "> <if test="isWeifare != null and isWeifare != '' ">
AND is_welfare = #{isWeifare} AND mir.is_welfare = #{isWeifare}
</if> </if>
<if test="moveInId != null and moveInId != '' "> <if test="moveInId != null and moveInId != '' ">
AND id = #{moveInId} AND mir.id = #{moveInId}
</if> </if>
<if test="agencyId != null and agencyId != '' "> <if test="agencyId != null and agencyId != '' ">
AND (AGENCY_ID = #{agencyId} OR PIDS LIKE CONCAT('%',#{agencyId},'%')) AND (mir.AGENCY_ID = #{agencyId} OR mir.PIDS LIKE CONCAT('%',#{agencyId},'%'))
</if> </if>
ORDER BY created_time DESC ORDER BY mir.created_time DESC
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save