|
@ -114,14 +114,6 @@ |
|
|
<if test="name != null"> |
|
|
<if test="name != null"> |
|
|
and ic_resi_user.NAME like CONCAT('%'#{name}, '%') |
|
|
and ic_resi_user.NAME like CONCAT('%'#{name}, '%') |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
|
|
|
<!-- resi规则列表 --> |
|
|
|
|
|
<if test="resiRules != null and resiRules.size() > 0"> |
|
|
|
|
|
<foreach collection="resiRules" item="rule"> |
|
|
|
|
|
${rule.lastLogicalRel} ${rule.colTable}.${rule.colKey} ${rule.queryType} #{rule.colVal} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 房屋id列表 --> |
|
|
<!-- 房屋id列表 --> |
|
|
<if test="houseIds != null and houseIds.size() > 0"> |
|
|
<if test="houseIds != null and houseIds.size() > 0"> |
|
|
and HOME_ID in |
|
|
and HOME_ID in |
|
@ -129,6 +121,13 @@ |
|
|
#{houseId} |
|
|
#{houseId} |
|
|
</foreach> |
|
|
</foreach> |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<!-- resi规则列表 --> |
|
|
|
|
|
<if test="resiRules != null and resiRules.size() > 0"> |
|
|
|
|
|
and |
|
|
|
|
|
<foreach collection="resiRules" item="rule" open="(" close=")"> |
|
|
|
|
|
${rule.colTable}.${rule.colKey} ${rule.queryType} #{rule.colVal} ${rule.lastLogicalRel} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|