Browse Source

盯盘2.0功能 ,添加userId

zhaoxian 4 năm trước cách đây
mục cha
commit
bcc9efde7e

+ 2 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/xml/EtlKuaishouReportAccountHourlyMapper.xml

@@ -424,11 +424,12 @@
 
     <select id="operatingStaffDataList" resultType="com.alibaba.fastjson.JSONObject">
         SELECT
+        IFNULL(t2.user_id,'') 'userId',
         IFNULL(t9.realname,'') 'realName',
         IFNULL(t3.accountCount,0) 'accountCount',
         IFNULL(SUM(t1.charge),0) 'charge',
         IFNULL(t4.weekCharge,0) 'weekCharge',
-        IFNULL(ROUND((t4.weekCharge-t5.lweekCharge)/t5.lweekCharge*100,2), 0)as 'grew',
+        concat(CAST(IFNULL(ROUND((t4.weekCharge-t5.lweekCharge)/t5.lweekCharge*100,2), 0)as char),'%')as 'grew',
         IFNULL(t6.effectiveCount,0) 'effectiveCount',
         IFNULL(t7.campaignCount,0) 'campaignCount',
         IFNULL(t8.unitCount,0) 'unitCount'