qin hai 1 ano
pai
achega
13ee9dc654
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/resources/mapper/statistics/OrderMapper.xml

+ 1 - 1
src/main/resources/mapper/statistics/OrderMapper.xml

@@ -114,7 +114,7 @@
             CONCAT_WS(',',cs.customer_type) as customerType,
             c.age as age,
             c.sex as sex,
-            if(sum(IF( d.settlement = 1, 1, 0 ) )>0,1,0) as category
+            if(sum(IF( d.service_tags like '%1%' , 1, 0 ) )>0,1,0) as category
         FROM
             ${dbName}_finance.c_card_acc_detail d
            ,${dbName}_customer.c_customer_subsidy_${operatorId} c