|
|
@ -132,18 +132,22 @@ |
|
|
|
ic_resi_user.`VILLAGE_ID` as neighborhoodId, |
|
|
|
ic_resi_user.`BIRTHDAY` |
|
|
|
from ic_resi_user |
|
|
|
<if test="resiRules != null and resiRules.size() > 0"> |
|
|
|
<foreach collection="resiRules" item="rule"> |
|
|
|
<if test="rule.colTable != 'ic_resi_user'"> inner join #{rule.colTable}</if> |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<include refid="segmentForPolicyRules"></include> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getTotalByPolicyRules" resultType="int"> |
|
|
|
select count(1) |
|
|
|
from ic_resi_user |
|
|
|
<if test="resiRules != null and resiRules.size() > 0"> |
|
|
|
<foreach collection="resiRules" item="rule"> |
|
|
|
<if test="rule.colTable != 'ic_resi_user'"> inner join #{rule.colTable}</if> |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<include refid="segmentForPolicyRules"></include> |
|
|
|
</select> |
|
|
|
|
|
|
|