|
@@ -402,7 +402,7 @@ public class JfGridUpdateService {
|
|
|
return "更新失败";
|
|
|
}
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -441,7 +441,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -492,7 +492,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -532,7 +532,7 @@ public class JfGridUpdateService {
|
|
|
return "更新失败";
|
|
|
}
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -587,7 +587,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -645,7 +645,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -811,7 +811,7 @@ public class JfGridUpdateService {
|
|
|
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -943,7 +943,7 @@ public class JfGridUpdateService {
|
|
|
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
return ex.getMessage();
|
|
|
}
|
|
|
return "";
|
|
@@ -976,7 +976,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1144,7 +1144,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -1201,7 +1201,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -1240,7 +1240,7 @@ public class JfGridUpdateService {
|
|
|
return "更新失败";
|
|
|
}
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -1290,7 +1290,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -1309,9 +1309,13 @@ public class JfGridUpdateService {
|
|
|
String i = bson.get("i").toString();
|
|
|
String k = bson.get("k").toString();
|
|
|
|
|
|
- JSONObject _v = null;//需要替换的值
|
|
|
+ JSON _v = null;//需要替换的值
|
|
|
if (bson.get("v") != null) {
|
|
|
- _v = bson.getJSONObject("v");
|
|
|
+ if("borderInfo".equals(k)) {
|
|
|
+ _v = bson.getJSONArray("v");
|
|
|
+ } else {
|
|
|
+ _v = bson.getJSONObject("v");
|
|
|
+ }
|
|
|
}
|
|
|
if (_v == null) {
|
|
|
//没有要修改的值
|
|
@@ -1329,17 +1333,21 @@ public class JfGridUpdateService {
|
|
|
//判断_v中是否存在null,则删除该参数
|
|
|
boolean flag = false;
|
|
|
String keys = "";
|
|
|
- if (_v.keySet().size() != 0) {
|
|
|
- for (String key : _v.keySet()) {
|
|
|
- if (_v.get(key) == null) {
|
|
|
- keys = key;
|
|
|
- flag = true;
|
|
|
+ if(!"borderInfo".equals(k)) {
|
|
|
+ JSONObject vObj = (JSONObject) _v;
|
|
|
+ if (vObj.keySet().size() != 0) {
|
|
|
+ for (String key : vObj.keySet()) {
|
|
|
+ if (vObj.get(key) == null) {
|
|
|
+ keys = key;
|
|
|
+ flag = true;
|
|
|
+ }
|
|
|
}
|
|
|
+ } else {
|
|
|
+ flag = true;
|
|
|
}
|
|
|
- } else {
|
|
|
- flag = true;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
//Query query = new Query();
|
|
|
//query.addCriteria(Criteria.where("list_id").is(gridKey).and("index").is(i).and("block_id").is(JfGridConfigModel.FirstBlockID));
|
|
|
JSONObject query=getQuery(gridKey,i,JfGridConfigModel.FirstBlockID);
|
|
@@ -1359,7 +1367,13 @@ public class JfGridUpdateService {
|
|
|
return "删除失败";
|
|
|
}
|
|
|
} else {
|
|
|
- JSONObject _k = JfGridFileUtil.getObjectByObject(_config, k);
|
|
|
+ JSON _k;
|
|
|
+// JSONObject _k = JfGridFileUtil.getObjectByObject(_config, k);
|
|
|
+ if("borderInfo".equals(k)) {
|
|
|
+ _k = JfGridFileUtil.getArrayByObject(_config, k);
|
|
|
+ } else {
|
|
|
+ _k = JfGridFileUtil.getObjectByObject(_config, k);
|
|
|
+ }
|
|
|
if (_k != null) {
|
|
|
//新值覆盖旧值
|
|
|
//_k.putAll(_v);
|
|
@@ -1379,7 +1393,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -1566,7 +1580,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -1701,7 +1715,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -1729,7 +1743,7 @@ public class JfGridUpdateService {
|
|
|
return "改名失败";
|
|
|
}
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -1794,7 +1808,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -1890,7 +1904,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
@@ -2120,7 +2134,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
log.info("修改行列数据结果--end");
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
|
|
|
return "";
|
|
@@ -2158,7 +2172,7 @@ public class JfGridUpdateService {
|
|
|
}
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
- log.error(ex.getMessage());
|
|
|
+ log.error("执行sql异常, {}", ex);
|
|
|
}
|
|
|
return "";
|
|
|
}
|