|
@@ -107,7 +107,7 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
//默认字段类型=varchar 长度=255
|
|
//默认字段类型=varchar 长度=255
|
|
String fieldNameKey = wbsFormElement.getEKey();
|
|
String fieldNameKey = wbsFormElement.getEKey();
|
|
String fieldType = "varchar";
|
|
String fieldType = "varchar";
|
|
- String fieldLength = "255";
|
|
|
|
|
|
+ String fieldLength = "250";
|
|
sbr.append(fieldNameKey);
|
|
sbr.append(fieldNameKey);
|
|
sbr.append(" ").append(fieldType).append("(").append(fieldLength).append(") ,\n");
|
|
sbr.append(" ").append(fieldType).append("(").append(fieldLength).append(") ,\n");
|
|
|
|
|
|
@@ -182,6 +182,8 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
//同步
|
|
//同步
|
|
//sbr1.append(" ").append(fieldType).append("(").append(wbsFormElement.getELength()).append(")");
|
|
//sbr1.append(" ").append(fieldType).append("(").append(wbsFormElement.getELength()).append(")");
|
|
|
|
|
|
|
|
+ wbsFormElement.setELength(250);
|
|
|
|
+
|
|
sbr1.append(" ").append("varchar").append("(").append(wbsFormElement.getELength()).append(")");
|
|
sbr1.append(" ").append("varchar").append("(").append(wbsFormElement.getELength()).append(")");
|
|
String sql = newName + " " + sbr1;
|
|
String sql = newName + " " + sbr1;
|
|
baseMapper.alterAddFiled(sql, tableName);
|
|
baseMapper.alterAddFiled(sql, tableName);
|
|
@@ -198,7 +200,7 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
//同步
|
|
//同步
|
|
//sbr1.append(" ").append(fieldType).append("(").append(wbsFormElement.getELength()).append(")");
|
|
//sbr1.append(" ").append(fieldType).append("(").append(wbsFormElement.getELength()).append(")");
|
|
|
|
|
|
- wbsFormElement.setELength(255);
|
|
|
|
|
|
+ wbsFormElement.setELength(250);
|
|
|
|
|
|
sbr1.append(" ").append("varchar").append("(").append(wbsFormElement.getELength()).append(")");
|
|
sbr1.append(" ").append("varchar").append("(").append(wbsFormElement.getELength()).append(")");
|
|
String sql = newName + " " + sbr1;
|
|
String sql = newName + " " + sbr1;
|
|
@@ -216,7 +218,7 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
//同步
|
|
//同步
|
|
//sbr1.append(" ").append(fieldType).append("(").append(wbsFormElement.getELength()).append(")");
|
|
//sbr1.append(" ").append(fieldType).append("(").append(wbsFormElement.getELength()).append(")");
|
|
|
|
|
|
- wbsFormElement.setELength(255);
|
|
|
|
|
|
+ wbsFormElement.setELength(250);
|
|
|
|
|
|
sbr1.append(" ").append("varchar").append("(").append(wbsFormElement.getELength()).append(")");
|
|
sbr1.append(" ").append("varchar").append("(").append(wbsFormElement.getELength()).append(")");
|
|
String sql = newName + " " + sbr1;
|
|
String sql = newName + " " + sbr1;
|
|
@@ -233,7 +235,7 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
//同步
|
|
//同步
|
|
//sbr1.append(" ").append(fieldType).append("(").append(0).append(")");
|
|
//sbr1.append(" ").append(fieldType).append("(").append(0).append(")");
|
|
|
|
|
|
- wbsFormElement.setELength(255);
|
|
|
|
|
|
+ wbsFormElement.setELength(250);
|
|
|
|
|
|
sbr1.append(" ").append("varchar").append("(").append(wbsFormElement.getELength()).append(")");
|
|
sbr1.append(" ").append("varchar").append("(").append(wbsFormElement.getELength()).append(")");
|
|
String sql = newName + " " + sbr1;
|
|
String sql = newName + " " + sbr1;
|
|
@@ -315,11 +317,11 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
|
|
|
|
//设置默认长度
|
|
//设置默认长度
|
|
if (eLength <= 255 && eLength > 65) {
|
|
if (eLength <= 255 && eLength > 65) {
|
|
- eLength = 255;
|
|
|
|
|
|
+ eLength = 250;
|
|
} else if (eLength <= 1000 && eLength > 500) {
|
|
} else if (eLength <= 1000 && eLength > 500) {
|
|
eLength = 500;
|
|
eLength = 500;
|
|
} else if (eLength >= 0 && eLength <= 65) {
|
|
} else if (eLength >= 0 && eLength <= 65) {
|
|
- eLength = 20;
|
|
|
|
|
|
+ eLength = 50;
|
|
}
|
|
}
|
|
|
|
|
|
//判断是否存在该Key字段
|
|
//判断是否存在该Key字段
|
|
@@ -484,7 +486,7 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
|
|
|
|
//初始化默认值varchar 长度255
|
|
//初始化默认值varchar 长度255
|
|
String eTypeFiled = "varchar";
|
|
String eTypeFiled = "varchar";
|
|
- int eLengthFiled = 255;
|
|
|
|
|
|
+ int eLengthFiled = 250;
|
|
|
|
|
|
//判断是否存在该Key字段
|
|
//判断是否存在该Key字段
|
|
int row1 = wbsTreeMapper.isThereAField(wbsTree.getInitTableName(), key);
|
|
int row1 = wbsTreeMapper.isThereAField(wbsTree.getInitTableName(), key);
|
|
@@ -570,7 +572,7 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
|
|
|
|
//初始化默认值varchar 长度255
|
|
//初始化默认值varchar 长度255
|
|
String eTypeFiled = "varchar";
|
|
String eTypeFiled = "varchar";
|
|
- int eLengthFiled = 255;
|
|
|
|
|
|
+ int eLengthFiled = 250;
|
|
|
|
|
|
//判断是否存在该Key字段
|
|
//判断是否存在该Key字段
|
|
int row1 = wbsTreeMapper.isThereAField(wbsTree.getInitTableName(), key);
|
|
int row1 = wbsTreeMapper.isThereAField(wbsTree.getInitTableName(), key);
|
|
@@ -727,7 +729,7 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
//默认初始化值
|
|
//默认初始化值
|
|
String eKey = listDatum.getEKey();
|
|
String eKey = listDatum.getEKey();
|
|
String initTableFiledType = "varchar";
|
|
String initTableFiledType = "varchar";
|
|
- Integer elementLength = 255;
|
|
|
|
|
|
+ Integer elementLength = 250;
|
|
|
|
|
|
//同步
|
|
//同步
|
|
baseMapper.addTableFiled(initTableName, eKey, initTableFiledType, elementLength);
|
|
baseMapper.addTableFiled(initTableName, eKey, initTableFiledType, elementLength);
|
|
@@ -768,11 +770,11 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
case "字符串":
|
|
case "字符串":
|
|
case "签名":
|
|
case "签名":
|
|
case "文件":
|
|
case "文件":
|
|
- return 255;
|
|
|
|
|
|
+ return 250;
|
|
case "整数":
|
|
case "整数":
|
|
case "数值":
|
|
case "数值":
|
|
case "小数":
|
|
case "小数":
|
|
- return 20;
|
|
|
|
|
|
+ return 50;
|
|
case "日期":
|
|
case "日期":
|
|
default:
|
|
default:
|
|
return 0;
|
|
return 0;
|
|
@@ -782,10 +784,10 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
private Integer getElementLength2(String type) {
|
|
private Integer getElementLength2(String type) {
|
|
switch (type) {
|
|
switch (type) {
|
|
case "varchar":
|
|
case "varchar":
|
|
- return 255;
|
|
|
|
|
|
+ return 250;
|
|
case "bigint":
|
|
case "bigint":
|
|
case "decimal":
|
|
case "decimal":
|
|
- return 20;
|
|
|
|
|
|
+ return 50;
|
|
case "datetime":
|
|
case "datetime":
|
|
default:
|
|
default:
|
|
return 0;
|
|
return 0;
|
|
@@ -797,11 +799,11 @@ public class WbsFormElementServiceImpl extends BaseServiceImpl<WbsFormElementMap
|
|
case 1: //字符串
|
|
case 1: //字符串
|
|
case 7: //文件
|
|
case 7: //文件
|
|
case 6: //签名
|
|
case 6: //签名
|
|
- return "255";
|
|
|
|
|
|
+ return "250";
|
|
case 2: //整数
|
|
case 2: //整数
|
|
case 5: //数值
|
|
case 5: //数值
|
|
case 3: //小数
|
|
case 3: //小数
|
|
- return "20";
|
|
|
|
|
|
+ return "50";
|
|
case 4: //日期
|
|
case 4: //日期
|
|
default:
|
|
default:
|
|
return "0";
|
|
return "0";
|