Merge pull request #54 from gaohanghang/master

更新mybatis模板,将其中的繁体中文改为简体中文
This commit is contained in:
Moshow郑锴
2019-11-13 21:46:29 +08:00
committed by GitHub
3 changed files with 60 additions and 60 deletions

View File

@@ -51,7 +51,7 @@ public class ${classInfo.className}Controller {
} }
/** /**
* [查] 根據主鍵 id 查 * [查] 根据主键 id 查
* @author ${authorName} * @author ${authorName}
* @date ${.now?string('yyyy/MM/dd')} * @date ${.now?string('yyyy/MM/dd')}
**/ **/
@@ -61,7 +61,7 @@ public class ${classInfo.className}Controller {
} }
/** /**
* [查] 分頁查詢 * [查] 分页查询
* @author ${authorName} * @author ${authorName}
* @date ${.now?string('yyyy/MM/dd')} * @date ${.now?string('yyyy/MM/dd')}
**/ **/

View File

@@ -1,57 +1,57 @@
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
/** /**
* ${classInfo.classComment} * ${classInfo.classComment}
* @author ${authorName} * @author ${authorName}
* @date ${.now?string('yyyy/MM/dd')} * @date ${.now?string('yyyy/MM/dd')}
*/ */
@Mapper @Mapper
@Repository @Repository
public interface ${classInfo.className}Mapper { public interface ${classInfo.className}Mapper {
/** /**
* [新增] * [新增]
* @author ${authorName} * @author ${authorName}
* @date ${.now?string('yyyy/MM/dd')} * @date ${.now?string('yyyy/MM/dd')}
**/ **/
int insert(${classInfo.className} ${classInfo.className?uncap_first}); int insert(${classInfo.className} ${classInfo.className?uncap_first});
/** /**
* [刪除] * [刪除]
* @author ${authorName} * @author ${authorName}
* @date ${.now?string('yyyy/MM/dd')} * @date ${.now?string('yyyy/MM/dd')}
**/ **/
int delete(int id); int delete(int id);
/** /**
* [更新] * [更新]
* @author ${authorName} * @author ${authorName}
* @date ${.now?string('yyyy/MM/dd')} * @date ${.now?string('yyyy/MM/dd')}
**/ **/
int update(${classInfo.className} ${classInfo.className?uncap_first}); int update(${classInfo.className} ${classInfo.className?uncap_first});
/** /**
* [查] 根據主鍵 id 查 * [查] 根据主键 id 查
* @author ${authorName} * @author ${authorName}
* @date ${.now?string('yyyy/MM/dd')} * @date ${.now?string('yyyy/MM/dd')}
**/ **/
${classInfo.className} load(int id); ${classInfo.className} load(int id);
/** /**
* [查] 分頁查詢 * [查] 分页查询
* @author ${authorName} * @author ${authorName}
* @date ${.now?string('yyyy/MM/dd')} * @date ${.now?string('yyyy/MM/dd')}
**/ **/
List<${classInfo.className}> pageList(int offset,int pagesize); List<${classInfo.className}> pageList(int offset,int pagesize);
/** /**
* [查] 分頁查詢 count * [查] 分页查询 count
* @author ${authorName} * @author ${authorName}
* @date ${.now?string('yyyy/MM/dd')} * @date ${.now?string('yyyy/MM/dd')}
**/ **/
int pageListCount(int offset,int pagesize); int pageListCount(int offset,int pagesize);
} }

View File

@@ -23,7 +23,7 @@ public interface ${classInfo.className}Service {
public ReturnT<String> update(${classInfo.className} ${classInfo.className?uncap_first}); public ReturnT<String> update(${classInfo.className} ${classInfo.className?uncap_first});
/** /**
* 根據主鍵 id 查 * 根据主键 id 查
*/ */
public ${classInfo.className} load(int id); public ${classInfo.className} load(int id);