Browse Source

map 不空的时候

master
453530270@qq.com 2 years ago
parent
commit
e1e63af6a8
  1. 2
      src/main/resources/mapper/szwh/AccountRatioSettingMapper.xml

2
src/main/resources/mapper/szwh/AccountRatioSettingMapper.xml

@ -72,6 +72,7 @@
select count(*) select count(*)
from from
<include refid="tbName"/> <include refid="tbName"/>
<if test="map!=null">
<where> <where>
<foreach collection="map" item="v" index="k" separator="and"> <foreach collection="map" item="v" index="k" separator="and">
<if test="v != null and v != '' and k!='rule_name' and k!='btstr'"> <if test="v != null and v != '' and k!='rule_name' and k!='btstr'">
@ -85,6 +86,7 @@
</if> </if>
</foreach> </foreach>
</where> </where>
</if>
</select> </select>
<!-- 统计数量 --> <!-- 统计数量 -->
<select id="countAcRs" resultType="java.lang.Integer"> <select id="countAcRs" resultType="java.lang.Integer">

Loading…
Cancel
Save