Commit a74a2161 authored by 刘基明's avatar 刘基明

编辑接口

parent d85c32de
package com.tanpu.community.service; package com.tanpu.community.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.tanpu.common.exception.BizException; import com.tanpu.common.exception.BizException;
import com.tanpu.common.uuid.UuidGenHelper; import com.tanpu.common.uuid.UuidGenHelper;
import com.tanpu.community.api.enums.DeleteTagEnum; import com.tanpu.community.api.enums.DeleteTagEnum;
...@@ -34,8 +35,7 @@ public class ThemeService { ...@@ -34,8 +35,7 @@ public class ThemeService {
@Transactional @Transactional
public void update(ThemeEntity themeEntity,String themeId) { public void update(ThemeEntity themeEntity,String themeId) {
themeEntity.setThemeId(themeId); themeMapper.update(themeEntity,new LambdaUpdateWrapper<ThemeEntity>().eq(ThemeEntity::getThemeId,themeId));
themeMapper.updateById(themeEntity);
} }
//根据id返回主题详情 //根据id返回主题详情
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment