|
@@ -705,9 +705,59 @@
|
|
|
LEFT JOIN user_info as customer ON t.customer_service_id = customer.user_id
|
|
|
LEFT JOIN lift_brand as brand ON brand.id = t.brand_id
|
|
|
left join question_bank que on que.lift_case_id = t.id
|
|
|
- <where>
|
|
|
- <if test="query.expression != null" >
|
|
|
- t.expression like CONCAT("%",#{query.expression},"%")
|
|
|
+ where t.accept_status=0
|
|
|
+ <if test="query.expression != null" >
|
|
|
+ and t.expression like CONCAT("%",#{query.expression},"%")
|
|
|
+ </if>
|
|
|
+ <if test="query.originator != null" >
|
|
|
+ and ui.name like CONCAT("%",#{query.originator},"%")
|
|
|
+ </if>
|
|
|
+ <if test="query.chargeName != null" >
|
|
|
+ and ci.name like CONCAT("%",#{query.chargeName},"%")
|
|
|
+ </if>
|
|
|
+ <if test="query.brandName != null" >
|
|
|
+ and brand.name like CONCAT("%",#{query.brandName},"%")
|
|
|
+ </if>
|
|
|
+ <if test="query.statuz1 != null" >
|
|
|
+ and lift.statuz = #{query.statuz1}
|
|
|
+ </if>
|
|
|
+ union
|
|
|
+ SELECT customer.`name` as customerName ,t.*,brand.`name` as brandName,
|
|
|
+ que.examine_flag examineFlag,que.not_examine_reason notExamineReason
|
|
|
+ from lift_case as t
|
|
|
+ LEFT JOIN user_info AS ui ON t.create_user_id = ui.user_id
|
|
|
+ LEFT JOIN user_info AS ci ON t.charger_id = ci.user_id
|
|
|
+ LEFT JOIN user_info as customer ON t.customer_service_id = customer.user_id
|
|
|
+ LEFT JOIN lift_brand as brand ON brand.id = t.brand_id
|
|
|
+ left join question_bank que on que.lift_case_id = t.id
|
|
|
+ where t.statuz=9
|
|
|
+ <if test="query.expression != null" >
|
|
|
+ and t.expression like CONCAT("%",#{query.expression},"%")
|
|
|
+ </if>
|
|
|
+ <if test="query.originator != null" >
|
|
|
+ and ui.name like CONCAT("%",#{query.originator},"%")
|
|
|
+ </if>
|
|
|
+ <if test="query.chargeName != null" >
|
|
|
+ and ci.name like CONCAT("%",#{query.chargeName},"%")
|
|
|
+ </if>
|
|
|
+ <if test="query.brandName != null" >
|
|
|
+ and brand.name like CONCAT("%",#{query.brandName},"%")
|
|
|
+ </if>
|
|
|
+ <if test="query.statuz1 != null" >
|
|
|
+ and lift.statuz = #{query.statuz1}
|
|
|
+ </if>
|
|
|
+ union
|
|
|
+ SELECT customer.`name` as customerName ,t.*,brand.`name` as brandName,
|
|
|
+ que.examine_flag examineFlag,que.not_examine_reason notExamineReason
|
|
|
+ from lift_case as t
|
|
|
+ LEFT JOIN user_info AS ui ON t.create_user_id = ui.user_id
|
|
|
+ LEFT JOIN user_info AS ci ON t.charger_id = ci.user_id
|
|
|
+ LEFT JOIN user_info as customer ON t.customer_service_id = customer.user_id
|
|
|
+ LEFT JOIN lift_brand as brand ON brand.id = t.brand_id
|
|
|
+ left join question_bank que on que.lift_case_id = t.id
|
|
|
+ where t.statuz!=9 and t.accept_status!=0
|
|
|
+ <if test="query.expression != null" >
|
|
|
+ and t.expression like CONCAT("%",#{query.expression},"%")
|
|
|
</if>
|
|
|
<if test="query.originator != null" >
|
|
|
and ui.name like CONCAT("%",#{query.originator},"%")
|
|
@@ -721,9 +771,6 @@
|
|
|
<if test="query.statuz1 != null" >
|
|
|
and lift.statuz = #{query.statuz1}
|
|
|
</if>
|
|
|
- </where>
|
|
|
- ORDER BY t.is_platform_specified desc,t.accept_status asc,t.update_time DESC
|
|
|
- limit #{query.pageIndex},#{query.pageSize}
|
|
|
</select>
|
|
|
<select id="queryMonitoringCenterCount" resultType="java.lang.Integer">
|
|
|
SELECT count(0)
|