update 优化 删除无用变量

2.X
疯狂的狮子Li 11 months ago
parent a51b635c56
commit cbec4de354

@ -20,7 +20,7 @@ import org.dromara.common.excel.utils.ExcelUtil;
import ${packageName}.domain.vo.${ClassName}Vo; import ${packageName}.domain.vo.${ClassName}Vo;
import ${packageName}.domain.bo.${ClassName}Bo; import ${packageName}.domain.bo.${ClassName}Bo;
import ${packageName}.service.I${ClassName}Service; import ${packageName}.service.I${ClassName}Service;
#if($table.crud || $table.sub) #if($table.crud)
import org.dromara.common.mybatis.core.page.TableDataInfo; import org.dromara.common.mybatis.core.page.TableDataInfo;
#elseif($table.tree) #elseif($table.tree)
#end #end
@ -45,7 +45,7 @@ public class ${ClassName}Controller extends BaseController {
*/ */
@SaCheckPermission("${permissionPrefix}:list") @SaCheckPermission("${permissionPrefix}:list")
@GetMapping("/list") @GetMapping("/list")
#if($table.crud || $table.sub) #if($table.crud)
public TableDataInfo<${ClassName}Vo> list(${ClassName}Bo bo, PageQuery pageQuery) { public TableDataInfo<${ClassName}Vo> list(${ClassName}Bo bo, PageQuery pageQuery) {
return ${className}Service.queryPageList(bo, pageQuery); return ${className}Service.queryPageList(bo, pageQuery);
} }

@ -3,7 +3,7 @@ package ${packageName}.service;
import ${packageName}.domain.${ClassName}; import ${packageName}.domain.${ClassName};
import ${packageName}.domain.vo.${ClassName}Vo; import ${packageName}.domain.vo.${ClassName}Vo;
import ${packageName}.domain.bo.${ClassName}Bo; import ${packageName}.domain.bo.${ClassName}Bo;
#if($table.crud || $table.sub) #if($table.crud)
import org.dromara.common.mybatis.core.page.TableDataInfo; import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery; import org.dromara.common.mybatis.core.page.PageQuery;
#end #end
@ -24,7 +24,7 @@ public interface I${ClassName}Service {
*/ */
${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField}); ${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField});
#if($table.crud || $table.sub) #if($table.crud)
/** /**
* 查询${functionName}列表 * 查询${functionName}列表
*/ */

@ -2,7 +2,7 @@ package ${packageName}.service.impl;
import org.dromara.common.core.utils.MapstructUtils; import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils; import org.dromara.common.core.utils.StringUtils;
#if($table.crud || $table.sub) #if($table.crud)
import org.dromara.common.mybatis.core.page.TableDataInfo; import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery; import org.dromara.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@ -41,7 +41,7 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
return baseMapper.selectVoById(${pkColumn.javaField}); return baseMapper.selectVoById(${pkColumn.javaField});
} }
#if($table.crud || $table.sub) #if($table.crud)
/** /**
* 查询${functionName}列表 * 查询${functionName}列表
*/ */

Loading…
Cancel
Save