mirror of
				https://github.com/continew-org/continew-starter.git
				synced 2025-11-04 09:01:40 +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
 | 
			
		||||
    @Transactional(rollbackFor = Exception.class)
 | 
			
		||||
    public Long add(C req) {
 | 
			
		||||
        if (null == req) {
 | 
			
		||||
            return 0L;
 | 
			
		||||
@@ -174,7 +173,6 @@ public abstract class BaseServiceImpl<M extends BaseMapper<T>, T extends BaseDO,
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    @Transactional(rollbackFor = Exception.class)
 | 
			
		||||
    public void update(C req, Long id) {
 | 
			
		||||
        T entity = this.getById(id);
 | 
			
		||||
        BeanUtil.copyProperties(req, entity, CopyOptions.create().ignoreNullValue());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user