立库监控
This commit is contained in:
@@ -104,9 +104,10 @@ public class AppRun {
|
||||
"layer_num = 1 AND col_num = " + j, "block_num DESC, row_num DESC").getResultJSONArray(0);
|
||||
for (int k = 0; k < array.size(); k++) { // 1,2...块的每列数据
|
||||
JSONObject object = array.getJSONObject(k);
|
||||
|
||||
if (k-1 >= 0) { // 如果块与块不同,空一个距离
|
||||
JSONObject object2 = array.getJSONObject(k-1);
|
||||
if (!object2.getString("block_num").equals(object.getString("block_num"))) {
|
||||
if (!object2.getString("block_num").equals(object.getString("block_num")) && object2.getString("is_delete").equals(object.getString("is_delete"))) {
|
||||
JSONObject node2 = new JSONObject();
|
||||
node2.put("id", IdUtil.getSnowflake(1,1).nextIdStr());
|
||||
node2.put("type", type);
|
||||
@@ -125,10 +126,12 @@ public class AppRun {
|
||||
nodes.add(node2);
|
||||
}
|
||||
}
|
||||
|
||||
if (object.getString("is_delete").equals("1")) {
|
||||
x = x + step + nodeSizeW;
|
||||
continue;
|
||||
}
|
||||
|
||||
// 设置节点,只需要struct_id, 自定义参数数据都加载properties对象里面
|
||||
JSONObject node = new JSONObject();
|
||||
node.put("id", IdUtil.getSnowflake(1,1).nextIdStr());
|
||||
|
||||
@@ -268,8 +268,8 @@ public class StructattrServiceImpl implements StructattrService {
|
||||
JSONObject strInfo = attrTab
|
||||
.query("struct_id = '" + struct_id + "'")
|
||||
.uniqueResult(0);
|
||||
if (strInfo.getString("is_delete").equals("1")) {
|
||||
// 被删掉
|
||||
if (strInfo.getString("is_used").equals("0")) {
|
||||
// 被禁用
|
||||
struct_status = 4;
|
||||
} else if (ObjectUtil.isEmpty(strInfo.getString("storagevehicle_code"))) {
|
||||
// 空位
|
||||
|
||||
Reference in New Issue
Block a user