mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	fix 代码生成器问题
This commit is contained in:
		@@ -12,6 +12,11 @@ import java.util.HashMap;
 | 
			
		||||
#foreach ($import in $importList)
 | 
			
		||||
import ${import};
 | 
			
		||||
#end
 | 
			
		||||
#if($table.crud || $table.sub)
 | 
			
		||||
import com.ruoyi.common.core.domain.BaseEntity;
 | 
			
		||||
#elseif($table.tree)
 | 
			
		||||
import com.ruoyi.common.core.domain.TreeEntity;
 | 
			
		||||
#end
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * ${functionName}分页查询对象 ${tableName}
 | 
			
		||||
 
 | 
			
		||||
@@ -32,7 +32,7 @@ public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${C
 | 
			
		||||
    @Override
 | 
			
		||||
    public ${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField}){
 | 
			
		||||
        ${ClassName} db = this.baseMapper.selectById(${pkColumn.javaField});
 | 
			
		||||
        return BeanUtil.toBean(db, ${ClassName}Vo.class)
 | 
			
		||||
        return BeanUtil.toBean(db, ${ClassName}Vo.class);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user