Ver Fonte

素材列表调整

yumeng há 5 anos atrás
pai
commit
78f00bd03f

+ 4 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/MaterialInfoController.java

@@ -210,7 +210,10 @@ public class MaterialInfoController {
                     material.setToutiaoVideoIsUp(0);
                 }
                 JSONObject generalizationJson = materialInfoService.getGeneralizationInfo(material.getCode());
-                material.setGeneralization(generalizationJson);
+                if (!Check.isNull(generalizationJson)) {
+                    material.setGeneralization(generalizationJson);
+                }
+
             }
         }
 

+ 10 - 0
module-common/src/main/java/cn/com/ctop/common/module/mapper/xml/MaterialInfoMapper.xml

@@ -50,6 +50,16 @@
     </select>
 
     <select id="getToutiaoUpVideoCount" resultType="java.lang.Integer">
+        select
+        count(1)
+        from
+        ctop_bytedance_video_info v
+        where
+        v.signature = #{code}
+    </select>
+
+
+    <select id="getGeneralizationInfo" resultType="com.alibaba.fastjson.JSONObject">
      SELECT
 	 SUM(t.cost) cost,
 	 SUM(t.photoShow) photoShow,