|
@ -35,5 +35,52 @@ |
|
|
<result property="customerId" column="CUSTOMER_ID"/> |
|
|
<result property="customerId" column="CUSTOMER_ID"/> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<select id="getRelocationList" resultType="com.epmet.dto.ChangeRelocationDTO"> |
|
|
|
|
|
SELECT |
|
|
|
|
|
r.* |
|
|
|
|
|
FROM |
|
|
|
|
|
pli_change_relocation r |
|
|
|
|
|
LEFT JOIN pli_change_welfare w ON r.ID_CARD = w.ID_CARD |
|
|
|
|
|
AND w.DEL_FLAG = '0' |
|
|
|
|
|
WHERE |
|
|
|
|
|
r.DEL_FLAG = '0' |
|
|
|
|
|
<if test="gridId != null and gridId != ''"> |
|
|
|
|
|
AND r.GRID_ID = #{gridId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="villageId != null and villageId != ''"> |
|
|
|
|
|
AND r.VILLAGE_ID = #{villageId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="buildId != null and buildId != ''"> |
|
|
|
|
|
AND r.BUILD_ID = #{buildId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="unitId != null and unitId != ''"> |
|
|
|
|
|
AND r.UNIT_ID = #{unitId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="homeId != null and homeId != ''"> |
|
|
|
|
|
AND r.HOME_ID = #{homeId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="name != null and name != ''"> |
|
|
|
|
|
AND r.NAME = #{name} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="idCard != null and idCard != ''"> |
|
|
|
|
|
AND r.ID_CARD = #{idCard} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="mobile != null and mobile != ''"> |
|
|
|
|
|
AND r.MOBILE = #{mobile} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="startTime != null and startTime != ''"> |
|
|
|
|
|
AND r.OUT_OF_TIME >= #{startTime} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="endTime != null and endTime != ''"> |
|
|
|
|
|
AND r.OUT_OF_TIME <= #{endTime} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="isWelfare != null and isWelfare != ''"> |
|
|
|
|
|
<if test="isWelfare == '0' or isWelfare == 0"> |
|
|
|
|
|
AND w.DEL_FLAG = '0' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="isWelfare == '1' or isWelfare == 1"> |
|
|
|
|
|
AND w.DEL_FLAG IS NULL |
|
|
|
|
|
</if> |
|
|
|
|
|
</if> |
|
|
|
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |
|
|