diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index ff69e2a..87720a9 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -7,17 +7,9 @@
-
-
-
-
-
-
+
-
-
-
-
+
@@ -32,7 +24,7 @@
-
+
@@ -40,28 +32,28 @@
-
+
-
+
-
+
-
-
+
+
-
+
@@ -87,18 +79,65 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -170,9 +209,11 @@
-
+
+
+
@@ -258,15 +299,6 @@
-
-
-
-
-
-
-
-
-
@@ -277,26 +309,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -456,7 +468,7 @@
-
+
1564361618083
@@ -493,15 +505,21 @@
1566553388171
-
+
+ 1566620046627
+
+
+
+ 1566620046627
+
+
-
+
-
@@ -587,7 +605,8 @@
-
+
+
@@ -602,27 +621,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -644,13 +642,6 @@
-
-
-
-
-
-
-
@@ -784,13 +775,6 @@
-
-
-
-
-
-
-
@@ -843,13 +827,6 @@
-
-
-
-
-
-
-
@@ -869,13 +846,6 @@
-
-
-
-
-
-
-
@@ -911,13 +881,6 @@
-
-
-
-
-
-
-
@@ -925,13 +888,6 @@
-
-
-
-
-
-
-
@@ -972,8 +928,8 @@
-
-
+
+
@@ -984,6 +940,69 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index ff69e2a..87720a9 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -7,17 +7,9 @@
-
-
-
-
-
-
+
-
-
-
-
+
@@ -32,7 +24,7 @@
-
+
@@ -40,28 +32,28 @@
-
+
-
+
-
+
-
-
+
+
-
+
@@ -87,18 +79,65 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -170,9 +209,11 @@
-
+
+
+
@@ -258,15 +299,6 @@
-
-
-
-
-
-
-
-
-
@@ -277,26 +309,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -456,7 +468,7 @@
-
+
1564361618083
@@ -493,15 +505,21 @@
1566553388171
-
+
+ 1566620046627
+
+
+
+ 1566620046627
+
+
-
+
-
@@ -587,7 +605,8 @@
-
+
+
@@ -602,27 +621,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -644,13 +642,6 @@
-
-
-
-
-
-
-
@@ -784,13 +775,6 @@
-
-
-
-
-
-
-
@@ -843,13 +827,6 @@
-
-
-
-
-
-
-
@@ -869,13 +846,6 @@
-
-
-
-
-
-
-
@@ -911,13 +881,6 @@
-
-
-
-
-
-
-
@@ -925,13 +888,6 @@
-
-
-
-
-
-
-
@@ -972,8 +928,8 @@
-
-
+
+
@@ -984,6 +940,69 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java b/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java
index 8ebf74d..3c657a7 100644
--- a/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java
+++ b/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java
@@ -1,6 +1,7 @@
package com.casic.PgInterface.devTable.manager;
import com.casic.PgInterface.core.hibernate.HibernateEntityDao;
+import com.casic.PgInterface.core.util.StringUtils;
import com.casic.PgInterface.devTable.domain.PgEquipment;
import com.casic.PgInterface.devTable.dto.PgDeviceTypeStatisticDto;
import com.casic.PgInterface.devTable.dto.PgEquipmentDto;
@@ -34,9 +35,12 @@
public List getEquipmentDtiList(String eqName,String eqCode, String eqType)
{
Criteria criteria=createCriteria(PgEquipment.class);
- criteria.add(Restrictions.eq("eqName",eqName));
- criteria.add(Restrictions.eq("eqCode",eqCode));
- criteria.add(Restrictions.eq("eqType",eqType));
+ if(StringUtils.isNotBlank(eqName))
+ criteria.add(Restrictions.eq("eqName",eqName));
+ if(StringUtils.isNotBlank(eqCode))
+ criteria.add(Restrictions.eq("eqCode",eqCode));
+ if(StringUtils.isNotBlank(eqType))
+ criteria.add(Restrictions.eq("eqType",eqType));
criteria.add(Restrictions.eq("active",1));
List pgEquipmentList=criteria.list();
@@ -51,10 +55,9 @@
//统计工器具耗材数量
public List getDeviceStatisticByDevType(String eqType){
- //String eqType1=eqType.equals("0")?"工器具":"耗材";
String sql="select equipment.EQ_NAME,count(*) from PG_EQUIPMENT equipment where equipment.EQ_TYPE = '"
- +eqType+"' group by equipment.EQ_NAME";
+ +eqType+"' group by equipment.EQ_NAME";
List
-
-
-
-
-
-
+
-
-
-
-
+
@@ -32,7 +24,7 @@
-
+
@@ -40,28 +32,28 @@
-
+
-
+
-
+
-
-
+
+
-
+
@@ -87,18 +79,65 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -170,9 +209,11 @@
-
+
+
+
@@ -258,15 +299,6 @@
-
-
-
-
-
-
-
-
-
@@ -277,26 +309,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -456,7 +468,7 @@
-
+
1564361618083
@@ -493,15 +505,21 @@
1566553388171
-
+
+ 1566620046627
+
+
+
+ 1566620046627
+
+
-
+
-
@@ -587,7 +605,8 @@
-
+
+
@@ -602,27 +621,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -644,13 +642,6 @@
-
-
-
-
-
-
-
@@ -784,13 +775,6 @@
-
-
-
-
-
-
-
@@ -843,13 +827,6 @@
-
-
-
-
-
-
-
@@ -869,13 +846,6 @@
-
-
-
-
-
-
-
@@ -911,13 +881,6 @@
-
-
-
-
-
-
-
@@ -925,13 +888,6 @@
-
-
-
-
-
-
-
@@ -972,8 +928,8 @@
-
-
+
+
@@ -984,6 +940,69 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java b/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java
index 8ebf74d..3c657a7 100644
--- a/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java
+++ b/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java
@@ -1,6 +1,7 @@
package com.casic.PgInterface.devTable.manager;
import com.casic.PgInterface.core.hibernate.HibernateEntityDao;
+import com.casic.PgInterface.core.util.StringUtils;
import com.casic.PgInterface.devTable.domain.PgEquipment;
import com.casic.PgInterface.devTable.dto.PgDeviceTypeStatisticDto;
import com.casic.PgInterface.devTable.dto.PgEquipmentDto;
@@ -34,9 +35,12 @@
public List getEquipmentDtiList(String eqName,String eqCode, String eqType)
{
Criteria criteria=createCriteria(PgEquipment.class);
- criteria.add(Restrictions.eq("eqName",eqName));
- criteria.add(Restrictions.eq("eqCode",eqCode));
- criteria.add(Restrictions.eq("eqType",eqType));
+ if(StringUtils.isNotBlank(eqName))
+ criteria.add(Restrictions.eq("eqName",eqName));
+ if(StringUtils.isNotBlank(eqCode))
+ criteria.add(Restrictions.eq("eqCode",eqCode));
+ if(StringUtils.isNotBlank(eqType))
+ criteria.add(Restrictions.eq("eqType",eqType));
criteria.add(Restrictions.eq("active",1));
List pgEquipmentList=criteria.list();
@@ -51,10 +55,9 @@
//统计工器具耗材数量
public List getDeviceStatisticByDevType(String eqType){
- //String eqType1=eqType.equals("0")?"工器具":"耗材";
String sql="select equipment.EQ_NAME,count(*) from PG_EQUIPMENT equipment where equipment.EQ_TYPE = '"
- +eqType+"' group by equipment.EQ_NAME";
+ +eqType+"' group by equipment.EQ_NAME";
List
-
-
-
-
-
-
+
-
-
-
-
+
@@ -32,7 +24,7 @@
-
+
@@ -40,28 +32,28 @@
-
+
-
+
-
+
-
-
+
+
-
+
@@ -87,18 +79,65 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -170,9 +209,11 @@
-
+
+
+
@@ -258,15 +299,6 @@
-
-
-
-
-
-
-
-
-
@@ -277,26 +309,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -456,7 +468,7 @@
-
+
1564361618083
@@ -493,15 +505,21 @@
1566553388171
-
+
+ 1566620046627
+
+
+
+ 1566620046627
+
+
-
+
-
@@ -587,7 +605,8 @@
-
+
+
@@ -602,27 +621,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -644,13 +642,6 @@
-
-
-
-
-
-
-
@@ -784,13 +775,6 @@
-
-
-
-
-
-
-
@@ -843,13 +827,6 @@
-
-
-
-
-
-
-
@@ -869,13 +846,6 @@
-
-
-
-
-
-
-
@@ -911,13 +881,6 @@
-
-
-
-
-
-
-
@@ -925,13 +888,6 @@
-
-
-
-
-
-
-
@@ -972,8 +928,8 @@
-
-
+
+
@@ -984,6 +940,69 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java b/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java
index 8ebf74d..3c657a7 100644
--- a/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java
+++ b/src/main/java/com/casic/PgInterface/devTable/manager/PgEquipmentManager.java
@@ -1,6 +1,7 @@
package com.casic.PgInterface.devTable.manager;
import com.casic.PgInterface.core.hibernate.HibernateEntityDao;
+import com.casic.PgInterface.core.util.StringUtils;
import com.casic.PgInterface.devTable.domain.PgEquipment;
import com.casic.PgInterface.devTable.dto.PgDeviceTypeStatisticDto;
import com.casic.PgInterface.devTable.dto.PgEquipmentDto;
@@ -34,9 +35,12 @@
public List getEquipmentDtiList(String eqName,String eqCode, String eqType)
{
Criteria criteria=createCriteria(PgEquipment.class);
- criteria.add(Restrictions.eq("eqName",eqName));
- criteria.add(Restrictions.eq("eqCode",eqCode));
- criteria.add(Restrictions.eq("eqType",eqType));
+ if(StringUtils.isNotBlank(eqName))
+ criteria.add(Restrictions.eq("eqName",eqName));
+ if(StringUtils.isNotBlank(eqCode))
+ criteria.add(Restrictions.eq("eqCode",eqCode));
+ if(StringUtils.isNotBlank(eqType))
+ criteria.add(Restrictions.eq("eqType",eqType));
criteria.add(Restrictions.eq("active",1));
List pgEquipmentList=criteria.list();
@@ -51,10 +55,9 @@
//统计工器具耗材数量
public List getDeviceStatisticByDevType(String eqType){
- //String eqType1=eqType.equals("0")?"工器具":"耗材";
String sql="select equipment.EQ_NAME,count(*) from PG_EQUIPMENT equipment where equipment.EQ_TYPE = '"
- +eqType+"' group by equipment.EQ_NAME";
+ +eqType+"' group by equipment.EQ_NAME";
List