代码生成器模板调整

This commit is contained in:
TinyAnts 2022-07-13 18:07:52 +08:00
parent 9c3ebdf0db
commit 5bb748ee77
3 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
package ${packageName}.common.mapper.${moduleName};
import com.hxkj.common.core.basics.IBaseMapper;
import com.hxkj.common.entity.${entityName}.${EntityName};
import com.hxkj.common.entity.${moduleName}.${EntityName};
import org.apache.ibatis.annotations.Mapper;
/**

View File

@ -30,11 +30,11 @@ public interface I${EntityName}Service {
* @param params 搜索参数
* @return PageResult<${EntityName}Vo}>
*/
#if($isEqually)
PageResult<${EntityName}Vo> list(PageParam pageParam, Map<String, String> params);
#else
PageResult<${EntityName}ListVo> list(PageParam pageParam, Map<String, String> params);
#end
#if($isEqually)
PageResult<${EntityName}Vo> list(PageParam pageParam, Map<String, String> params);
#else
PageResult<${EntityName}ListVo> list(PageParam pageParam, Map<String, String> params);
#end
#elseif($table.genTpl=="tree")
/**
* ${functionName}列表
@ -57,11 +57,11 @@ public interface I${EntityName}Service {
* @param id 主键ID
* @return ${EntityName}
*/
#if($isEqually)
${EntityName}Vo detail(Integer id);
#else
${EntityName}DetailVo detail(Integer id);
#end
#if($isEqually)
${EntityName}Vo detail(Integer id);
#else
${EntityName}DetailVo detail(Integer id);
#end
/**
* ${functionName}新增

View File

@ -426,7 +426,7 @@ public class ${EntityName}ServiceImpl implements I${EntityName}Service {
* @return ${EntityName}
*/
@Override
public#if($isEqually) ${EntityName}Vo#else ${EntityName}DetailVo#end detail(Integer id) {
public#if($isEqually) ${EntityName}Vo#else ${EntityName}DetailVo#end detail(Integer id) {
Article model = ${entityName}Mapper.selectOne(
#if($field.contains("is_delete"))
new QueryWrapper<${EntityName}>()