|
@@ -34,7 +34,6 @@ import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.apache.dubbo.config.annotation.DubboService;
|
|
import org.apache.dubbo.config.annotation.DubboService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.context.annotation.Lazy;
|
|
import org.springframework.context.annotation.Lazy;
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
@@ -208,9 +207,6 @@ public class DynamicContentServiceImpl implements DynamicContentService, com.che
|
|
Paging paging = param.getPaging();
|
|
Paging paging = param.getPaging();
|
|
Page<DynamicContentDTO> page = new Page<>(paging.getNumber(), paging.getSize());
|
|
Page<DynamicContentDTO> page = new Page<>(paging.getNumber(), paging.getSize());
|
|
IPage<DynamicContentDTO> result = null;
|
|
IPage<DynamicContentDTO> result = null;
|
|
- if (param == null) {
|
|
|
|
- return new Pagination<>();
|
|
|
|
- }
|
|
|
|
result = baseMapper
|
|
result = baseMapper
|
|
.queryAll(page, queryManagerWrapper(param));
|
|
.queryAll(page, queryManagerWrapper(param));
|
|
IPage<DynamicContentDTO> resultDto = getResult(result, false, null);
|
|
IPage<DynamicContentDTO> resultDto = getResult(result, false, null);
|
|
@@ -262,7 +258,7 @@ public class DynamicContentServiceImpl implements DynamicContentService, com.che
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
|
|
|
+ //@Transactional
|
|
public void insertByBo(AddDynamicContentParam param, Long userId) {
|
|
public void insertByBo(AddDynamicContentParam param, Long userId) {
|
|
addValidEntityBeforeSave(param);
|
|
addValidEntityBeforeSave(param);
|
|
String textContent = param.getTextContent();
|
|
String textContent = param.getTextContent();
|
|
@@ -308,7 +304,7 @@ public class DynamicContentServiceImpl implements DynamicContentService, com.che
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
|
|
|
+ //@Transactional
|
|
public void deleteByIds(Long id, Long userId) {
|
|
public void deleteByIds(Long id, Long userId) {
|
|
LambdaQueryWrapper<DynamicContent> wrapper = Wrappers.lambdaQuery();
|
|
LambdaQueryWrapper<DynamicContent> wrapper = Wrappers.lambdaQuery();
|
|
wrapper.eq(DynamicContent::getId, id);
|
|
wrapper.eq(DynamicContent::getId, id);
|
|
@@ -378,7 +374,7 @@ public class DynamicContentServiceImpl implements DynamicContentService, com.che
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
|
|
|
+ //@Transactional
|
|
public void shieldByUserId(Long userId, Integer type) {
|
|
public void shieldByUserId(Long userId, Integer type) {
|
|
baseMapper.shieldByUserId(userId, type);
|
|
baseMapper.shieldByUserId(userId, type);
|
|
dynamicCommentMapper.shieldByUserId(userId, type);
|
|
dynamicCommentMapper.shieldByUserId(userId, type);
|