|
|
@@ -528,7 +528,11 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
if (obj.getQueryType() != null && obj.getQueryType() == 1) {
|
|
|
// 检索当前导管中心下的deptid
|
|
|
Organ organ = new Organ();
|
|
|
+ if(obj.getDept_id()==null){
|
|
|
+ return null ;
|
|
|
+ }
|
|
|
organ.setParentid(obj.getDept_id().intValue());
|
|
|
+
|
|
|
List<Organ> list = departmentDao.getOrgan(organ);
|
|
|
// 将导管中心下的收费站部门id 列表放入到list中
|
|
|
obj.setDept_list(list);
|
|
|
@@ -628,6 +632,9 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
}
|
|
|
}
|
|
|
Organ organ = new Organ();
|
|
|
+ if(obj.getDept_id()==null){
|
|
|
+ return null ;
|
|
|
+ }
|
|
|
organ.setParentid(obj.getDept_id().intValue());
|
|
|
List<Organ> list = departmentDao.getOrgan(organ);
|
|
|
|
|
|
@@ -739,6 +746,9 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
} else if (obj.getQueryType() == 1) {
|
|
|
// 道管中心
|
|
|
Organ organ = new Organ();
|
|
|
+ if(obj.getDept_id()==null){
|
|
|
+ return null ;
|
|
|
+ }
|
|
|
organ.setParentid(obj.getDept_id().intValue());
|
|
|
List<Organ> list = departmentDao.getOrgan(organ);
|
|
|
// 将导管中心下的收费站部门id 列表放入到list中
|
|
|
@@ -778,6 +788,9 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
if (obj.getQueryType() == 1) {
|
|
|
// 道管中心
|
|
|
Organ organ = new Organ();
|
|
|
+ if(obj.getDept_id()==null){
|
|
|
+ return null ;
|
|
|
+ }
|
|
|
organ.setParentid(obj.getDept_id().intValue());
|
|
|
List<Organ> list = departmentDao.getOrgan(organ);
|
|
|
// 将导管中心下的收费站部门id 列表放入到list中
|
|
|
@@ -807,6 +820,9 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
} else if (obj.getQueryType() == 1) {
|
|
|
// 道管中心
|
|
|
Organ organ = new Organ();
|
|
|
+ if(obj.getDept_id()==null){
|
|
|
+ return null ;
|
|
|
+ }
|
|
|
organ.setParentid(obj.getDept_id().intValue());
|
|
|
List<Organ> list = departmentDao.getOrgan(organ);
|
|
|
// 将导管中心下的收费站部门id 列表放入到list中
|
|
|
@@ -855,6 +871,9 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
if (obj.getQueryType() == 1) {
|
|
|
// 道管中心
|
|
|
Organ organ = new Organ();
|
|
|
+ if(obj.getDept_id()==null){
|
|
|
+ return null ;
|
|
|
+ }
|
|
|
organ.setParentid(obj.getDept_id().intValue());
|
|
|
List<Organ> list = departmentDao.getOrgan(organ);
|
|
|
// 将导管中心下的收费站部门id 列表放入到list中
|
|
|
@@ -957,7 +976,11 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
return t_mthList.subList(0, 5);
|
|
|
} else if (obj.getOrder_type() == 1) {
|
|
|
// 反序
|
|
|
- return t_mthList.subList(t_mthList.size() - 5, t_mthList.size());
|
|
|
+ List<StatisticsBean> reList = new ArrayList<>();
|
|
|
+ for(int j = t_mthList.size()-1; j>t_mthList.size()-6; j-- ){
|
|
|
+ reList.add( t_mthList.get(j) );
|
|
|
+ }
|
|
|
+ return reList;
|
|
|
}
|
|
|
return t_mthList;
|
|
|
}
|