|
@@ -27,6 +27,9 @@
|
|
|
<if test="param.customerName != null and param.customerName != ''">
|
|
|
and c.customer_name like concat ('%',#{param.customerName},'%')
|
|
|
</if>
|
|
|
+ <if test="param.companyName != null and param.companyName != ''">
|
|
|
+ and c.company_name like concat ('%',#{param.companyName},'%')
|
|
|
+ </if>
|
|
|
<if test="param.startTime != null and param.startTime != ''">
|
|
|
and r.create_time BETWEEN #{param.startTime} and #{param.endTime}
|
|
|
</if>
|
|
@@ -121,6 +124,9 @@
|
|
|
<if test="param.customerName != null and param.customerName != ''">
|
|
|
and c.customer_name like concat ('%',#{param.customerName},'%')
|
|
|
</if>
|
|
|
+ <if test="param.companyName != null and param.companyName != ''">
|
|
|
+ and c.company_name like concat ('%',#{param.companyName},'%')
|
|
|
+ </if>
|
|
|
order by r.create_time desc
|
|
|
</select>
|
|
|
|
|
@@ -158,6 +164,9 @@
|
|
|
<if test="param.customerName != null and param.customerName != ''">
|
|
|
and c.customer_name like concat ('%',#{param.customerName},'%')
|
|
|
</if>
|
|
|
+ <if test="param.companyName != null and param.companyName != ''">
|
|
|
+ and c.company_name like concat ('%',#{param.companyName},'%')
|
|
|
+ </if>
|
|
|
<if test="param.saleId != null ">
|
|
|
and o.sys_user_id = #{param.saleId}
|
|
|
</if>
|