|
|
@@ -91,8 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND oi.old_order_sn = #{oldOrderSn}
|
|
|
</if>
|
|
|
<if test="searchKey != null and searchKey != ''">
|
|
|
- AND (oi.create_username like concat('%', #{searchKey}, '%') or oi.input_order_sn = #{searchKey})
|
|
|
- AND (select count(*) from `user` us where us.user_id = o.user_id AND us.realname like concat('%', #{searchKey}, '%') )>0
|
|
|
+ AND (oi.create_username like concat('%', #{searchKey}, '%') or oi.input_order_sn = #{searchKey} or (select count(*) from `user` us where us.user_id = o.user_id AND us.realname like concat('%', #{searchKey}, '%') )>0)
|
|
|
</if>
|
|
|
<if test="startTime != null and startTime != ''">
|
|
|
AND oi.create_time >= #{startTime}
|