Browse Source

Merge remote-tracking branch 'origin/master'

yfh 6 days ago
parent
commit
fa592b2fe8

+ 3 - 3
fs-service/src/main/resources/application-config-druid-jnlzjk.yml

@@ -37,8 +37,8 @@ wx:
       port: 6379
       port: 6379
       timeout: 2000
       timeout: 2000
     configs:
     configs:
-      - appId: wx090xxxx5456e # 第一个公众号的appid  //公众号名称:德瑞
-        secret: dc70e9xxxx0aea6b7c52b7 # 公众号的appsecret--德瑞
+      - appId: wxce847c8ebe5e62aa # 第一个公众号的appid  //公众号名称:济南联智健
+        secret: 37f7c5e3b7ff07794343957f7ced8de4 # 公众号的appsecret--济南联智健
         token: PPKOdAlCoMO # 接口配置里的Token值
         token: PPKOdAlCoMO # 接口配置里的Token值
         aesKey: Eswa6VjwtVMCcw03qZy6fWllgrv5aytIA1SZPEU0kU2 # 接口配置里的EncodingAESKey值
         aesKey: Eswa6VjwtVMCcw03qZy6fWllgrv5aytIA1SZPEU0kU2 # 接口配置里的EncodingAESKey值
 aifabu:  #爱链接
 aifabu:  #爱链接
@@ -78,7 +78,7 @@ tmp_secret_config:
   proxy: fs
   proxy: fs
 cloud_host:
 cloud_host:
   company_name: 济南联志健康
   company_name: 济南联志健康
-  projectCode: JNLZJK
+  projectCode: LZJK
 headerImg:
 headerImg:
   imgUrl:
   imgUrl:
 
 

+ 70 - 43
fs-service/src/main/resources/mapper/course/FsCourseLinkMapper.xml

@@ -83,53 +83,80 @@
         </trim>
         </trim>
     </insert>
     </insert>
 
 
