|
@@ -1051,11 +1051,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND p.prescribe_spec LIKE CONCAT('%', #{productSpec}, '%')
|
|
AND p.prescribe_spec LIKE CONCAT('%', #{productSpec}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="storeId != null and storeId != ''">
|
|
<if test="storeId != null and storeId != ''">
|
|
|
- AND p.store_id #{storeId}
|
|
|
|
|
|
|
+ AND p.store_id = #{storeId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="userAddress != null and userAddress != ''">
|
|
<if test="userAddress != null and userAddress != ''">
|
|
|
AND o.user_address LIKE CONCAT('%', #{userAddress}, '%')
|
|
AND o.user_address LIKE CONCAT('%', #{userAddress}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="userName != null and userName != ''">
|
|
|
|
|
+ AND o.user_name LIKE CONCAT('%', #{userName}, '%')
|
|
|
|
|
+ </if>
|
|
|
<if test="createTimeStart != null ">
|
|
<if test="createTimeStart != null ">
|
|
|
AND o.create_time >= #{createTimeStart}
|
|
AND o.create_time >= #{createTimeStart}
|
|
|
</if>
|
|
</if>
|