master
admin 2 years ago
parent a40a7aa9e6
commit fad996e510
  1. 4
      ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue
  2. 8
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/fieldx/controller/FieldxController.java

@ -135,6 +135,10 @@
dictCode:'date_type', dictCode:'date_type',
validateRules: [{required: true, message: '${title}不能为空'}] validateRules: [{required: true, message: '${title}不能为空'}]
}, },
{
key: 'length', title: '数据长度', width: '6%',
type: JVXETypes.inputNumber,
},
{ {
key: 'accuracy', title: '浮点精度', width: '6%', key: 'accuracy', title: '浮点精度', width: '6%',
type: JVXETypes.inputNumber, type: JVXETypes.inputNumber,

@ -379,19 +379,19 @@ public class FieldxController extends JeecgController<Fieldx, IFieldxService> {
} else if (type == 2) { } else if (type == 2) {
if (length != null) { if (length != null) {
return "smallint" + "(" + length + ")"; return "smallint" + "(" + length + ")";
} else return "smallint" + "(" + length + ")"; } else return "smallint";
} else if (type == 3) { } else if (type == 3) {
if (length != null) { if (length != null) {
return "mediumint" + "(" + length + ")"; return "mediumint" + "(" + length + ")";
} else return "mediumint" + "(" + length + ")"; } else return "mediumint";
} else if (type == 4) { } else if (type == 4) {
if (length != null) { if (length != null) {
return "int" + "(" + length + ")"; return "int" + "(" + length + ")";
} else return "int" + "(" + length + ")"; } else return "int";
} else if (type == 5) { } else if (type == 5) {
if (length != null) { if (length != null) {
return "bigint" + "(" + length + ")"; return "bigint" + "(" + length + ")";
} else return "bigint" + "(" + length + ")"; } else return "bigint";
} else if (type == 6) { } else if (type == 6) {
if (length != null) { if (length != null) {
if (accuracy != null) { if (accuracy != null) {

Loading…
Cancel
Save