qin 1 rok pred
rodič
commit
13ee9dc654

+ 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