|
@@ -438,7 +438,7 @@
|
|
LEFT JOIN user_info as customer ON t.customer_service_id = customer.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 lift_brand as brand ON brand.id = t.brand_id
|
|
left join question_bank que on que.lift_case_id = t.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,'3,4')
|
|
|
|
|
|
+ where 1=1 and t.create_user_id=#{query.createUserId} and t.data_table = 1 and FIND_IN_SET(t.statuz,'3')
|
|
union
|
|
union
|
|
SELECT customer.`name` as customerName ,t.*,brand.`name` as brandName,
|
|
SELECT customer.`name` as customerName ,t.*,brand.`name` as brandName,
|
|
que.examine_flag examineFlag,que.not_examine_reason notExamineReason
|
|
que.examine_flag examineFlag,que.not_examine_reason notExamineReason
|
|
@@ -448,7 +448,7 @@
|
|
LEFT JOIN user_info as customer ON t.customer_service_id = customer.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 lift_brand as brand ON brand.id = t.brand_id
|
|
left join question_bank que on que.lift_case_id = t.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 = 2 and FIND_IN_SET(t.statuz,'3,4')
|
|
|
|
|
|
+ where 1=1 and t.create_user_id=#{query.createUserId} and t.data_table = 2 and FIND_IN_SET(t.statuz,'4')
|
|
)temp
|
|
)temp
|
|
ORDER BY temp.create_time DESC
|
|
ORDER BY temp.create_time DESC
|
|
limit #{query.pageIndex},#{query.pageSize}
|
|
limit #{query.pageIndex},#{query.pageSize}
|
|
@@ -463,7 +463,7 @@
|
|
LEFT JOIN user_info as customer ON t.customer_service_id = customer.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 lift_brand as brand ON brand.id = t.brand_id
|
|
left join question_bank que on que.lift_case_id = t.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,'3,4')
|
|
|
|
|
|
+ where 1=1 and t.create_user_id=#{query.createUserId} and t.data_table = 1 and FIND_IN_SET(t.statuz,'3')
|
|
union
|
|
union
|
|
SELECT customer.`name` as customerName ,t.*,brand.`name` as brandName,
|
|
SELECT customer.`name` as customerName ,t.*,brand.`name` as brandName,
|
|
que.examine_flag examineFlag,que.not_examine_reason notExamineReason
|
|
que.examine_flag examineFlag,que.not_examine_reason notExamineReason
|
|
@@ -473,7 +473,7 @@
|
|
LEFT JOIN user_info as customer ON t.customer_service_id = customer.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 lift_brand as brand ON brand.id = t.brand_id
|
|
left join question_bank que on que.lift_case_id = t.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 = 2 and FIND_IN_SET(t.statuz,'3,4')
|
|
|
|
|
|
+ where 1=1 and t.create_user_id=#{query.createUserId} and t.data_table = 2 and FIND_IN_SET(t.statuz,'4')
|
|
)temp
|
|
)temp
|
|
</select>
|
|
</select>
|
|
<!-- 查询用户待评价诊单 -->
|
|
<!-- 查询用户待评价诊单 -->
|