|
|
@ -945,6 +945,33 @@ |
|
|
|
<if test="gridId != null and gridId != ''"> |
|
|
|
AND GRID_ID = #{gridId} |
|
|
|
</if> |
|
|
|
<if test="neighborId != null and neighborId != ''"> |
|
|
|
AND a.VILLAGE_ID = #{neighborId} |
|
|
|
</if> |
|
|
|
<if test="buildingId != null and buildingId != ''"> |
|
|
|
AND a.BUILD_ID = #{buildingId} |
|
|
|
</if> |
|
|
|
<if test="unitId != null and unitId != ''"> |
|
|
|
AND a.UNIT_ID = #{unitId} |
|
|
|
</if> |
|
|
|
<if test="houseId != null and houseId != ''"> |
|
|
|
AND a.HOME_ID = #{houseId} |
|
|
|
</if> |
|
|
|
<if test="name != null and name != ''"> |
|
|
|
AND a.`NAME` LIKE concat( '%', #{name}, '%' ) |
|
|
|
</if> |
|
|
|
<if test="mobile != null and mobile != ''"> |
|
|
|
AND a.MOBILE LIKE concat( '%', #{mobile}, '%' ) |
|
|
|
</if> |
|
|
|
<if test="idCard != null and idCard != ''"> |
|
|
|
AND a.ID_CARD LIKE concat( '%', #{idCard}, '%' ) |
|
|
|
</if> |
|
|
|
<if test=" null != startBirthDay and startBirthDay != '' "> |
|
|
|
AND a.BIRTHDAY <![CDATA[ >= ]]> #{startBirthDay} |
|
|
|
</if> |
|
|
|
<if test="null != endBirthDay and endBirthDay != '' "> |
|
|
|
AND a.BIRTHDAY <![CDATA[ <= ]]> #{endBirthDay} |
|
|
|
</if> |
|
|
|
) t |
|
|
|
WHERE 1=1 |
|
|
|
<if test="startDate != null and startDate != ''"> |
|
|
|