mirror of
https://github.com/moshowgame/SpringBootCodeGenerator.git
synced 2026-03-22 07:28:25 +08:00
更新mybatis模板,将其中的繁体中文改为简体中文
This commit is contained in:
@@ -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')}
|
||||||
**/
|
**/
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user