浏览代码

素材大盘报错

yumeng 4 年之前
父节点
当前提交
eca6d6a9d7

+ 3 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/mapper/xml/MaterialReportOverViewMapper.xml

@@ -99,7 +99,7 @@
         ctop_etl_kuaishou_account_material_report_daily
         WHERE
         1=1
-        <if test="projects !=null">
+        <if test="projects !=null and projects.size() > 0">
             AND project_id IN
             <foreach collection="projects" item="item" separator=","
                      open="(" close=")">
@@ -227,7 +227,8 @@
     <select id="queryBytedanceTopMaterial" resultType="com.alibaba.fastjson.JSONObject">
         SELECT
         t1.*,
-        IFNULL((SELECT GROUP_CONCAT(tag_name) from ctop_material_tag_info where code=signature and status=1),"塑造") as  tag
+        IFNULL((SELECT GROUP_CONCAT(tag_name) from ctop_material_tag_info where code=signature and status=1),"塑造") as
+        tag
         FROM
         (SELECT md5 signature,
         IFNULL(toutiao_url, '') AS url,