模板优化
This commit is contained in:
parent
1b4a69cfe1
commit
38c28b6e73
|
|
@ -3,7 +3,6 @@ package com.ruoyi.agile.mapper;
|
||||||
import com.ruoyi.agile.domain.GenTable;
|
import com.ruoyi.agile.domain.GenTable;
|
||||||
import com.ruoyi.framework.web.base.MyMapper;
|
import com.ruoyi.framework.web.base.MyMapper;
|
||||||
import com.ruoyi.generator.domain.TableInfo;
|
import com.ruoyi.generator.domain.TableInfo;
|
||||||
import tk.mybatis.mapper.common.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ package com.ruoyi.agile.service;
|
||||||
|
|
||||||
import com.ruoyi.agile.domain.GenTable;
|
import com.ruoyi.agile.domain.GenTable;
|
||||||
import com.ruoyi.framework.web.base.AbstractBaseService;
|
import com.ruoyi.framework.web.base.AbstractBaseService;
|
||||||
import com.ruoyi.generator.domain.TableInfo;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,10 @@ package com.ruoyi.agile.service.impl;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
||||||
import com.ruoyi.generator.domain.TableInfo;
|
|
||||||
import com.ruoyi.generator.mapper.GenMapper;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.ruoyi.agile.mapper.GenTableMapper;
|
import com.ruoyi.agile.mapper.GenTableMapper;
|
||||||
import com.ruoyi.agile.domain.GenTable;
|
import com.ruoyi.agile.domain.GenTable;
|
||||||
import com.ruoyi.agile.service.IGenTableService;
|
import com.ruoyi.agile.service.IGenTableService;
|
||||||
import com.ruoyi.common.support.Convert;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代码生成 服务层实现
|
* 代码生成 服务层实现
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
package ${package}.mapper;
|
package ${package}.mapper;
|
||||||
|
|
||||||
import ${package}.domain.${className};
|
import ${package}.domain.${className};
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import com.ruoyi.framework.web.base.MyMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ${tableComment} 数据层
|
* ${tableComment} 数据层
|
||||||
|
|
@ -9,7 +10,7 @@ import java.util.List;
|
||||||
* @author ${author}
|
* @author ${author}
|
||||||
* @date ${datetime}
|
* @date ${datetime}
|
||||||
*/
|
*/
|
||||||
public interface ${className}Mapper
|
public interface ${className}Mapper extends MyMapper<${className}>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询${tableComment}信息
|
* 查询${tableComment}信息
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,14 @@ package ${package}.service;
|
||||||
|
|
||||||
import ${package}.domain.${className};
|
import ${package}.domain.${className};
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import com.ruoyi.framework.web.base.AbstractBaseService;
|
||||||
/**
|
/**
|
||||||
* ${tableComment} 服务层
|
* ${tableComment} 服务层
|
||||||
*
|
*
|
||||||
* @author ${author}
|
* @author ${author}
|
||||||
* @date ${datetime}
|
* @date ${datetime}
|
||||||
*/
|
*/
|
||||||
public interface I${className}Service
|
public interface I${className}Service extends AbstractBaseService<${className}>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询${tableComment}信息
|
* 查询${tableComment}信息
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import ${package}.mapper.${className}Mapper;
|
||||||
import ${package}.domain.${className};
|
import ${package}.domain.${className};
|
||||||
import ${package}.service.I${className}Service;
|
import ${package}.service.I${className}Service;
|
||||||
import com.ruoyi.common.support.Convert;
|
import com.ruoyi.common.support.Convert;
|
||||||
|
import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
||||||
/**
|
/**
|
||||||
* ${tableComment} 服务层实现
|
* ${tableComment} 服务层实现
|
||||||
*
|
*
|
||||||
|
|
@ -15,7 +15,7 @@ import com.ruoyi.common.support.Convert;
|
||||||
* @date ${datetime}
|
* @date ${datetime}
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class ${className}ServiceImpl implements I${className}Service
|
public class ${className}ServiceImpl extends AbstractBaseServiceImpl<${className}Mapper,${className}> implements I${className}Service
|
||||||
{
|
{
|
||||||
@Autowired
|
@Autowired
|
||||||
private ${className}Mapper ${classname}Mapper;
|
private ${className}Mapper ${classname}Mapper;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue