فهرست منبع

代码提交2

yjwang 1 هفته پیش
والد
کامیت
77b3b5ad70

+ 1 - 1
fs-admin/src/main/java/com/fs/course/controller/FsCoursePlaySourceConfigController.java

@@ -177,7 +177,7 @@ public class FsCoursePlaySourceConfigController extends BaseController {
         BeanUtils.copyProperties(param, config);
         applyCompanyIds(param.getCompanyId(), param.getCompanyIds(), config);
 
-        fsCoursePlaySourceConfigService.updateById(config);
+        fsCoursePlaySourceConfigService.updateCoursePlaySourceConfig(config);
 
         // 修改配置后直接更新 Redis 缓存
         refreshRedisCache(config);

+ 2 - 1
fs-company/src/main/java/com/fs/company/controller/course/FsCoursePlaySourceConfigController.java

@@ -140,7 +140,8 @@ public class FsCoursePlaySourceConfigController extends BaseController {
 
         BeanUtils.copyProperties(param, config);
         applyCompanyIds(config.getCompanyId(), param.getCompanyIds(), config);
-        fsCoursePlaySourceConfigService.updateById(config);
+
+        fsCoursePlaySourceConfigService.updateCoursePlaySourceConfig(config);
         return AjaxResult.success();
     }
 

+ 5 - 0
fs-service/src/main/java/com/fs/course/mapper/FsCoursePlaySourceConfigMapper.java

@@ -19,4 +19,9 @@ public interface FsCoursePlaySourceConfigMapper extends BaseMapper<FsCoursePlayS
 
     @DataSource(DataSourceType.SLAVE)
     FsCoursePlaySourceConfig selectCoursePlaySourceConfigByAppId(String appId);
+
+    /**
+     * 更新点播播放源配置,company_ids 不做非空判断,允许置为 NULL
+     */
+    int updateCoursePlaySourceConfig(FsCoursePlaySourceConfig config);
 }

+ 5 - 0
fs-service/src/main/java/com/fs/course/service/IFsCoursePlaySourceConfigService.java

@@ -22,4 +22,9 @@ public interface IFsCoursePlaySourceConfigService extends IService<FsCoursePlayS
      * @return
      */
     FsCoursePlaySourceConfig selectCoursePlaySourceConfigByAppId(String appId);
+
+    /**
+     * 更新点播播放源配置,company_ids 不做非空判断,允许置为 NULL
+     */
+    int updateCoursePlaySourceConfig(FsCoursePlaySourceConfig config);
 }

+ 5 - 0
fs-service/src/main/java/com/fs/course/service/impl/FsCoursePlaySourceConfigServiceImpl.java

@@ -35,4 +35,9 @@ public class FsCoursePlaySourceConfigServiceImpl extends ServiceImpl<FsCoursePla
     public FsCoursePlaySourceConfig selectCoursePlaySourceConfigByAppId(String appId) {
         return baseMapper.selectCoursePlaySourceConfigByAppId(appId);
     }
+
+    @Override
+    public int updateCoursePlaySourceConfig(FsCoursePlaySourceConfig config) {
+        return baseMapper.updateCoursePlaySourceConfig(config);
+    }
 }

+ 23 - 0
fs-service/src/main/resources/mapper/course/FsCoursePlaySourceConfigMapper.xml

@@ -61,4 +61,27 @@
         where fcpsc.is_del = 0 and fcpsc.appid= #{appid}
        limit 1
     </select>
+
+    <update id="updateCoursePlaySourceConfig" parameterType="com.fs.course.domain.FsCoursePlaySourceConfig">
+        update fs_course_play_source_config
+        set name = #{name},
+            appid = #{appid},
+            secret = #{secret},
+            img = #{img},
+            original_id = #{originalId},
+            token = #{token},
+            aes_key = #{aesKey},
+            msg_data_format = #{msgDataFormat},
+            type = #{type},
+            company_id = #{companyId},
+            company_ids = #{companyIds},
+            set_company_ids = #{setCompanyIds},
+            is_mall = #{isMall},
+            status = #{status},
+            merchant_config_id = #{merchantConfigId},
+            custom_auth_enabled = #{customAuthEnabled},
+            mini_app_auth_type = #{miniAppAuthType},
+            user_course_auth_domain = #{userCourseAuthDomain}
+        where id = #{id}
+    </update>
 </mapper>