Browse Source

sql添加媒体

zhaoxian 2 năm trước cách đây
mục cha
commit
14c794f684

+ 13 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/mapper/xml/FinancePaymentPoolMapper.xml

@@ -33,7 +33,19 @@
     </select>
 
     <select id="queryPoolProjectList" resultType="com.alibaba.fastjson.JSONObject">
-        select id as 'id', project_name as 'name'
+        select
+        id as 'id',
+        project_name as 'name',
+        CASE media_id
+        WHEN 1 THEN
+        '头条'
+        WHEN 3 THEN
+        '头条内广'
+        WHEN 2 THEN
+        '快手'
+        WHEN 4 THEN
+        '快手内广'
+        END as 'media'
         from ctop_project
         Where advertiser_id in
         <foreach item="item" index="index" collection="advertiserIds"