mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 优化代码生成注释,删除无用引入
This commit is contained in:
		@@ -1,6 +1,5 @@
 | 
			
		||||
package ${packageName}.service;
 | 
			
		||||
 | 
			
		||||
import ${packageName}.domain.${ClassName};
 | 
			
		||||
import ${packageName}.domain.vo.${ClassName}Vo;
 | 
			
		||||
import ${packageName}.domain.bo.${ClassName}Bo;
 | 
			
		||||
#if($table.crud)
 | 
			
		||||
@@ -21,33 +20,53 @@ public interface I${ClassName}Service {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 查询${functionName}
 | 
			
		||||
     *
 | 
			
		||||
     * @param ${pkColumn.javaField} 主键
 | 
			
		||||
     * @return ${functionName}
 | 
			
		||||
     */
 | 
			
		||||
    ${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField});
 | 
			
		||||
 | 
			
		||||
#if($table.crud)
 | 
			
		||||
    /**
 | 
			
		||||
     * 查询${functionName}列表
 | 
			
		||||
     * 分页查询${functionName}列表
 | 
			
		||||
     *
 | 
			
		||||
     * @param bo        查询条件
 | 
			
		||||
     * @param pageQuery 分页参数
 | 
			
		||||
     * @return ${functionName}分页列表
 | 
			
		||||
     */
 | 
			
		||||
    TableDataInfo<${ClassName}Vo> queryPageList(${ClassName}Bo bo, PageQuery pageQuery);
 | 
			
		||||
#end
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 查询${functionName}列表
 | 
			
		||||
     * 查询符合条件的${functionName}列表
 | 
			
		||||
     *
 | 
			
		||||
     * @param bo 查询条件
 | 
			
		||||
     * @return ${functionName}列表
 | 
			
		||||
     */
 | 
			
		||||
    List<${ClassName}Vo> queryList(${ClassName}Bo bo);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 新增${functionName}
 | 
			
		||||
     *
 | 
			
		||||
     * @param bo ${functionName}
 | 
			
		||||
     * @return 是否新增成功
 | 
			
		||||
     */
 | 
			
		||||
    Boolean insertByBo(${ClassName}Bo bo);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 修改${functionName}
 | 
			
		||||
     *
 | 
			
		||||
     * @param bo ${functionName}
 | 
			
		||||
     * @return 是否修改成功
 | 
			
		||||
     */
 | 
			
		||||
    Boolean updateByBo(${ClassName}Bo bo);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 校验并批量删除${functionName}信息
 | 
			
		||||
     *
 | 
			
		||||
     * @param ids     待删除的主键集合
 | 
			
		||||
     * @param isValid 是否进行有效性校验
 | 
			
		||||
     * @return 是否删除成功
 | 
			
		||||
     */
 | 
			
		||||
    Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -35,6 +35,9 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 查询${functionName}
 | 
			
		||||
     *
 | 
			
		||||
     * @param ${pkColumn.javaField} 主键
 | 
			
		||||
     * @return ${functionName}
 | 
			
		||||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    public ${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField}){
 | 
			
		||||
@@ -43,7 +46,11 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
 | 
			
		||||
 | 
			
		||||
#if($table.crud)
 | 
			
		||||
    /**
 | 
			
		||||
     * 查询${functionName}列表
 | 
			
		||||
     * 分页查询${functionName}列表
 | 
			
		||||
     *
 | 
			
		||||
     * @param bo        查询条件
 | 
			
		||||
     * @param pageQuery 分页参数
 | 
			
		||||
     * @return ${functionName}分页列表
 | 
			
		||||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    public TableDataInfo<${ClassName}Vo> queryPageList(${ClassName}Bo bo, PageQuery pageQuery) {
 | 
			
		||||
@@ -54,7 +61,10 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
 | 
			
		||||
#end
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 查询${functionName}列表
 | 
			
		||||
     * 查询符合条件的${functionName}列表
 | 
			
		||||
     *
 | 
			
		||||
     * @param bo 查询条件
 | 
			
		||||
     * @return ${functionName}列表
 | 
			
		||||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    public List<${ClassName}Vo> queryList(${ClassName}Bo bo) {
 | 
			
		||||
@@ -91,6 +101,9 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 新增${functionName}
 | 
			
		||||
     *
 | 
			
		||||
     * @param bo ${functionName}
 | 
			
		||||
     * @return 是否新增成功
 | 
			
		||||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    public Boolean insertByBo(${ClassName}Bo bo) {
 | 
			
		||||
@@ -106,6 +119,9 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 修改${functionName}
 | 
			
		||||
     *
 | 
			
		||||
     * @param bo ${functionName}
 | 
			
		||||
     * @return 是否修改成功
 | 
			
		||||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    public Boolean updateByBo(${ClassName}Bo bo) {
 | 
			
		||||
@@ -122,7 +138,11 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 批量删除${functionName}
 | 
			
		||||
     * 校验并批量删除${functionName}信息
 | 
			
		||||
     *
 | 
			
		||||
     * @param ids     待删除的主键集合
 | 
			
		||||
     * @param isValid 是否进行有效性校验
 | 
			
		||||
     * @return 是否删除成功
 | 
			
		||||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    public Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user