|
@@ -3560,7 +3560,7 @@ public class TaskController extends BladeController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public StringBuilder buildMTableInsertSql(String tabName, Map<String, String> dataMap2, Object id, Object groupId, Object pKeyId) {
|
|
|
+ public StringBuilder buildMTableInsertSql(String tabName, Map<String, Object> dataMap2, Object id, Object groupId, Object pKeyId) {
|
|
|
if (dataMap2 == null || dataMap2.isEmpty() || tabName == null || tabName.isEmpty()) {
|
|
|
return new StringBuilder();
|
|
|
}
|
|
@@ -3616,14 +3616,14 @@ public class TaskController extends BladeController {
|
|
|
String[] split = key.split("_");
|
|
|
if (split.length > 1 && Integer.parseInt(split[1]) > 80) {
|
|
|
// 大于80则保留在扩展字段中
|
|
|
- opsParamMap.put(key, dataMap2.get(key));
|
|
|
+ opsParamMap.put(key, dataMap2.get(key) == null ? "" : dataMap2.get(key) + "");
|
|
|
} else {
|
|
|
- String value = dataMap2.get(key);
|
|
|
+ String value = dataMap2.get(key) == null ? null : dataMap2.get(key) + "";
|
|
|
if (value != null) {
|
|
|
Integer i = map.get(key);
|
|
|
// 长度超过数据库长度也保留在扩展字段中
|
|
|
if (i != null && value.length() > i) {
|
|
|
- opsParamMap.put(key, dataMap2.get(key));
|
|
|
+ opsParamMap.put(key, value);
|
|
|
continue;
|
|
|
}
|
|
|
}
|