修改代码生成器
This commit is contained in:
parent
d8e946bbd9
commit
0a9496ee86
|
|
@ -29,7 +29,6 @@ public class GenTableColumn implements Serializable {
|
||||||
private Integer isInsert;
|
private Integer isInsert;
|
||||||
private Integer isEdit;
|
private Integer isEdit;
|
||||||
private Integer isList;
|
private Integer isList;
|
||||||
private Integer isDetail;
|
|
||||||
private Integer isQuery;
|
private Integer isQuery;
|
||||||
private String queryType;
|
private String queryType;
|
||||||
private String htmlType;
|
private String htmlType;
|
||||||
|
|
|
||||||
|
|
@ -105,11 +105,6 @@ public class GenUtil {
|
||||||
column.setIsList(GenConstants.REQUIRE);
|
column.setIsList(GenConstants.REQUIRE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 需详情的字段
|
|
||||||
if (!GenUtil.isArraysContains(new String[]{"is_delete", "delete_time"}, columnName)) {
|
|
||||||
column.setIsDetail(GenConstants.REQUIRE);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 需查询字段
|
// 需查询字段
|
||||||
if (!GenUtil.isArraysContains(SqlConstants.COLUMN_NAME_NOT_QUERY, columnName) && column.getIsPk() == 0) {
|
if (!GenUtil.isArraysContains(SqlConstants.COLUMN_NAME_NOT_QUERY, columnName) && column.getIsPk() == 0) {
|
||||||
column.setIsQuery(GenConstants.REQUIRE);
|
column.setIsQuery(GenConstants.REQUIRE);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import java.util.Map;
|
||||||
public interface I${EntityName}Service {
|
public interface I${EntityName}Service {
|
||||||
|
|
||||||
#if($table.genTpl=="curd")
|
#if($table.genTpl=="curd")
|
||||||
/**、
|
/**
|
||||||
* ${functionName}列表
|
* ${functionName}列表
|
||||||
*
|
*
|
||||||
#if(!$authorName.equals(""))
|
#if(!$authorName.equals(""))
|
||||||
|
|
@ -22,7 +22,7 @@ public interface I${EntityName}Service {
|
||||||
#end
|
#end
|
||||||
* @param pageParam 分页参数
|
* @param pageParam 分页参数
|
||||||
* @param params 搜索参数
|
* @param params 搜索参数
|
||||||
* @return PageResult<${EntityName}Vo}>
|
* @return PageResult<${EntityName}Vo>
|
||||||
*/
|
*/
|
||||||
PageResult<${EntityName}ListVo> list(PageParam pageParam, Map<String, String> params);
|
PageResult<${EntityName}ListVo> list(PageParam pageParam, Map<String, String> params);
|
||||||
#elseif($table.genTpl=="tree")
|
#elseif($table.genTpl=="tree")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue