对type、status、gender:代码生成器不再自动为HtmlType赋予默认值,让用户自己选择
This commit is contained in:
parent
0e86f9a111
commit
15b8251601
@ -103,14 +103,14 @@ public class GenUtils {
|
||||
column.setQueryType(GenConstants.QUERY_LIKE);
|
||||
}
|
||||
// 状态字段设置单选框
|
||||
if (StringUtils.endsWithIgnoreCase(columnName, "status")) {
|
||||
column.setHtmlType(GenConstants.HTML_RADIO);
|
||||
}
|
||||
// if (StringUtils.endsWithIgnoreCase(columnName, "status")) {
|
||||
// column.setHtmlType(GenConstants.HTML_RADIO);
|
||||
// }
|
||||
// 类型&性别字段设置下拉框
|
||||
else if (StringUtils.endsWithIgnoreCase(columnName, "type")
|
||||
|| StringUtils.endsWithIgnoreCase(columnName, "gender")) {
|
||||
column.setHtmlType(GenConstants.HTML_SELECT);
|
||||
}
|
||||
// else if (StringUtils.endsWithIgnoreCase(columnName, "type")
|
||||
// || StringUtils.endsWithIgnoreCase(columnName, "gender")) {
|
||||
// column.setHtmlType(GenConstants.HTML_SELECT);
|
||||
// }
|
||||
// 图片字段设置图片上传控件
|
||||
else if (StringUtils.endsWithIgnoreCase(columnName, "image")) {
|
||||
column.setHtmlType(GenConstants.HTML_IMAGE_UPLOAD);
|
||||
|
Loading…
Reference in New Issue
Block a user