Browse Source

更改统计条件

master
453530270@qq.com 2 years ago
parent
commit
4610f5b4ff
  1. 17
      src/main/resources/mapper/szwh/OrderUserMapper.xml

17
src/main/resources/mapper/szwh/OrderUserMapper.xml

@ -71,23 +71,8 @@
FROM order_user u
INNER JOIN `order` o ON u.batchcode=o.batchcode
<where>
<if test="map!=null">
<foreach collection="map" item="v" index="k" separator="and">
<if test="v != null and v != '' and k!='u.name'">
${k} = #{v}
</if>
<if test="k=='u.publicAccount'">
u.publicAccount like concat('%',#{v},'%')
</if>
<if test="k=='u.name'">
u.`name` like concat('%',#{v},'%')
OR u.islicode like concat('%',#{v},'%')
</if>
</foreach>
</if>
u.id IN (SELECT MAX(id) FROM order_user GROUP BY islicode)
</where>
u.id IN (SELECT MAX(id) FROM order_user GROUP BY islicode)
</select>
<!-- 搜索姓名或授权码 -->

Loading…
Cancel
Save