update 优化 代码生成常量 关于 BO VO 注释
This commit is contained in:
parent
100f6603f2
commit
e2de22bdce
@ -69,28 +69,26 @@ public class GenUtils
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 插入字段(默认所有字段都需要插入)
|
// BO对象 默认插入勾选
|
||||||
// 主键不需要添加
|
|
||||||
if (!arraysContains(GenConstants.COLUMNNAME_NOT_ADD, columnName) && !column.isPk()) {
|
if (!arraysContains(GenConstants.COLUMNNAME_NOT_ADD, columnName) && !column.isPk()) {
|
||||||
column.setIsInsert(GenConstants.REQUIRE);
|
column.setIsInsert(GenConstants.REQUIRE);
|
||||||
}
|
}
|
||||||
// 编辑字段
|
// BO对象 默认编辑勾选
|
||||||
// 编辑需要主键
|
|
||||||
if (!arraysContains(GenConstants.COLUMNNAME_NOT_EDIT, columnName))
|
if (!arraysContains(GenConstants.COLUMNNAME_NOT_EDIT, columnName))
|
||||||
{
|
{
|
||||||
column.setIsEdit(GenConstants.REQUIRE);
|
column.setIsEdit(GenConstants.REQUIRE);
|
||||||
}
|
}
|
||||||
// 编辑需要的设置必选
|
// BO对象 默认是否必填勾选
|
||||||
if (!arraysContains(GenConstants.COLUMNNAME_NOT_EDIT, columnName))
|
if (!arraysContains(GenConstants.COLUMNNAME_NOT_EDIT, columnName))
|
||||||
{
|
{
|
||||||
column.setIsRequired(GenConstants.REQUIRE);
|
column.setIsRequired(GenConstants.REQUIRE);
|
||||||
}
|
}
|
||||||
// 列表字段
|
// VO对象 默认返回勾选
|
||||||
if (!arraysContains(GenConstants.COLUMNNAME_NOT_LIST, columnName))
|
if (!arraysContains(GenConstants.COLUMNNAME_NOT_LIST, columnName))
|
||||||
{
|
{
|
||||||
column.setIsList(GenConstants.REQUIRE);
|
column.setIsList(GenConstants.REQUIRE);
|
||||||
}
|
}
|
||||||
// 查询字段
|
// BO对象 默认查询勾选
|
||||||
if (!arraysContains(GenConstants.COLUMNNAME_NOT_QUERY, columnName) && !column.isPk())
|
if (!arraysContains(GenConstants.COLUMNNAME_NOT_QUERY, columnName) && !column.isPk())
|
||||||
{
|
{
|
||||||
column.setIsQuery(GenConstants.REQUIRE);
|
column.setIsQuery(GenConstants.REQUIRE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user