|
|
@@ -1,6 +1,8 @@
|
|
|
package com.fs.course.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.fs.course.domain.FsCoursePlaySourceConfig;
|
|
|
import com.fs.course.mapper.FsCoursePlaySourceConfigMapper;
|
|
|
@@ -35,4 +37,12 @@ public class FsCoursePlaySourceConfigServiceImpl extends ServiceImpl<FsCoursePla
|
|
|
public FsCoursePlaySourceConfig selectCoursePlaySourceConfigByAppId(String appId) {
|
|
|
return baseMapper.selectCoursePlaySourceConfigByAppId(appId);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void bindMerchant(String appId, Long merchantConfigId) {
|
|
|
+ LambdaUpdateWrapper<FsCoursePlaySourceConfig> updateWrapper = Wrappers.lambdaUpdate();
|
|
|
+ updateWrapper.eq(FsCoursePlaySourceConfig::getAppid, appId)
|
|
|
+ .set(FsCoursePlaySourceConfig::getMerchantConfigId, merchantConfigId);
|
|
|
+ this.update(updateWrapper);
|
|
|
+ }
|
|
|
}
|