|
|
|
@ -72,19 +72,21 @@ |
|
|
|
select count(*) |
|
|
|
from |
|
|
|
<include refid="tbName"/> |
|
|
|
<where> |
|
|
|
<foreach collection="map" item="v" index="k" separator="and"> |
|
|
|
<if test="v != null and v != '' and k!='rule_name' and k!='btstr'"> |
|
|
|
${k} = #{v} |
|
|
|
</if> |
|
|
|
<if test="k=='rule_name'"> |
|
|
|
rule_name like concat('%',#{v},'%') |
|
|
|
</if> |
|
|
|
<if test="k=='btstr'"> |
|
|
|
${v} |
|
|
|
</if> |
|
|
|
</foreach> |
|
|
|
</where> |
|
|
|
<if test="map!=null"> |
|
|
|
<where> |
|
|
|
<foreach collection="map" item="v" index="k" separator="and"> |
|
|
|
<if test="v != null and v != '' and k!='rule_name' and k!='btstr'"> |
|
|
|
${k} = #{v} |
|
|
|
</if> |
|
|
|
<if test="k=='rule_name'"> |
|
|
|
rule_name like concat('%',#{v},'%') |
|
|
|
</if> |
|
|
|
<if test="k=='btstr'"> |
|
|
|
${v} |
|
|
|
</if> |
|
|
|
</foreach> |
|
|
|
</where> |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<!-- 统计数量 --> |
|
|
|
<select id="countAcRs" resultType="java.lang.Integer"> |
|
|
|
|