|
@@ -561,7 +561,8 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
.select(WbsTreeContract::getNodeName, WbsTreeContract::getTableOwner, WbsTreeContract::getPKeyId, WbsTreeContract::getInitTableName, WbsTreeContract::getSort, WbsTreeContract::getFullName, WbsTreeContract::getUpdateTime)
|
|
|
.eq(WbsTreeContract::getContractId, node.getContractId()).eq(WbsTreeContract::getType, 2)
|
|
|
.eq(WbsTreeContract::getWbsId, node.getWbsId()).eq(WbsTreeContract::getWbsType, node.getWbsType())
|
|
|
- .eq(WbsTreeContract::getStatus, 1));
|
|
|
+ .eq(WbsTreeContract::getStatus, 1)
|
|
|
+ .ne(WbsTreeContract::getIsBussShow, 2)); //隐藏的表单不操作
|
|
|
|
|
|
Map<Long, WbsTreeContract> tabMaps = tabs.stream().collect(Collectors.toMap(WbsTreeContract::getPKeyId, Function.identity()));
|
|
|
|
|
@@ -712,7 +713,7 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
for (String exKey : exKeys) {
|
|
|
String[] split = exKey.split("---");
|
|
|
String key = split[0];
|
|
|
- int length = Integer.parseInt(split[1]) * 200; //长度扩容+200
|
|
|
+ int length = Integer.parseInt(split[1]) * 2; //长度扩容两倍
|
|
|
String alterSql = "ALTER TABLE " + initTabName + " MODIFY " + key + " VARCHAR(" + length + ");";
|
|
|
exStrBuilder.append(alterSql);
|
|
|
}
|
|
@@ -776,6 +777,26 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
|
|
|
//入库
|
|
|
if (resultSQLS.size() > 0) {
|
|
|
+ List<String> SqlWithAlter = new ArrayList<>();
|
|
|
+ List<String> SqlWithoutAlter = new ArrayList<>();
|
|
|
+
|
|
|
+ for (String sql : resultSQLS) {
|
|
|
+ if (sql.contains("ALTER TABLE")) {
|
|
|
+ SqlWithAlter.add(sql);
|
|
|
+ } else {
|
|
|
+ SqlWithoutAlter.add(sql);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //清空原始列表
|
|
|
+ resultSQLS.clear();
|
|
|
+
|
|
|
+ //将SqlWithAlter列表的元素添加到结果列表的开头
|
|
|
+ resultSQLS.addAll(SqlWithAlter);
|
|
|
+
|
|
|
+ //将SqlWithoutAlter列表的元素添加到结果列表的末尾
|
|
|
+ resultSQLS.addAll(SqlWithoutAlter);
|
|
|
+
|
|
|
List<List<String>> partition = Lists.partition(resultSQLS, 10);
|
|
|
for (List<String> strings : partition) {
|
|
|
jdbcTemplate.execute(StringUtils.join(strings, " "));
|
|
@@ -861,7 +882,7 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
td = doc.select("el-select[keyname~=" + findIndex + ".*]");
|
|
|
}
|
|
|
if (td.size() == 0) {
|
|
|
- //测站点
|
|
|
+ //测站点、后视点
|
|
|
td = doc.select("hc-form-select-search[keyname~=" + findIndex + ".*]");
|
|
|
}
|
|
|
String placeholderValue = "";
|
|
@@ -882,9 +903,9 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
//特殊处理
|
|
|
if (placeholderValue.equals("测站点") && StringUtils.isNotEmpty(inputType)) {
|
|
|
tdJL = docJL.select("hc-form-select-search[placeholderxx~=" + this.escapeRegex(placeholderValue) + ".*][type~=" + this.escapeRegex(inputType) + ".*]");
|
|
|
- } /*else if (placeholderValue.equals("日期:")) {
|
|
|
- tdJL = docJL.select("el-date-picker[placeholderxx~=" + this.escapeRegex(placeholderValue) + ".*][type~=" + this.escapeRegex(inputType) + ".*]");
|
|
|
- }*/
|
|
|
+ } else if (placeholderValue.equals("后视点") && StringUtils.isNotEmpty(inputType)) {
|
|
|
+ tdJL = docJL.select("hc-form-select-search[placeholderxx~=" + this.escapeRegex(placeholderValue) + ".*][type~=" + this.escapeRegex(inputType) + ".*]");
|
|
|
+ }
|
|
|
|
|
|
if (tdJL.size() == 0) {
|
|
|
//日期格式
|
|
@@ -906,10 +927,7 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
//下拉框
|
|
|
tdJL = docJL.select("el-select[placeholderxx~=" + this.escapeRegex(placeholderValue) + ".*]");
|
|
|
}
|
|
|
- if (tdJL.size() == 0) {
|
|
|
- //测站点
|
|
|
- tdJL = docJL.select("hc-form-select-search[placeholderxx~=" + this.escapeRegex(placeholderValue) + ".*]");
|
|
|
- }
|
|
|
+
|
|
|
if (tdJL.size() >= 1) {
|
|
|
for (Element element : tdJL) {
|
|
|
String keyname = element.attr("keyname");
|
|
@@ -970,7 +988,7 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
td = doc.select("el-select[keyname~=" + findIndex + ".*]");
|
|
|
}
|
|
|
if (td.size() == 0) {
|
|
|
- //测站点
|
|
|
+ //测站点、后视点
|
|
|
td = doc.select("hc-form-select-search[keyname~=" + findIndex + ".*]");
|
|
|
}
|
|
|
String placeholderValue = "";
|
|
@@ -992,9 +1010,9 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
//特殊处理
|
|
|
if (placeholderValue.equals("测站点") && StringUtils.isNotEmpty(inputType)) {
|
|
|
tdJL = docJL.select("hc-form-select-search[placeholderxx~=" + this.escapeRegex(placeholderValue) + ".*][type~=" + this.escapeRegex(inputType) + ".*]");
|
|
|
- } /*else if (placeholderValue.equals("日期:")) {
|
|
|
- tdJL = docJL.select("el-date-picker[placeholderxx~=" + this.escapeRegex(placeholderValue) + ".*][type~=" + this.escapeRegex(inputType) + ".*]");
|
|
|
- }*/
|
|
|
+ } else if (placeholderValue.equals("后视点") && StringUtils.isNotEmpty(inputType)) {
|
|
|
+ tdJL = docJL.select("hc-form-select-search[placeholderxx~=" + this.escapeRegex(placeholderValue) + ".*][type~=" + this.escapeRegex(inputType) + ".*]");
|
|
|
+ }
|
|
|
|
|
|
if (tdJL.size() == 0) {
|
|
|
//日期格式
|
|
@@ -1016,10 +1034,7 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
//下拉框
|
|
|
tdJL = docJL.select("el-select[placeholderxx~=" + this.escapeRegex(placeholderValue) + ".*]");
|
|
|
}
|
|
|
- if (tdJL.size() == 0) {
|
|
|
- //测站点
|
|
|
- tdJL = docJL.select("hc-form-select-search[placeholderxx~=" + this.escapeRegex(placeholderValue) + ".*]");
|
|
|
- }
|
|
|
+
|
|
|
if (tdJL.size() >= 1) {
|
|
|
for (Element element : tdJL) {
|
|
|
String keyname = element.attr("keyname");
|