mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-09 08:57:17 +08:00
style(extension/crud): 移除部分方法中仅有单个非读操作的事务处理
This commit is contained in:
@@ -163,7 +163,6 @@ public abstract class BaseServiceImpl<M extends BaseMapper<T>, T extends BaseDO,
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
|
||||||
public Long add(C req) {
|
public Long add(C req) {
|
||||||
if (null == req) {
|
if (null == req) {
|
||||||
return 0L;
|
return 0L;
|
||||||
@@ -174,7 +173,6 @@ public abstract class BaseServiceImpl<M extends BaseMapper<T>, T extends BaseDO,
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
|
||||||
public void update(C req, Long id) {
|
public void update(C req, Long id) {
|
||||||
T entity = this.getById(id);
|
T entity = this.getById(id);
|
||||||
BeanUtil.copyProperties(req, entity, CopyOptions.create().ignoreNullValue());
|
BeanUtil.copyProperties(req, entity, CopyOptions.create().ignoreNullValue());
|
||||||
|
Reference in New Issue
Block a user