| | |
| | | {
|
| | | column.setHtmlType(GenConstants.HTML_INPUT);
|
| | |
|
| | | // 如果是浮点型
|
| | | // 如果是浮点型 统一用BigDecimal
|
| | | String[] str = StringUtils.split(StringUtils.substringBetween(column.getColumnType(), "(", ")"), ",");
|
| | | if (str != null && str.length == 2 && Integer.parseInt(str[1]) > 0)
|
| | | {
|
| | |
| | | {
|
| | | column.setHtmlType(GenConstants.HTML_SELECT);
|
| | | }
|
| | | // 文件字段设置上传控件
|
| | | // 图片字段设置图片上传控件
|
| | | else if (StringUtils.endsWithIgnoreCase(columnName, "image"))
|
| | | {
|
| | | column.setHtmlType(GenConstants.HTML_UPLOAD_IMAGE);
|
| | | column.setHtmlType(GenConstants.HTML_IMAGE_UPLOAD);
|
| | | }
|
| | | // 文件字段设置文件上传控件
|
| | | else if (StringUtils.endsWithIgnoreCase(columnName, "file"))
|
| | | {
|
| | | column.setHtmlType(GenConstants.HTML_FILE_UPLOAD);
|
| | | }
|
| | | // 内容字段设置富文本控件
|
| | | else if (StringUtils.endsWithIgnoreCase(columnName, "content"))
|