+<!--    <insert id="insertFsCourseLinkBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="linkId">-->
+<!--        INSERT INTO fs_course_link-->
+<!--        <trim prefix="(" suffix=")" suffixOverrides=",">-->
+<!--            <if test="courseLinks != null and courseLinks.size() &gt; 0">-->
+<!--                &lt;!&ndash; 假设所有日志对象的字段一致 &ndash;&gt;-->
+<!--                &lt;!&ndash; 动态生成列列表,基于第一个日志对象 &ndash;&gt;-->
+<!--                <foreach collection="courseLinks" item="item" index="index" open="" close="" separator="">-->
+<!--                    <if test="index == 0">-->
+<!--                        <if test="item.link != null">link,</if>-->
+<!--                        <if test="item.realLink != null">real_link,</if>-->
+<!--                        <if test="item.createTime != null">create_time,</if>-->
+<!--                        <if test="item.updateTime != null">update_time,</if>-->
+<!--                        <if test="item.companyId != null">company_id,</if>-->
+<!--                        <if test="item.companyUserId != null">company_user_id,</if>-->
+<!--                        <if test="item.qwUserId != null">qw_user_id,</if>-->
+<!--                        <if test="item.videoId != null">video_id,</if>-->
+<!--                        <if test="item.corpId != null">corp_id,</if>-->
+<!--                        <if test="item.courseId != null">course_id,</if>-->
+<!--                        <if test="item.qwExternalId != null">qw_external_id,</if>-->
+<!--                        <if test="item.linkType != null">link_type,</if>-->
+<!--                        <if test="item.isRoom != null">is_room,</if>-->
+<!--                    </if>-->
+<!--                </foreach>-->
+<!--            </if>-->
+<!--        </trim>-->
+<!--        <trim prefix="VALUES">-->
+<!--            <foreach collection="courseLinks" item="item" separator=",">-->
+<!--                (<trim suffixOverrides=",">-->
+<!--                <if test="item.link != null">#{item.link},</if>-->
+<!--                <if test="item.realLink != null">#{item.realLink},</if>-->
+<!--                <if test="item.createTime != null">#{item.createTime},</if>-->
+<!--                <if test="item.updateTime != null">#{item.updateTime},</if>-->
+<!--                <if test="item.companyId != null">#{item.companyId},</if>-->
+<!--                <if test="item.companyUserId != null">#{item.companyUserId},</if>-->
+<!--                <if test="item.qwUserId != null">#{item.qwUserId},</if>-->
+<!--                <if test="item.videoId != null">#{item.videoId},</if>-->
+<!--                <if test="item.corpId != null">#{item.corpId},</if>-->
+<!--                <if test="item.courseId != null">#{item.courseId},</if>-->
+<!--                <if test="item.qwExternalId != null">#{item.qwExternalId},</if>-->
+<!--                <if test="item.linkType != null">#{item.linkType},</if>-->
+<!--                <if test="item.isRoom != null">#{item.isRoom},</if>-->
+<!--            </trim>)-->
+<!--            </foreach>-->
+<!--        </trim>-->
+<!--    </insert>-->
+
     <insert id="insertFsCourseLinkBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="linkId">
     <insert id="insertFsCourseLinkBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="linkId">
         INSERT INTO fs_course_link
         INSERT INTO fs_course_link
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="courseLinks != null and courseLinks.size() &gt; 0">
-                <!-- 假设所有日志对象的字段一致 -->
-                <!-- 动态生成列列表,基于第一个日志对象 -->
-                <foreach collection="courseLinks" item="item" index="index" open="" close="" separator="">
-                    <if test="index == 0">
-                        <if test="item.link != null">link,</if>
-                        <if test="item.realLink != null">real_link,</if>
-                        <if test="item.createTime != null">create_time,</if>
-                        <if test="item.updateTime != null">update_time,</if>
-                        <if test="item.companyId != null">company_id,</if>
-                        <if test="item.companyUserId != null">company_user_id,</if>
-                        <if test="item.qwUserId != null">qw_user_id,</if>
-                        <if test="item.videoId != null">video_id,</if>
-                        <if test="item.corpId != null">corp_id,</if>
-                        <if test="item.courseId != null">course_id,</if>
-                        <if test="item.qwExternalId != null">qw_external_id,</if>
-                        <if test="item.linkType != null">link_type,</if>
-                        <if test="item.isRoom != null">is_room,</if>
-                    </if>
-                </foreach>
-            </if>
-        </trim>
-        <trim prefix="VALUES">
-            <foreach collection="courseLinks" item="item" separator=",">
-                (<trim suffixOverrides=",">
-                <if test="item.link != null">#{item.link},</if>
-                <if test="item.realLink != null">#{item.realLink},</if>
-                <if test="item.createTime != null">#{item.createTime},</if>
-                <if test="item.updateTime != null">#{item.updateTime},</if>
-                <if test="item.companyId != null">#{item.companyId},</if>
-                <if test="item.companyUserId != null">#{item.companyUserId},</if>
-                <if test="item.qwUserId != null">#{item.qwUserId},</if>
-                <if test="item.videoId != null">#{item.videoId},</if>
-                <if test="item.corpId != null">#{item.corpId},</if>
-                <if test="item.courseId != null">#{item.courseId},</if>
-                <if test="item.qwExternalId != null">#{item.qwExternalId},</if>
-                <if test="item.linkType != null">#{item.linkType},</if>
-                <if test="item.isRoom != null">#{item.isRoom},</if>
-            </trim>)
-            </foreach>
-        </trim>
+        (
+        link, real_link, create_time, update_time,
+        company_id, company_user_id, qw_user_id, video_id,
+        corp_id, course_id, qw_external_id, link_type,
+        is_room
+        )
+        VALUES
+        <foreach collection="courseLinks" item="item" separator=",">
+            (
+            #{item.link,jdbcType=VARCHAR},
+            #{item.realLink,jdbcType=VARCHAR},
+            #{item.createTime,jdbcType=TIMESTAMP},
+            #{item.updateTime,jdbcType=TIMESTAMP},
+            #{item.companyId,jdbcType=BIGINT},
+            #{item.companyUserId,jdbcType=BIGINT},
+            #{item.qwUserId,jdbcType=VARCHAR},
+            #{item.videoId,jdbcType=BIGINT},
+            #{item.corpId,jdbcType=VARCHAR},
+            #{item.courseId,jdbcType=BIGINT},
+            #{item.qwExternalId,jdbcType=BIGINT},
+            #{item.linkType,jdbcType=BIGINT},
+            #{item.isRoom,jdbcType=VARCHAR},
+            )
+        </foreach>
     </insert>
     </insert>
 
 
-
     <update id="updateFsCourseLink" parameterType="FsCourseLink">
     <update id="updateFsCourseLink" parameterType="FsCourseLink">
         update fs_course_link
         update fs_course_link
         <trim prefix="SET" suffixOverrides=",">
         <trim prefix="SET" suffixOverrides=",">