diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c86c514..5a5ec99 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -7,19 +7,9 @@ - - - - - - - - - - - - + + @@ -53,8 +43,9 @@ - + + @@ -67,6 +58,7 @@ + @@ -77,7 +69,7 @@ - + @@ -85,7 +77,7 @@ - + @@ -97,7 +89,7 @@ - + @@ -109,7 +101,7 @@ - + @@ -118,7 +110,7 @@ - + @@ -134,11 +126,60 @@ - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -155,7 +196,6 @@ - getDeviceStatisticByDevType getPersonNumInPgByMonth getConstructionToday constructionType @@ -185,6 +225,7 @@ Restrictions.like like F + linkReservePlan @@ -203,7 +244,6 @@ @@ -364,7 +405,7 @@ - + @@ -373,7 +414,7 @@ - + @@ -383,8 +424,7 @@ - - + @@ -393,8 +433,8 @@ - - + + @@ -446,7 +486,7 @@ - + @@ -912,14 +952,9 @@ - - - - 1522403777512 - 1522663707296 @@ -1257,7 +1292,14 @@ - @@ -1287,7 +1329,7 @@ - @@ -1299,10 +1341,10 @@ - + - + @@ -1314,7 +1356,7 @@ - + @@ -1460,34 +1502,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1572,13 +1586,6 @@ - - - - - - - @@ -1586,13 +1593,6 @@ - - - - - - - @@ -1625,9 +1625,6 @@ - - - @@ -1747,16 +1744,6 @@ - - - - - - - - - - @@ -1792,9 +1779,6 @@ - - - @@ -1828,8 +1812,54 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c86c514..5a5ec99 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -7,19 +7,9 @@ - - - - - - - - - - - - + + @@ -53,8 +43,9 @@ - + + @@ -67,6 +58,7 @@ + @@ -77,7 +69,7 @@ - + @@ -85,7 +77,7 @@ - + @@ -97,7 +89,7 @@ - + @@ -109,7 +101,7 @@ - + @@ -118,7 +110,7 @@ - + @@ -134,11 +126,60 @@ - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -155,7 +196,6 @@ - getDeviceStatisticByDevType getPersonNumInPgByMonth getConstructionToday constructionType @@ -185,6 +225,7 @@ Restrictions.like like F + linkReservePlan @@ -203,7 +244,6 @@ @@ -364,7 +405,7 @@ - + @@ -373,7 +414,7 @@ - + @@ -383,8 +424,7 @@ - - + @@ -393,8 +433,8 @@ - - + + @@ -446,7 +486,7 @@ - + @@ -912,14 +952,9 @@ - - - - 1522403777512 - 1522663707296 @@ -1257,7 +1292,14 @@ - @@ -1287,7 +1329,7 @@ - @@ -1299,10 +1341,10 @@ - + - + @@ -1314,7 +1356,7 @@ - + @@ -1460,34 +1502,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1572,13 +1586,6 @@ - - - - - - - @@ -1586,13 +1593,6 @@ - - - - - - - @@ -1625,9 +1625,6 @@ - - - @@ -1747,16 +1744,6 @@ - - - - - - - - - - @@ -1792,9 +1779,6 @@ - - - @@ -1828,8 +1812,54 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/java/com/casic/PgInterface/reservePlan/manager/PgReservePlanManager.java b/src/main/java/com/casic/PgInterface/reservePlan/manager/PgReservePlanManager.java index 69d40a2..64056b7 100644 --- a/src/main/java/com/casic/PgInterface/reservePlan/manager/PgReservePlanManager.java +++ b/src/main/java/com/casic/PgInterface/reservePlan/manager/PgReservePlanManager.java @@ -70,11 +70,11 @@ try { Criteria criteria = createCriteria(PgReservePlan.class); criteria.add(Restrictions.eq("pgAlarmTypeId", pgAlarm.getAlarmTypeId())); - criteria.add(Restrictions.eq("active", "1")); + criteria.add(Restrictions.eq("active", 1)); criteria.addOrder(Order.desc("id")); List pgReservePlanList = criteria.list(); - List pgReservePlanDtoList = new ArrayList(); + List pgReservePlanDtoList = new ArrayList<>(); for (PgReservePlan pgReservePlan : pgReservePlanList) { pgReservePlanDtoList.add(new PgReservePlanDto(pgReservePlan)); } diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c86c514..5a5ec99 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -7,19 +7,9 @@ - - - - - - - - - - - - + + @@ -53,8 +43,9 @@ - + + @@ -67,6 +58,7 @@ + @@ -77,7 +69,7 @@ - + @@ -85,7 +77,7 @@ - + @@ -97,7 +89,7 @@ - + @@ -109,7 +101,7 @@ - + @@ -118,7 +110,7 @@ - + @@ -134,11 +126,60 @@ - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -155,7 +196,6 @@ - getDeviceStatisticByDevType getPersonNumInPgByMonth getConstructionToday constructionType @@ -185,6 +225,7 @@ Restrictions.like like F + linkReservePlan @@ -203,7 +244,6 @@ @@ -364,7 +405,7 @@ - + @@ -373,7 +414,7 @@ - + @@ -383,8 +424,7 @@ - - + @@ -393,8 +433,8 @@ - - + + @@ -446,7 +486,7 @@ - + @@ -912,14 +952,9 @@ - - - - 1522403777512 - 1522663707296 @@ -1257,7 +1292,14 @@ - @@ -1287,7 +1329,7 @@ - @@ -1299,10 +1341,10 @@ - + - + @@ -1314,7 +1356,7 @@ - + @@ -1460,34 +1502,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1572,13 +1586,6 @@ - - - - - - - @@ -1586,13 +1593,6 @@ - - - - - - - @@ -1625,9 +1625,6 @@ - - - @@ -1747,16 +1744,6 @@ - - - - - - - - - - @@ -1792,9 +1779,6 @@ - - - @@ -1828,8 +1812,54 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/java/com/casic/PgInterface/reservePlan/manager/PgReservePlanManager.java b/src/main/java/com/casic/PgInterface/reservePlan/manager/PgReservePlanManager.java index 69d40a2..64056b7 100644 --- a/src/main/java/com/casic/PgInterface/reservePlan/manager/PgReservePlanManager.java +++ b/src/main/java/com/casic/PgInterface/reservePlan/manager/PgReservePlanManager.java @@ -70,11 +70,11 @@ try { Criteria criteria = createCriteria(PgReservePlan.class); criteria.add(Restrictions.eq("pgAlarmTypeId", pgAlarm.getAlarmTypeId())); - criteria.add(Restrictions.eq("active", "1")); + criteria.add(Restrictions.eq("active", 1)); criteria.addOrder(Order.desc("id")); List pgReservePlanList = criteria.list(); - List pgReservePlanDtoList = new ArrayList(); + List pgReservePlanDtoList = new ArrayList<>(); for (PgReservePlan pgReservePlan : pgReservePlanList) { pgReservePlanDtoList.add(new PgReservePlanDto(pgReservePlan)); } diff --git a/src/main/java/com/casic/PgInterface/rs/PgInPgPersonRs.java b/src/main/java/com/casic/PgInterface/rs/PgInPgPersonRs.java index 08d0ea5..bf9fb9d 100644 --- a/src/main/java/com/casic/PgInterface/rs/PgInPgPersonRs.java +++ b/src/main/java/com/casic/PgInterface/rs/PgInPgPersonRs.java @@ -142,12 +142,14 @@ PgInPgPerson pgInPgPerson = null; PgInPgPersonDto pgInPgPersonDto=null; + List pgInPgPersonDtoList=new ArrayList<>(); try { pgInPgPerson = pgInPgPersonManager.getPersonByUserName(userName); if (pgInPgPerson == null) msg = "不存在人员信息"; else { pgInPgPersonDto=new PgInPgPersonDto(pgInPgPerson); + pgInPgPersonDtoList.add(pgInPgPersonDto); msg = "人员信息获取成功"; } } catch (Exception e) { @@ -155,9 +157,8 @@ msg = "人员信息获取失败"; } - resultMap.put("msg", msg); - resultMap.put("result", pgInPgPersonDto); + resultMap.put("result", pgInPgPersonDtoList); return resultMap; }