Browse Source

排出ID对查询的影响

master
xyiege 4 years ago
parent
commit
a37ae01161
  1. 8
      src/main/resources/mapper/szwh/GoodsMapper.xml

8
src/main/resources/mapper/szwh/GoodsMapper.xml

@ -57,12 +57,12 @@
gd.goods_name, g.username,g.user_islicode,
gd.goods_type, g.goods_status, g.goods_detail_id,
g.is_recommend, g.entrust_status
FROM goods g
INNER JOIN goods_detail gd ON g.goods_detail_id=gd.id
FROM goods as g
INNER JOIN goods_detail as gd ON g.goods_detail_id=gd.id
<where>
<if test="map!=null">
<foreach collection="map" item="v" index="k" separator="and">
<if test="v != null and v != '' and k!='orderway'">
<if test="v != null and v != '' and k!='orderway' and k!='id'">
${k} = #{v}
</if>
</foreach>
@ -83,7 +83,7 @@
<where>
<if test="map!=null">
<foreach collection="map" item="v" index="k" separator="and">
<if test="v != null and v != '' and k!='orderway'">
<if test="v != null and v != '' and k!='orderway' and k!='id'">
${k} = #{v}
</if>
</foreach>

Loading…
Cancel
Save