瀏覽代碼

fix of '新老数据库同步逻辑' on 2021.1.27

jiequan.bi 4 年之前
父節點
當前提交
1368f8b608

+ 3 - 2
module-common/src/main/java/cn/com/ctop/common/module/material/mapper/xml/MaterialVideoInfoMapper.xml

@@ -9,13 +9,14 @@
     <select id="joinMaterialInfo" resultType="com.alibaba.fastjson.JSONObject">
         SELECT
             CONCAT(t1.md5, t2.project_id) AS id,
-            t1.md5,
+            t1.md5 as code,
             t1.url,
             t1.cover_url AS coverUrl,
             t3.clip AS userId,
             t1.description AS materialDescribe,
             t2.project_id AS projectId,
-            t1.material_type AS type
+            'VIDEO' AS type,
+            t1.supplier_code as supplierCode
         FROM
             ctop_material_video_info t1
                 LEFT JOIN ctop_material_video_project t2 ON t1.md5 = t2.video_md5