代码生成器模板调整

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}; package ${packageName}.common.mapper.${moduleName};
import com.hxkj.common.core.basics.IBaseMapper; 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; import org.apache.ibatis.annotations.Mapper;
/** /**

View File

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

View File

@ -426,7 +426,7 @@ public class ${EntityName}ServiceImpl implements I${EntityName}Service {
* @return ${EntityName} * @return ${EntityName}
*/ */
@Override @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( Article model = ${entityName}Mapper.selectOne(
#if($field.contains("is_delete")) #if($field.contains("is_delete"))
new QueryWrapper<${EntityName}>() new QueryWrapper<${EntityName}>()