qin 1 年間 前
コミット
13ee9dc654
1 ファイル変更1 行追加1 行削除
  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