mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 17:58:17 +08:00
代码生成模板 tab -> 4space
This commit is contained in:
parent
67b7f93f6f
commit
4f4d33d750
@ -18,43 +18,43 @@ import java.util.List;
|
|||||||
* @date ${datetime}
|
* @date ${datetime}
|
||||||
*/
|
*/
|
||||||
public interface I${ClassName}Service extends IServicePlus<${ClassName}, ${ClassName}Vo> {
|
public interface I${ClassName}Service extends IServicePlus<${ClassName}, ${ClassName}Vo> {
|
||||||
/**
|
/**
|
||||||
* 查询单个
|
* 查询单个
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField});
|
${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField});
|
||||||
|
|
||||||
#if($table.crud || $table.sub)
|
#if($table.crud || $table.sub)
|
||||||
/**
|
/**
|
||||||
* 查询列表
|
* 查询列表
|
||||||
*/
|
*/
|
||||||
TableDataInfo<${ClassName}Vo> queryPageList(${ClassName}Bo bo);
|
TableDataInfo<${ClassName}Vo> queryPageList(${ClassName}Bo bo);
|
||||||
#end
|
#end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询列表
|
* 查询列表
|
||||||
*/
|
*/
|
||||||
List<${ClassName}Vo> queryList(${ClassName}Bo bo);
|
List<${ClassName}Vo> queryList(${ClassName}Bo bo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据新增业务对象插入${functionName}
|
* 根据新增业务对象插入${functionName}
|
||||||
* @param bo ${functionName}新增业务对象
|
* @param bo ${functionName}新增业务对象
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Boolean insertByBo(${ClassName}Bo bo);
|
Boolean insertByBo(${ClassName}Bo bo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据编辑业务对象修改${functionName}
|
* 根据编辑业务对象修改${functionName}
|
||||||
* @param bo ${functionName}编辑业务对象
|
* @param bo ${functionName}编辑业务对象
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Boolean updateByBo(${ClassName}Bo bo);
|
Boolean updateByBo(${ClassName}Bo bo);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验并删除数据
|
* 校验并删除数据
|
||||||
* @param ids 主键集合
|
* @param ids 主键集合
|
||||||
* @param isValid 是否校验,true-删除前校验,false-不校验
|
* @param isValid 是否校验,true-删除前校验,false-不校验
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid);
|
Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,13 +25,13 @@ import java.util.Date;
|
|||||||
@ExcelIgnoreUnannotated
|
@ExcelIgnoreUnannotated
|
||||||
public class ${ClassName}Vo {
|
public class ${ClassName}Vo {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $pkColumn.columnComment
|
* $pkColumn.columnComment
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty("$pkColumn.columnComment")
|
@ApiModelProperty("$pkColumn.columnComment")
|
||||||
private ${pkColumn.javaType} ${pkColumn.javaField};
|
private ${pkColumn.javaType} ${pkColumn.javaField};
|
||||||
|
|
||||||
#foreach ($column in $columns)
|
#foreach ($column in $columns)
|
||||||
#if($column.isList && $column.isPk!=1)
|
#if($column.isList && $column.isPk!=1)
|
||||||
@ -48,13 +48,13 @@ public class ${ClassName}Vo {
|
|||||||
@ExcelProperty(value = "${comment}", converter = ExcelDictConvert.class)
|
@ExcelProperty(value = "${comment}", converter = ExcelDictConvert.class)
|
||||||
@ExcelDictFormat(dictType = "${column.dictType}")
|
@ExcelDictFormat(dictType = "${column.dictType}")
|
||||||
#elseif($parentheseIndex != -1)
|
#elseif($parentheseIndex != -1)
|
||||||
@ExcelProperty(value = "${comment}", converter = ExcelDictConvert.class)
|
@ExcelProperty(value = "${comment}", converter = ExcelDictConvert.class)
|
||||||
@ExcelDictFormat(readConverterExp = "$column.readConverterExp()")
|
@ExcelDictFormat(readConverterExp = "$column.readConverterExp()")
|
||||||
#else
|
#else
|
||||||
@ExcelProperty(value = "${comment}")
|
@ExcelProperty(value = "${comment}")
|
||||||
#end
|
#end
|
||||||
@ApiModelProperty("$column.columnComment")
|
@ApiModelProperty("$column.columnComment")
|
||||||
private $column.javaType $column.javaField;
|
private $column.javaType $column.javaField;
|
||||||
|
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user