|
@@ -584,7 +584,7 @@
|
|
|
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 1=1 and t.create_user_id=#{query.createUserId} and t.data_table = 1 and FIND_IN_SET(t.statuz,'2,3')
|
|
|
+ where 1=1 and t.charger_id=#{query.chargerId} and t.data_table = 1 and FIND_IN_SET(t.statuz,'2,3')
|
|
|
union
|
|
|
SELECT customer.`name` as customerName ,t.*,brand.`name` as brandName,
|
|
|
que.examine_flag examineFlag,que.not_examine_reason notExamineReason
|
|
@@ -601,13 +601,15 @@
|
|
|
</select>
|
|
|
<select id="queryChargeToSureCount" resultType="java.lang.Integer">
|
|
|
SELECT count(0) from (
|
|
|
+ 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 1=1 and t.create_user_id=#{query.createUserId} and t.data_table = 1 and FIND_IN_SET(t.statuz,'2,3')
|
|
|
+ where 1=1 and t.charger_id=#{query.chargerId} and t.data_table = 1 and FIND_IN_SET(t.statuz,'2,3')
|
|
|
union
|
|
|
SELECT customer.`name` as customerName ,t.*,brand.`name` as brandName,
|
|
|
que.examine_flag examineFlag,que.not_examine_reason notExamineReason
|
|
@@ -621,7 +623,7 @@
|
|
|
)temp
|
|
|
</select>
|
|
|
<!-- 查询专家待归档 -->
|
|
|
- <select id="queryToClock" resultType="cn.com.ty.lift.ud.chat.mapper.entity.LiftCaseEntity">
|
|
|
+ <select id="queryToAchive" resultType="cn.com.ty.lift.ud.chat.mapper.entity.LiftCaseEntity">
|
|
|
SELECT customer.`name` as customerName ,t.*,brand.`name` as brandName,
|
|
|
que.examine_flag examineFlag,que.not_examine_reason notExamineReason
|
|
|
from lift_case as t
|
|
@@ -634,7 +636,7 @@
|
|
|
ORDER BY t.create_time DESC
|
|
|
limit #{query.pageIndex},#{query.pageSize}
|
|
|
</select>
|
|
|
- <select id="queryToClockCount" resultType="java.lang.Integer">
|
|
|
+ <select id="queryToAchiveCount" resultType="java.lang.Integer">
|
|
|
SELECT count(0)
|
|
|
from lift_case as t
|
|
|
LEFT JOIN user_info AS ui ON t.create_user_id = ui.user_id
|
|
@@ -655,7 +657,7 @@
|
|
|
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 1=1 and t.create_user_id=#{query.createUserId} and t.data_table = 1 and FIND_IN_SET(t.statuz,'1')
|
|
|
+ where 1=1 and t.charger_id=#{query.chargerId} and t.data_table = 1 and FIND_IN_SET(t.statuz,'1')
|
|
|
union
|
|
|
SELECT customer.`name` as customerName ,t.*,brand.`name` as brandName,
|
|
|
que.examine_flag examineFlag,que.not_examine_reason notExamineReason
|
|
@@ -680,7 +682,7 @@
|
|
|
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 1=1 and t.create_user_id=#{query.createUserId} and t.data_table = 1 and FIND_IN_SET(t.statuz,'1')
|
|
|
+ where 1=1 and t.charger_id=#{query.chargerId} and t.data_table = 1 and FIND_IN_SET(t.statuz,'1')
|
|
|
union
|
|
|
SELECT customer.`name` as customerName ,t.*,brand.`name` as brandName,
|
|
|
que.examine_flag examineFlag,que.not_examine_reason notExamineReason
|