소스 검색

sql添加媒体

zhaoxian 2 년 전
부모
커밋
14c794f684
1개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. 13 1
      jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/mapper/xml/FinancePaymentPoolMapper.xml

+ 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"