1
0

2 Commity 7c28ef82f5 ... 29f0946f79

Autor SHA1 Správa Dátum
  Wei Ruifeng 29f0946f79 Merge branch 'master' of 4 rokov pred
  Wei Ruifeng d2b672599b 修改订单数量bug 4 rokov pred

+ 11 - 4
lift-ud-service/src/main/java/cn/com/ty/lift/ud/chat/mapper/LiftCaseMapper.xml

@@ -632,7 +632,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.charger_id=#{query.chargerId} and t.data_table = 2 and FIND_IN_SET(t.statuz,'4')
+    where 1=1 and t.charger_id=#{query.chargerId} and t.data_table = 1 and FIND_IN_SET(t.statuz,'4')
     ORDER BY t.create_time DESC
     limit #{query.pageIndex},#{query.pageSize}
   </select>
@@ -861,10 +861,17 @@
 
 
   <select id="selectDealingCount" resultType="java.lang.Integer">
-  select count(0) from (
-  select * from lift_case where charger_id=#{userId} and data_table = 1 and FIND_IN_SET(statuz,'1,2,3,4,5,7,8')
+  
+   select count(id) from (
+  select * from lift_case where charger_id=#{userId} and data_table = 1 and FIND_IN_SET(statuz,'4')
+  union
+select * from lift_case where charger_id=#{userId} and data_table = 1 and FIND_IN_SET(statuz,'2,3')
   union
-  select * from lift_case where charger_id=#{userId} and data_table = 2 and FIND_IN_SET(statuz,'0,1,2,3,4,5,7,8')
+  select * from lift_case where charger_id=#{userId} and data_table = 2 and FIND_IN_SET(statuz,'1')
+union
+  select * from lift_case where charger_id=#{userId} and data_table = 2 and FIND_IN_SET(statuz,'3') and arrived_Flag=0
+union
+  select * from lift_case where charger_id=#{userId} and data_table = 2 and FIND_IN_SET(statuz,'3') and arrived_Flag=1
   )temp
   </select>