Browse Source

订单多个状态查询

master
453530270@qq.com 2 years ago
parent
commit
6e48ee7468
  1. 10
      src/main/resources/mapper/szwh/OrderMapper.xml

10
src/main/resources/mapper/szwh/OrderMapper.xml

@ -78,7 +78,7 @@
<!-- 查询条件封装在map中,以k-v形式进行查询--> <!-- 查询条件封装在map中,以k-v形式进行查询-->
<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!='o.id' and k!='og.goods_name' <if test="v != null and v != '' and k!='o.id' and k!='og.goods_name'
and k!='ou.name' and k!='o.createtime' "> and k!='ou.name' and k!='o.createtime' and k!=0.instatus">
${k} = #{v} ${k} = #{v}
</if> </if>
<if test="k=='o.id'"> <if test="k=='o.id'">
@ -90,6 +90,9 @@
<if test="k== 'o.createtime' "> <if test="k== 'o.createtime' ">
${v} ${v}
</if> </if>
<if test="k==o.instatus">
o.status IN (${v})
</if>
</foreach> </foreach>
</if> </if>
</where> </where>
@ -108,7 +111,7 @@
<!-- 查询条件封装在map中,以k-v形式进行查询--> <!-- 查询条件封装在map中,以k-v形式进行查询-->
<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!='o.id' and k!='og.goods_name' <if test="v != null and v != '' and k!='o.id' and k!='og.goods_name'
and k!='ou.name' and k!='o.createtime' "> and k!='ou.name' and k!='o.createtime' and k!=0.instatus">
${k} = #{v} ${k} = #{v}
</if> </if>
<if test="k=='o.id'"> <if test="k=='o.id'">
@ -120,6 +123,9 @@
<if test="k== 'o.createtime' "> <if test="k== 'o.createtime' ">
${v} ${v}
</if> </if>
<if test="k==o.instatus">
o.status IN (${v})
</if>
</foreach> </foreach>
</if> </if>
</where> </where>

Loading…
Cancel
Save