|
|
|
@ -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> |
|
|
|
|
|
|
|
<!-- 搜索姓名或授权码 --> |
|
|
|
|