diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 499c04c..fbef31e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -8,11 +8,12 @@
-
-
+
+
+
-
-
+
+
@@ -26,37 +27,37 @@
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
+
@@ -69,46 +70,39 @@
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
@@ -126,6 +120,8 @@
alarmTypeId
getPipeGalleryByPgName
getPgDeviceByDevType
+ message
+ getConstructionByType
@@ -143,7 +139,6 @@
-
@@ -157,7 +152,6 @@
-
@@ -167,13 +161,17 @@
-
-
+
+
+
+
+
+
@@ -209,16 +207,18 @@
-
-
-
-
+
+
+
+
+
+
@@ -259,7 +259,7 @@
-
+
@@ -268,27 +268,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -301,8 +281,6 @@
-
-
@@ -435,7 +413,9 @@
-
+
+
+
1564361618083
@@ -458,17 +438,24 @@
1566349743252
-
+
+ 1566382083034
+
+
+
+ 1566382083035
+
+
-
+
-
+
@@ -479,7 +466,7 @@
-
+
@@ -491,7 +478,7 @@
-
+
@@ -504,7 +491,7 @@
-
+
@@ -515,7 +502,7 @@
-
+
@@ -550,14 +537,15 @@
-
+
+
file://$PROJECT_DIR$/src/main/java/com/casic/PgInterface/overtimeInPG/web/PGInOutRecController.java
- 39
+ 40
@@ -565,118 +553,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -684,27 +560,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -733,13 +588,6 @@
-
-
-
-
-
-
-
@@ -782,20 +630,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -810,13 +644,6 @@
-
-
-
-
-
-
-
@@ -845,31 +672,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -881,16 +683,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -905,29 +697,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -938,10 +707,219 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 499c04c..fbef31e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -8,11 +8,12 @@
-
-
+
+
+
-
-
+
+
@@ -26,37 +27,37 @@
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
+
@@ -69,46 +70,39 @@
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
@@ -126,6 +120,8 @@
alarmTypeId
getPipeGalleryByPgName
getPgDeviceByDevType
+ message
+ getConstructionByType
@@ -143,7 +139,6 @@
-
@@ -157,7 +152,6 @@
-
@@ -167,13 +161,17 @@
-
-
+
+
+
+
+
+
@@ -209,16 +207,18 @@
-
-
-
-
+
+
+
+
+
+
@@ -259,7 +259,7 @@
-
+
@@ -268,27 +268,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -301,8 +281,6 @@
-
-
@@ -435,7 +413,9 @@
-
+
+
+
1564361618083
@@ -458,17 +438,24 @@
1566349743252
-
+
+ 1566382083034
+
+
+
+ 1566382083035
+
+
-
+
-
+
@@ -479,7 +466,7 @@
-
+
@@ -491,7 +478,7 @@
-
+
@@ -504,7 +491,7 @@
-
+
@@ -515,7 +502,7 @@
-
+
@@ -550,14 +537,15 @@
-
+
+
file://$PROJECT_DIR$/src/main/java/com/casic/PgInterface/overtimeInPG/web/PGInOutRecController.java
- 39
+ 40
@@ -565,118 +553,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -684,27 +560,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -733,13 +588,6 @@
-
-
-
-
-
-
-
@@ -782,20 +630,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -810,13 +644,6 @@
-
-
-
-
-
-
-
@@ -845,31 +672,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -881,16 +683,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -905,29 +697,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -938,10 +707,219 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
index 78fd2ac..9819ca0 100644
--- a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
+++ b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
@@ -26,8 +26,7 @@
private String cs_charge;//施工负责人
private String cs_phone;//联系方式
private String cs_type;//工程类别
-// private PgPartition pgPartitionId;//施工区域
- private String pgName;//所属仓
+ private String pgName;//施工区域
private PgConstructionType pgConstructionTypeId;//项目状态
private List pgCsDocumentList;//施工文档
private int active;//状态位
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 499c04c..fbef31e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -8,11 +8,12 @@
-
-
+
+
+
-
-
+
+
@@ -26,37 +27,37 @@
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
+
@@ -69,46 +70,39 @@
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
@@ -126,6 +120,8 @@
alarmTypeId
getPipeGalleryByPgName
getPgDeviceByDevType
+ message
+ getConstructionByType
@@ -143,7 +139,6 @@
-
@@ -157,7 +152,6 @@
-
@@ -167,13 +161,17 @@
-
-
+
+
+
+
+
+
@@ -209,16 +207,18 @@
-
-
-
-
+
+
+
+
+
+
@@ -259,7 +259,7 @@
-
+
@@ -268,27 +268,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -301,8 +281,6 @@
-
-
@@ -435,7 +413,9 @@
-
+
+
+
1564361618083
@@ -458,17 +438,24 @@
1566349743252
-
+
+ 1566382083034
+
+
+
+ 1566382083035
+
+
-
+
-
+
@@ -479,7 +466,7 @@
-
+
@@ -491,7 +478,7 @@
-
+
@@ -504,7 +491,7 @@
-
+
@@ -515,7 +502,7 @@
-
+
@@ -550,14 +537,15 @@
-
+
+
file://$PROJECT_DIR$/src/main/java/com/casic/PgInterface/overtimeInPG/web/PGInOutRecController.java
- 39
+ 40
@@ -565,118 +553,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -684,27 +560,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -733,13 +588,6 @@
-
-
-
-
-
-
-
@@ -782,20 +630,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -810,13 +644,6 @@
-
-
-
-
-
-
-
@@ -845,31 +672,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -881,16 +683,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -905,29 +697,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -938,10 +707,219 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
index 78fd2ac..9819ca0 100644
--- a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
+++ b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
@@ -26,8 +26,7 @@
private String cs_charge;//施工负责人
private String cs_phone;//联系方式
private String cs_type;//工程类别
-// private PgPartition pgPartitionId;//施工区域
- private String pgName;//所属仓
+ private String pgName;//施工区域
private PgConstructionType pgConstructionTypeId;//项目状态
private List pgCsDocumentList;//施工文档
private int active;//状态位
diff --git a/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java b/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
index 0d96c76..75b2551 100644
--- a/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
+++ b/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
@@ -159,7 +159,7 @@
}
public List getStatisticByType() {
- List pgConstructionStiatisticList = new ArrayList();
+ List pgConstructionStiatisticList = new ArrayList<>();
String str="CS_TYPE";
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 499c04c..fbef31e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -8,11 +8,12 @@
-
-
+
+
+
-
-
+
+
@@ -26,37 +27,37 @@
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
+
@@ -69,46 +70,39 @@
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
@@ -126,6 +120,8 @@
alarmTypeId
getPipeGalleryByPgName
getPgDeviceByDevType
+ message
+ getConstructionByType
@@ -143,7 +139,6 @@
-
@@ -157,7 +152,6 @@
-
@@ -167,13 +161,17 @@
-
-
+
+
+
+
+
+
@@ -209,16 +207,18 @@
-
-
-
-
+
+
+
+
+
+
@@ -259,7 +259,7 @@
-
+
@@ -268,27 +268,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -301,8 +281,6 @@
-
-
@@ -435,7 +413,9 @@
-
+
+
+
1564361618083
@@ -458,17 +438,24 @@
1566349743252
-
+
+ 1566382083034
+
+
+
+ 1566382083035
+
+
-
+
-
+
@@ -479,7 +466,7 @@
-
+
@@ -491,7 +478,7 @@
-
+
@@ -504,7 +491,7 @@
-
+
@@ -515,7 +502,7 @@
-
+
@@ -550,14 +537,15 @@
-
+
+
file://$PROJECT_DIR$/src/main/java/com/casic/PgInterface/overtimeInPG/web/PGInOutRecController.java
- 39
+ 40
@@ -565,118 +553,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -684,27 +560,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -733,13 +588,6 @@
-
-
-
-
-
-
-
@@ -782,20 +630,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -810,13 +644,6 @@
-
-
-
-
-
-
-
@@ -845,31 +672,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -881,16 +683,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -905,29 +697,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -938,10 +707,219 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
index 78fd2ac..9819ca0 100644
--- a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
+++ b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
@@ -26,8 +26,7 @@
private String cs_charge;//施工负责人
private String cs_phone;//联系方式
private String cs_type;//工程类别
-// private PgPartition pgPartitionId;//施工区域
- private String pgName;//所属仓
+ private String pgName;//施工区域
private PgConstructionType pgConstructionTypeId;//项目状态
private List pgCsDocumentList;//施工文档
private int active;//状态位
diff --git a/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java b/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
index 0d96c76..75b2551 100644
--- a/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
+++ b/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
@@ -159,7 +159,7 @@
}
public List getStatisticByType() {
- List pgConstructionStiatisticList = new ArrayList();
+ List pgConstructionStiatisticList = new ArrayList<>();
String str="CS_TYPE";
diff --git a/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java b/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
index 8a63983..854f1f1 100644
--- a/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
+++ b/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
@@ -5,10 +5,14 @@
import com.casic.PgInterface.core.util.StringUtils;
import com.casic.PgInterface.devTable.domain.PgAlarm;
import com.casic.PgInterface.devTable.domain.PgAlarmType;
+import com.casic.PgInterface.devTable.domain.PgDevice;
import com.casic.PgInterface.devTable.dto.PgAlarmDto;
import com.casic.PgInterface.devTable.dto.PgAlarmTjDto;
+import org.apache.poi.util.StringUtil;
import org.hibernate.Criteria;
+import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Order;
+import org.hibernate.criterion.Property;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Service;
@@ -30,7 +34,7 @@
public List getAlarmByTypeAndTime(String alarmType,String startTime,String endTime){
try {
Criteria criteria = createCriteria(PgAlarm.class);
- if (StringUtils.isNotBlank(alarmType)) {
+ if (StringUtils.isNotBlank(alarmType)&&!alarmType.contains("全部")) {
criteria.add(Restrictions.eq("alarmTypeId", pgAlarmTypeManager.getAlarmTypeByAlarmType(alarmType)));
}
@@ -163,6 +167,7 @@
//获取历史报警消息列表
public List getAllAlarm(String startDay,String endDay) {
try {
+
Criteria criteria = createCriteria(PgAlarm.class);
criteria.addOrder(Order.desc("id"));
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 499c04c..fbef31e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -8,11 +8,12 @@
-
-
+
+
+
-
-
+
+
@@ -26,37 +27,37 @@
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
+
@@ -69,46 +70,39 @@
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
@@ -126,6 +120,8 @@
alarmTypeId
getPipeGalleryByPgName
getPgDeviceByDevType
+ message
+ getConstructionByType
@@ -143,7 +139,6 @@
-
@@ -157,7 +152,6 @@
-
@@ -167,13 +161,17 @@
-
-
+
+
+
+
+
+
@@ -209,16 +207,18 @@
-
-
-
-
+
+
+
+
+
+
@@ -259,7 +259,7 @@
-
+
@@ -268,27 +268,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -301,8 +281,6 @@
-
-
@@ -435,7 +413,9 @@
-
+
+
+
1564361618083
@@ -458,17 +438,24 @@
1566349743252
-
+
+ 1566382083034
+
+
+
+ 1566382083035
+
+
-
+
-
+
@@ -479,7 +466,7 @@
-
+
@@ -491,7 +478,7 @@
-
+
@@ -504,7 +491,7 @@
-
+
@@ -515,7 +502,7 @@
-
+
@@ -550,14 +537,15 @@
-
+
+
file://$PROJECT_DIR$/src/main/java/com/casic/PgInterface/overtimeInPG/web/PGInOutRecController.java
- 39
+ 40
@@ -565,118 +553,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -684,27 +560,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -733,13 +588,6 @@
-
-
-
-
-
-
-
@@ -782,20 +630,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -810,13 +644,6 @@
-
-
-
-
-
-
-
@@ -845,31 +672,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -881,16 +683,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -905,29 +697,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -938,10 +707,219 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
index 78fd2ac..9819ca0 100644
--- a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
+++ b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
@@ -26,8 +26,7 @@
private String cs_charge;//施工负责人
private String cs_phone;//联系方式
private String cs_type;//工程类别
-// private PgPartition pgPartitionId;//施工区域
- private String pgName;//所属仓
+ private String pgName;//施工区域
private PgConstructionType pgConstructionTypeId;//项目状态
private List pgCsDocumentList;//施工文档
private int active;//状态位
diff --git a/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java b/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
index 0d96c76..75b2551 100644
--- a/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
+++ b/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
@@ -159,7 +159,7 @@
}
public List getStatisticByType() {
- List pgConstructionStiatisticList = new ArrayList();
+ List pgConstructionStiatisticList = new ArrayList<>();
String str="CS_TYPE";
diff --git a/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java b/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
index 8a63983..854f1f1 100644
--- a/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
+++ b/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
@@ -5,10 +5,14 @@
import com.casic.PgInterface.core.util.StringUtils;
import com.casic.PgInterface.devTable.domain.PgAlarm;
import com.casic.PgInterface.devTable.domain.PgAlarmType;
+import com.casic.PgInterface.devTable.domain.PgDevice;
import com.casic.PgInterface.devTable.dto.PgAlarmDto;
import com.casic.PgInterface.devTable.dto.PgAlarmTjDto;
+import org.apache.poi.util.StringUtil;
import org.hibernate.Criteria;
+import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Order;
+import org.hibernate.criterion.Property;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Service;
@@ -30,7 +34,7 @@
public List getAlarmByTypeAndTime(String alarmType,String startTime,String endTime){
try {
Criteria criteria = createCriteria(PgAlarm.class);
- if (StringUtils.isNotBlank(alarmType)) {
+ if (StringUtils.isNotBlank(alarmType)&&!alarmType.contains("全部")) {
criteria.add(Restrictions.eq("alarmTypeId", pgAlarmTypeManager.getAlarmTypeByAlarmType(alarmType)));
}
@@ -163,6 +167,7 @@
//获取历史报警消息列表
public List getAllAlarm(String startDay,String endDay) {
try {
+
Criteria criteria = createCriteria(PgAlarm.class);
criteria.addOrder(Order.desc("id"));
diff --git a/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java b/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java
index 8d58eda..3d8cd2c 100644
--- a/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java
+++ b/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java
@@ -66,7 +66,7 @@
Criteria criteria = getSession().createCriteria(PgUser.class);
criteria.add(Restrictions.eq("userName", userName));
- criteria.add(Restrictions.eq("passWord", passWord));
+ criteria.add(Restrictions.eq("password", passWord));
criteria.add(Restrictions.eq("active",1));
List pgUserList = criteria.list();
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 499c04c..fbef31e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -8,11 +8,12 @@
-
-
+
+
+
-
-
+
+
@@ -26,37 +27,37 @@
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
+
@@ -69,46 +70,39 @@
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
@@ -126,6 +120,8 @@
alarmTypeId
getPipeGalleryByPgName
getPgDeviceByDevType
+ message
+ getConstructionByType
@@ -143,7 +139,6 @@
-
@@ -157,7 +152,6 @@
-
@@ -167,13 +161,17 @@
-
-
+
+
+
+
+
+
@@ -209,16 +207,18 @@
-
-
-
-
+
+
+
+
+
+
@@ -259,7 +259,7 @@
-
+
@@ -268,27 +268,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -301,8 +281,6 @@
-
-
@@ -435,7 +413,9 @@
-
+
+
+
1564361618083
@@ -458,17 +438,24 @@
1566349743252
-
+
+ 1566382083034
+
+
+
+ 1566382083035
+
+
-
+
-
+
@@ -479,7 +466,7 @@
-
+
@@ -491,7 +478,7 @@
-
+
@@ -504,7 +491,7 @@
-
+
@@ -515,7 +502,7 @@
-
+
@@ -550,14 +537,15 @@
-
+
+
file://$PROJECT_DIR$/src/main/java/com/casic/PgInterface/overtimeInPG/web/PGInOutRecController.java
- 39
+ 40
@@ -565,118 +553,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -684,27 +560,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -733,13 +588,6 @@
-
-
-
-
-
-
-
@@ -782,20 +630,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -810,13 +644,6 @@
-
-
-
-
-
-
-
@@ -845,31 +672,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -881,16 +683,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -905,29 +697,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -938,10 +707,219 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
index 78fd2ac..9819ca0 100644
--- a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
+++ b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
@@ -26,8 +26,7 @@
private String cs_charge;//施工负责人
private String cs_phone;//联系方式
private String cs_type;//工程类别
-// private PgPartition pgPartitionId;//施工区域
- private String pgName;//所属仓
+ private String pgName;//施工区域
private PgConstructionType pgConstructionTypeId;//项目状态
private List pgCsDocumentList;//施工文档
private int active;//状态位
diff --git a/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java b/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
index 0d96c76..75b2551 100644
--- a/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
+++ b/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
@@ -159,7 +159,7 @@
}
public List getStatisticByType() {
- List pgConstructionStiatisticList = new ArrayList();
+ List pgConstructionStiatisticList = new ArrayList<>();
String str="CS_TYPE";
diff --git a/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java b/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
index 8a63983..854f1f1 100644
--- a/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
+++ b/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
@@ -5,10 +5,14 @@
import com.casic.PgInterface.core.util.StringUtils;
import com.casic.PgInterface.devTable.domain.PgAlarm;
import com.casic.PgInterface.devTable.domain.PgAlarmType;
+import com.casic.PgInterface.devTable.domain.PgDevice;
import com.casic.PgInterface.devTable.dto.PgAlarmDto;
import com.casic.PgInterface.devTable.dto.PgAlarmTjDto;
+import org.apache.poi.util.StringUtil;
import org.hibernate.Criteria;
+import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Order;
+import org.hibernate.criterion.Property;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Service;
@@ -30,7 +34,7 @@
public List getAlarmByTypeAndTime(String alarmType,String startTime,String endTime){
try {
Criteria criteria = createCriteria(PgAlarm.class);
- if (StringUtils.isNotBlank(alarmType)) {
+ if (StringUtils.isNotBlank(alarmType)&&!alarmType.contains("全部")) {
criteria.add(Restrictions.eq("alarmTypeId", pgAlarmTypeManager.getAlarmTypeByAlarmType(alarmType)));
}
@@ -163,6 +167,7 @@
//获取历史报警消息列表
public List getAllAlarm(String startDay,String endDay) {
try {
+
Criteria criteria = createCriteria(PgAlarm.class);
criteria.addOrder(Order.desc("id"));
diff --git a/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java b/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java
index 8d58eda..3d8cd2c 100644
--- a/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java
+++ b/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java
@@ -66,7 +66,7 @@
Criteria criteria = getSession().createCriteria(PgUser.class);
criteria.add(Restrictions.eq("userName", userName));
- criteria.add(Restrictions.eq("passWord", passWord));
+ criteria.add(Restrictions.eq("password", passWord));
criteria.add(Restrictions.eq("active",1));
List pgUserList = criteria.list();
diff --git a/src/main/java/com/casic/PgInterface/rs/PgConstructionRs.java b/src/main/java/com/casic/PgInterface/rs/PgConstructionRs.java
index a7332a3..9dfdd88 100644
--- a/src/main/java/com/casic/PgInterface/rs/PgConstructionRs.java
+++ b/src/main/java/com/casic/PgInterface/rs/PgConstructionRs.java
@@ -37,10 +37,10 @@
private static Logger logger = LoggerFactory.getLogger(PgConstructionRs.class);
@Resource
private PgConstructionTypeManager pgConstructionTypeManager;
+
@Resource
private PgConstructionManager pgConstructionManager;
- @Resource
- private PgPartitionManager pgPartitionManager;
+
@Resource
private PgDeviceManager pgDeviceManager;
@@ -256,16 +256,21 @@
@POST
@Path("getConstructionByType")
@Produces(MediaType.APPLICATION_JSON)
- public Map getConstructionByType(@FormParam("statisticType") String statisticType) throws Exception{
- Map resultMap=new HashMap();
+ public Map getConstructionByType(@FormParam("statisticType") String statisticType){
+ Map resultMap=new HashMap<>();
String msg="";
- List pgConstructionStiatisticList=new ArrayList();
+ List pgConstructionStiatisticList=new ArrayList<>();
+
+ System.out.println("statisticType"+statisticType+"&&&&&&");
try{
pgConstructionStiatisticList=statisticType.equals("0")?pgConstructionManager.getStatisticByType():
pgConstructionManager.getStatisticByPar();
if(pgConstructionStiatisticList==null||pgConstructionStiatisticList.size()==0)
+ {
msg="不存在统计信息";
+ resultMap.put("result",null);
+ }
else {
msg = "统计信息获取成功";
resultMap.put("result", pgConstructionStiatisticList);
@@ -275,6 +280,7 @@
{
e.printStackTrace();
msg="统计失败";
+ resultMap.put("result",null);
}
resultMap.put("msg",msg);
return resultMap;
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 499c04c..fbef31e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -8,11 +8,12 @@
-
-
+
+
+
-
-
+
+
@@ -26,37 +27,37 @@
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
+
@@ -69,46 +70,39 @@
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
@@ -126,6 +120,8 @@
alarmTypeId
getPipeGalleryByPgName
getPgDeviceByDevType
+ message
+ getConstructionByType
@@ -143,7 +139,6 @@
-
@@ -157,7 +152,6 @@
-
@@ -167,13 +161,17 @@
-
-
+
+
+
+
+
+
@@ -209,16 +207,18 @@
-
-
-
-
+
+
+
+
+
+
@@ -259,7 +259,7 @@
-
+
@@ -268,27 +268,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -301,8 +281,6 @@
-
-
@@ -435,7 +413,9 @@
-
+
+
+
1564361618083
@@ -458,17 +438,24 @@
1566349743252
-
+
+ 1566382083034
+
+
+
+ 1566382083035
+
+
-
+
-
+
@@ -479,7 +466,7 @@
-
+
@@ -491,7 +478,7 @@
-
+
@@ -504,7 +491,7 @@
-
+
@@ -515,7 +502,7 @@
-
+
@@ -550,14 +537,15 @@
-
+
+
file://$PROJECT_DIR$/src/main/java/com/casic/PgInterface/overtimeInPG/web/PGInOutRecController.java
- 39
+ 40
@@ -565,118 +553,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -684,27 +560,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -733,13 +588,6 @@
-
-
-
-
-
-
-
@@ -782,20 +630,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -810,13 +644,6 @@
-
-
-
-
-
-
-
@@ -845,31 +672,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -881,16 +683,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -905,29 +697,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -938,10 +707,219 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
index 78fd2ac..9819ca0 100644
--- a/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
+++ b/src/main/java/com/casic/PgInterface/construction/domain/PgConstruction.java
@@ -26,8 +26,7 @@
private String cs_charge;//施工负责人
private String cs_phone;//联系方式
private String cs_type;//工程类别
-// private PgPartition pgPartitionId;//施工区域
- private String pgName;//所属仓
+ private String pgName;//施工区域
private PgConstructionType pgConstructionTypeId;//项目状态
private List pgCsDocumentList;//施工文档
private int active;//状态位
diff --git a/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java b/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
index 0d96c76..75b2551 100644
--- a/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
+++ b/src/main/java/com/casic/PgInterface/construction/manager/PgConstructionManager.java
@@ -159,7 +159,7 @@
}
public List getStatisticByType() {
- List pgConstructionStiatisticList = new ArrayList();
+ List pgConstructionStiatisticList = new ArrayList<>();
String str="CS_TYPE";
diff --git a/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java b/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
index 8a63983..854f1f1 100644
--- a/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
+++ b/src/main/java/com/casic/PgInterface/devTable/manager/PgAlarmManager.java
@@ -5,10 +5,14 @@
import com.casic.PgInterface.core.util.StringUtils;
import com.casic.PgInterface.devTable.domain.PgAlarm;
import com.casic.PgInterface.devTable.domain.PgAlarmType;
+import com.casic.PgInterface.devTable.domain.PgDevice;
import com.casic.PgInterface.devTable.dto.PgAlarmDto;
import com.casic.PgInterface.devTable.dto.PgAlarmTjDto;
+import org.apache.poi.util.StringUtil;
import org.hibernate.Criteria;
+import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Order;
+import org.hibernate.criterion.Property;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Service;
@@ -30,7 +34,7 @@
public List getAlarmByTypeAndTime(String alarmType,String startTime,String endTime){
try {
Criteria criteria = createCriteria(PgAlarm.class);
- if (StringUtils.isNotBlank(alarmType)) {
+ if (StringUtils.isNotBlank(alarmType)&&!alarmType.contains("全部")) {
criteria.add(Restrictions.eq("alarmTypeId", pgAlarmTypeManager.getAlarmTypeByAlarmType(alarmType)));
}
@@ -163,6 +167,7 @@
//获取历史报警消息列表
public List getAllAlarm(String startDay,String endDay) {
try {
+
Criteria criteria = createCriteria(PgAlarm.class);
criteria.addOrder(Order.desc("id"));
diff --git a/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java b/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java
index 8d58eda..3d8cd2c 100644
--- a/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java
+++ b/src/main/java/com/casic/PgInterface/patroler/manager/PgUserManager.java
@@ -66,7 +66,7 @@
Criteria criteria = getSession().createCriteria(PgUser.class);
criteria.add(Restrictions.eq("userName", userName));
- criteria.add(Restrictions.eq("passWord", passWord));
+ criteria.add(Restrictions.eq("password", passWord));
criteria.add(Restrictions.eq("active",1));
List pgUserList = criteria.list();
diff --git a/src/main/java/com/casic/PgInterface/rs/PgConstructionRs.java b/src/main/java/com/casic/PgInterface/rs/PgConstructionRs.java
index a7332a3..9dfdd88 100644
--- a/src/main/java/com/casic/PgInterface/rs/PgConstructionRs.java
+++ b/src/main/java/com/casic/PgInterface/rs/PgConstructionRs.java
@@ -37,10 +37,10 @@
private static Logger logger = LoggerFactory.getLogger(PgConstructionRs.class);
@Resource
private PgConstructionTypeManager pgConstructionTypeManager;
+
@Resource
private PgConstructionManager pgConstructionManager;
- @Resource
- private PgPartitionManager pgPartitionManager;
+
@Resource
private PgDeviceManager pgDeviceManager;
@@ -256,16 +256,21 @@
@POST
@Path("getConstructionByType")
@Produces(MediaType.APPLICATION_JSON)
- public Map getConstructionByType(@FormParam("statisticType") String statisticType) throws Exception{
- Map resultMap=new HashMap();
+ public Map getConstructionByType(@FormParam("statisticType") String statisticType){
+ Map resultMap=new HashMap<>();
String msg="";
- List pgConstructionStiatisticList=new ArrayList();
+ List pgConstructionStiatisticList=new ArrayList<>();
+
+ System.out.println("statisticType"+statisticType+"&&&&&&");
try{
pgConstructionStiatisticList=statisticType.equals("0")?pgConstructionManager.getStatisticByType():
pgConstructionManager.getStatisticByPar();
if(pgConstructionStiatisticList==null||pgConstructionStiatisticList.size()==0)
+ {
msg="不存在统计信息";
+ resultMap.put("result",null);
+ }
else {
msg = "统计信息获取成功";
resultMap.put("result", pgConstructionStiatisticList);
@@ -275,6 +280,7 @@
{
e.printStackTrace();
msg="统计失败";
+ resultMap.put("result",null);
}
resultMap.put("msg",msg);
return resultMap;
diff --git "a/\346\216\245\345\217\243\350\257\264\346\230\21620190726.docx" "b/\346\216\245\345\217\243\350\257\264\346\230\21620190726.docx"
index 75b67e4..cc204d3 100644
--- "a/\346\216\245\345\217\243\350\257\264\346\230\21620190726.docx"
+++ "b/\346\216\245\345\217\243\350\257\264\346\230\21620190726.docx"
Binary files differ