|
|
@@ -7,6 +7,7 @@ import java.io.FileInputStream;
|
|
|
import java.io.FileOutputStream;
|
|
|
import java.io.InputStream;
|
|
|
import java.io.OutputStream;
|
|
|
+import java.lang.reflect.Method;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Comparator;
|
|
|
@@ -25,12 +26,14 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import com.xintong.visualinspection.bean.CheckAppealStatistic;
|
|
|
import com.xintong.visualinspection.bean.CheckmanStatisticsBean;
|
|
|
import com.xintong.visualinspection.bean.Constant;
|
|
|
import com.xintong.visualinspection.bean.FeeStation;
|
|
|
import com.xintong.visualinspection.bean.Organ;
|
|
|
import com.xintong.visualinspection.bean.StatisticsBean;
|
|
|
import com.xintong.visualinspection.bean.StatisticsBo;
|
|
|
+import com.xintong.visualinspection.bean.StatisticsFsWork;
|
|
|
import com.xintong.visualinspection.bean.User;
|
|
|
import com.xintong.visualinspection.dao.cluster.DepartmentDao;
|
|
|
import com.xintong.visualinspection.dao.cluster.UserInfoDao;
|
|
|
@@ -69,16 +72,14 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
|
|
|
Map<Long, StatisticsBo> statisticBoMap = new HashMap<Long, StatisticsBo>();
|
|
|
|
|
|
+ // 检索收费站的人员
|
|
|
Constant t = CodeUtil.getCodeByFlagAndValue("feestation_check_jobs", "1");
|
|
|
-
|
|
|
String[] postions = t.getCode_name().split(",");
|
|
|
-
|
|
|
User user = new User();
|
|
|
List<Integer> positionList = new ArrayList<Integer>();
|
|
|
for(int i =0 ;i<postions.length;i++){
|
|
|
positionList.add(Integer.parseInt(postions[i]));
|
|
|
}
|
|
|
-
|
|
|
user.setPosition_ids(positionList);
|
|
|
|
|
|
if (obj.getDept_id() != null)
|
|
|
@@ -105,6 +106,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
for (StatisticsBean statisticsBean : timesList) {
|
|
|
if (statisticBoMap.containsKey(statisticsBean.getUser_id())) {
|
|
|
StatisticsBo tmp = statisticBoMap.get(statisticsBean.getUser_id());
|
|
|
@@ -117,28 +119,38 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
lists.sort(new Comparator<StatisticsBo>() {
|
|
|
@Override
|
|
|
public int compare(StatisticsBo o1, StatisticsBo o2) {
|
|
|
- if(o1.getChecked_num()!=0 && o2.getChecked_num()!=0){
|
|
|
- double a = o1.getCheck_all_score() / (o1.getChecked_num()+0.00);
|
|
|
- double b = o2.getCheck_all_score()/(o2.getChecked_num()+0.00);
|
|
|
- if (a > b ) {
|
|
|
- return 1;
|
|
|
- } else if (a < b) {
|
|
|
- return -1;
|
|
|
- } else {
|
|
|
- return 0;
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(o1.getChecked_num() == 0){
|
|
|
- return -1 ;
|
|
|
- }else if(o2.getChecked_num() ==0){
|
|
|
- return 1;
|
|
|
- }else{
|
|
|
- return 0;
|
|
|
- }
|
|
|
- }
|
|
|
+ return o1.compareTo(o2);
|
|
|
}
|
|
|
});
|
|
|
+ // 道管Map
|
|
|
+ Map<String,Integer> center_ranking = new HashMap<>();
|
|
|
+ center_ranking.put("30",1);
|
|
|
+ center_ranking.put("31",1);
|
|
|
+ center_ranking.put("32",1);
|
|
|
+
|
|
|
+ Map<String,Integer> fee_ranking= new HashMap<>();
|
|
|
+ // 这边需要对道管和收费站内的员工进行排名
|
|
|
+ List<FeeStation> list_feeStation = departmentDao.getAllFS();
|
|
|
+ for(FeeStation fee: list_feeStation){
|
|
|
+ fee_ranking.put(fee.getDeptid(), 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ for(int i=0;i<lists.size();i++){
|
|
|
+ // 累计道管排名
|
|
|
+ String centerId= lists.get(i).getUser().getParent_organid().toString();
|
|
|
+ lists.get(i).setCenter_ranking(center_ranking.get(centerId));
|
|
|
+ center_ranking.put(centerId,center_ranking.get(centerId) +1 );
|
|
|
|
|
|
+ // 累计收费站的排名
|
|
|
+ String feeStationId= lists.get(i).getUser().getOrganid().toString();
|
|
|
+ lists.get(i).setFee_station_ranking(fee_ranking.get(feeStationId));
|
|
|
+ fee_ranking.put(feeStationId, fee_ranking.get(feeStationId)+1);
|
|
|
+
|
|
|
+ // 公司排名
|
|
|
+ lists.get(i).setCompany_ranking(i+1);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
return lists;
|
|
|
}
|
|
|
|
|
|
@@ -403,6 +415,19 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
exportExcel("温馨服务检查情况统计表", "checked_item_info", list, resp);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void getExcelAppealInfo(CheckAppealStatistic obj,String monthName, HttpServletRequest req, HttpServletResponse resp) {
|
|
|
+ List<CheckAppealStatistic> list = getCheckAppealStatistic(obj);
|
|
|
+ for(Integer i=0;i<list.size();i++){
|
|
|
+ if(i==0){
|
|
|
+ list.get(0).setMonth_name(monthName);
|
|
|
+ }
|
|
|
+ list.get(i).setId(i+1);
|
|
|
+ }
|
|
|
+ exportExcel(monthName+"月份收费站申诉情况统计", "appeal_info", list, resp);
|
|
|
+ }
|
|
|
+
|
|
|
private void exportExcel(String fileName, String excelTemplateName, List<?> list, HttpServletResponse resp) {
|
|
|
String path = "./" + fileName + ".xls";
|
|
|
try (InputStream is = this.getClass().getResourceAsStream("/" + excelTemplateName + ".xls")) {
|
|
|
@@ -527,23 +552,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
scoreList.sort(new Comparator<StatisticsBean>() {
|
|
|
@Override
|
|
|
public int compare(StatisticsBean o1, StatisticsBean o2) {
|
|
|
- if(o1.getChecked_num()!=0 && o2.getChecked_num()!=0){
|
|
|
- if (o1.getAll_check_score()/(o1.getChecked_num()+0.0) > o2.getAll_check_score()/(o2.getChecked_num()+0.0) ) {
|
|
|
- return 1;
|
|
|
- } else if (o1.getAll_check_score()/(o1.getChecked_num()+0.0) < o2.getAll_check_score()/(o2.getChecked_num()+0.0)) {
|
|
|
- return -1;
|
|
|
- } else {
|
|
|
- return 0;
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(o1.getChecked_num() == 0){
|
|
|
- return -1 ;
|
|
|
- }else if(o2.getChecked_num() ==0){
|
|
|
- return 1;
|
|
|
- }else{
|
|
|
- return 0;
|
|
|
- }
|
|
|
- }
|
|
|
+ return o1.compareTo(o2);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -574,6 +583,13 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ resultList.sort(new Comparator<StatisticsBean>() {
|
|
|
+ @Override
|
|
|
+ public int compare(StatisticsBean o1, StatisticsBean o2) {
|
|
|
+ return o1.compareTo(o2);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
return resultList;
|
|
|
}
|
|
|
|
|
|
@@ -643,25 +659,7 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
centerManageList.sort(new Comparator<StatisticsBean>() {
|
|
|
@Override
|
|
|
public int compare(StatisticsBean o1, StatisticsBean o2) {
|
|
|
- if(o1.getChecked_num()!=0 && o2.getChecked_num()!=0){
|
|
|
- double a = o1.getAll_check_score() / (o1.getChecked_num()+0.00) / o1.getPeople_num();
|
|
|
- double b = o2.getAll_check_score() /(o2.getChecked_num()+0.00) / o2.getPeople_num();
|
|
|
- if (a > b ) {
|
|
|
- return 1;
|
|
|
- } else if (a < b) {
|
|
|
- return -1;
|
|
|
- } else {
|
|
|
- return 0;
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(o1.getChecked_num() == 0){
|
|
|
- return -1 ;
|
|
|
- }else if(o2.getChecked_num() ==0){
|
|
|
- return 1;
|
|
|
- }else{
|
|
|
- return 0;
|
|
|
- }
|
|
|
- }
|
|
|
+ return o1.compareTo(o2);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -951,6 +949,9 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
sta.setCheckman_name( CacheUtil.getUserFromMap(sta.getCheckman_id()+0L).getTruename() );
|
|
|
sta.setChecked_name( CacheUtil.getUserFromMap(sta.getUser_id()+0L).getTruename());
|
|
|
sta.setFeeStationName( CacheUtil.getOrganFromMap(sta.getDept_id()).getOrganname() );
|
|
|
+ SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
|
+ SimpleDateFormat formatter2 = new SimpleDateFormat("- HH:mm");
|
|
|
+ sta.setCheck_task_time_name( formatter.format(sta.getStart_date())+formatter2.format(sta.getEnd_date()));
|
|
|
}
|
|
|
}else{
|
|
|
for(StatisticsBean sta : list){
|
|
|
@@ -962,9 +963,267 @@ public class StatisticsServiceImpl extends BaseService implements StatisticsServ
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
public CheckmanStatisticsBean getCheckmanStatisticInfo(CheckmanStatisticsBean obj) {
|
|
|
return statisticsDao.selectCheckManInfo(obj);
|
|
|
}
|
|
|
+
|
|
|
+ // 根据调剂获取用户列表
|
|
|
+ private List<User> getUsers(User user){
|
|
|
+ // 检索收费站的人员
|
|
|
+ Constant t = CodeUtil.getCodeByFlagAndValue("feestation_check_jobs", "1");
|
|
|
+ String[] postions = t.getCode_name().split(",");
|
|
|
+ List<Integer> positionList = new ArrayList<Integer>();
|
|
|
+ for(int i =0 ;i<postions.length;i++){
|
|
|
+ positionList.add(Integer.parseInt(postions[i]));
|
|
|
+ }
|
|
|
+ user.setPosition_ids(positionList);
|
|
|
+ return userInfoDao.getUsers(user);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据parant_organ_id 查询该下面的收费站列表
|
|
|
+ * @param id organ_id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ private List<Organ> getFsStationList(Integer id){
|
|
|
+ // 道管中心
|
|
|
+ Organ organ =new Organ();
|
|
|
+ organ.setParentid(id);
|
|
|
+ return departmentDao.getOrgan(organ);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<StatisticsFsWork> getFsWorkStatisticInfo(StatisticsFsWork obj) {
|
|
|
+
|
|
|
+ List<User> userList =new ArrayList<>();
|
|
|
+ if(obj.getUser_id()!=null){
|
|
|
+ userList.add(userInfoDao.getOneDetail(obj.getUser_id().intValue()));
|
|
|
+ }else{
|
|
|
+ User user = new User();
|
|
|
+ if(obj.getDept_id()!=null){
|
|
|
+ user.setOrganid(obj.getDept_id().intValue());
|
|
|
+ }
|
|
|
+ if(obj.getParent_dept_id()!=null){
|
|
|
+ user.setParent_organid(obj.getParent_dept_id().intValue());
|
|
|
+ obj.setDept_list(getFsStationList(obj.getParent_dept_id().intValue()));
|
|
|
+ }
|
|
|
+ userList = getUsers(user);
|
|
|
+ }
|
|
|
+
|
|
|
+ //
|
|
|
+ Map<Integer,StatisticsFsWork> map = new HashMap<>();
|
|
|
+ List<StatisticsFsWork> sFsList = statisticsDao.selectFsWork(obj);
|
|
|
+ for(int i=0;i<sFsList.size();i++){
|
|
|
+ map.put(sFsList.get(i).getUser_id().intValue(), sFsList.get(i));
|
|
|
+ }
|
|
|
+ //
|
|
|
+ Map<Integer,StatisticsFsWork> mapSta = new HashMap<>();
|
|
|
+ List<StatisticsFsWork> sfswList = statisticsDao.selectFsWorkGather(obj);
|
|
|
+ for(int i=0;i<sfswList.size();i++){
|
|
|
+ mapSta.put(sfswList.get(i).getUser_id().intValue(), sfswList.get(i));
|
|
|
+ }
|
|
|
+
|
|
|
+ for(User userObj:userList){
|
|
|
+ if(mapSta.containsKey(userObj.getId())){
|
|
|
+ StatisticsFsWork staobj = map.get(userObj.getId());
|
|
|
+ staobj.setFeeStationName(userObj.getFee_station_name());
|
|
|
+ staobj.setWorkno(userObj.getWorkno());
|
|
|
+ staobj.setPositionName(CacheUtil.getJobnameFromMap(new Long(userObj.getPositionid())));
|
|
|
+ staobj.setUserName(userObj.getTruename());
|
|
|
+ staobj.setWork_days( mapSta.get(userObj.getId()).getWork_days() );
|
|
|
+ staobj.setWork_minutes( mapSta.get(userObj.getId()).getWork_minutes() );
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return sFsList;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<StatisticsFsWork> getUnregularFsWorkStatisticInfo(StatisticsFsWork obj) {
|
|
|
+ List<User> userList =new ArrayList<>();
|
|
|
+ if(obj.getUser_id()!=null){
|
|
|
+ userList.add(userInfoDao.getOneDetail(obj.getUser_id().intValue()));
|
|
|
+ }else{
|
|
|
+ User user = new User();
|
|
|
+ if(obj.getDept_id()!=null){
|
|
|
+ user.setOrganid(obj.getDept_id().intValue());
|
|
|
+ }
|
|
|
+ if(obj.getParent_dept_id()!=null){
|
|
|
+ user.setParent_organid(obj.getParent_dept_id().intValue());
|
|
|
+ obj.setDept_list(getFsStationList(obj.getParent_dept_id().intValue()));
|
|
|
+ }
|
|
|
+ userList = getUsers(user);
|
|
|
+ }
|
|
|
+
|
|
|
+ //
|
|
|
+ Map<Integer,StatisticsFsWork> map = new HashMap<>();
|
|
|
+ List<StatisticsFsWork> sFsList = statisticsDao.selectFsUnregularWork(obj);
|
|
|
+ for(int i=0;i<sFsList.size();i++){
|
|
|
+ map.put(sFsList.get(i).getUser_id().intValue(), sFsList.get(i));
|
|
|
+ }
|
|
|
+ //
|
|
|
+ Map<Integer,StatisticsFsWork> mapSta = new HashMap<>();
|
|
|
+ List<StatisticsFsWork> sfswList = statisticsDao.selectFsUnregularWorkGather(obj);
|
|
|
+ for(int i=0;i<sfswList.size();i++){
|
|
|
+ mapSta.put(sfswList.get(i).getUser_id().intValue(), sfswList.get(i));
|
|
|
+ }
|
|
|
+ for(User userObj:userList){
|
|
|
+ if(mapSta.containsKey(userObj.getId())){
|
|
|
+ StatisticsFsWork staobj = map.get(userObj.getId());
|
|
|
+ staobj.setFeeStationName(userObj.getFee_station_name());
|
|
|
+ staobj.setWorkno(userObj.getWorkno());
|
|
|
+ staobj.setPositionName(CacheUtil.getJobnameFromMap(new Long(userObj.getPositionid())));
|
|
|
+ staobj.setUserName(userObj.getTruename());
|
|
|
+ staobj.setWork_days( mapSta.get(userObj.getId()).getWork_days() );
|
|
|
+ staobj.setWork_minutes( mapSta.get(userObj.getId()).getWork_minutes() );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return sFsList;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<StatisticsFsWork> getFsWorkPerson(StatisticsFsWork obj) {
|
|
|
+
|
|
|
+ List<User> userList =new ArrayList<>();
|
|
|
+ if(obj.getUser_id()!=null){
|
|
|
+ userList.add(userInfoDao.getOneDetail(obj.getUser_id().intValue()));
|
|
|
+ }else{
|
|
|
+ User user = new User();
|
|
|
+ if(obj.getDept_id()!=null){
|
|
|
+ user.setOrganid(obj.getDept_id().intValue());
|
|
|
+ }
|
|
|
+ if(obj.getParent_dept_id()!=null){
|
|
|
+ user.setParent_organid(obj.getParent_dept_id().intValue());
|
|
|
+ obj.setDept_list(getFsStationList(obj.getParent_dept_id().intValue()));
|
|
|
+ }
|
|
|
+ userList = getUsers(user);
|
|
|
+ }
|
|
|
+ Map<Integer,StatisticsFsWork> map = new HashMap<>();
|
|
|
+ List<StatisticsFsWork> sFsList = statisticsDao.selectFsWorkGatherGroupByWorkType(obj);
|
|
|
+ for(int i=0;i<sFsList.size();i++){
|
|
|
+ map.put(sFsList.get(i).getUser_id().intValue(), sFsList.get(i));
|
|
|
+ }
|
|
|
+
|
|
|
+ for(User userObj:userList){
|
|
|
+ if(map.containsKey(userObj.getId())){
|
|
|
+ StatisticsFsWork staobj = map.get(userObj.getId());
|
|
|
+ staobj.setFeeStationName(userObj.getFee_station_name());
|
|
|
+ staobj.setPositionName(CacheUtil.getJobnameFromMap(new Long(userObj.getPositionid())));
|
|
|
+ staobj.setUserName(userObj.getTruename());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return sFsList;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<StatisticsFsWork> getFsWorkUnregularWorkPerson(StatisticsFsWork obj) {
|
|
|
+ List<User> userList =new ArrayList<>();
|
|
|
+ if(obj.getUser_id()!=null){
|
|
|
+ userList.add(userInfoDao.getOneDetail(obj.getUser_id().intValue()));
|
|
|
+ }else{
|
|
|
+ User user = new User();
|
|
|
+ if(obj.getDept_id()!=null){
|
|
|
+ user.setOrganid(obj.getDept_id().intValue());
|
|
|
+ }
|
|
|
+ if(obj.getParent_dept_id()!=null){
|
|
|
+ user.setParent_organid(obj.getParent_dept_id().intValue());
|
|
|
+ obj.setDept_list(getFsStationList(obj.getParent_dept_id().intValue()));
|
|
|
+ }
|
|
|
+ userList = getUsers(user);
|
|
|
+ }
|
|
|
+ Map<Integer,StatisticsFsWork> map = new HashMap<>();
|
|
|
+ List<StatisticsFsWork> sFsList = statisticsDao.selectFsUnregularWorkGatherGroupByWorkType(obj);
|
|
|
+ for(int i=0;i<sFsList.size();i++){
|
|
|
+ map.put(sFsList.get(i).getUser_id().intValue(), sFsList.get(i));
|
|
|
+ }
|
|
|
+
|
|
|
+ for(User userObj:userList){
|
|
|
+ if(map.containsKey(userObj.getId())){
|
|
|
+ StatisticsFsWork staobj = map.get(userObj.getId());
|
|
|
+ staobj.setFeeStationName(userObj.getFee_station_name());
|
|
|
+ staobj.setPositionName(CacheUtil.getJobnameFromMap(new Long(userObj.getPositionid())));
|
|
|
+ staobj.setUserName(userObj.getTruename());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return sFsList;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 将list 转化为 HashMap
|
|
|
+ private <T> Map<Integer,T> getMapFromList(List<T> list,String fieldName ){
|
|
|
+ if(list!=null && list.size() >0){
|
|
|
+ try {
|
|
|
+ Map<Integer,T> map = new HashMap<>();
|
|
|
+ for(T obj : list){
|
|
|
+ Method m = obj.getClass().getMethod("get"+fieldName.substring(0, 1).toUpperCase() + fieldName.substring(1));
|
|
|
+ Integer value = (Integer)m.invoke(obj);
|
|
|
+ map.put(value, obj);
|
|
|
+ }
|
|
|
+ return map;
|
|
|
+ } catch (Exception e) {
|
|
|
+
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<CheckAppealStatistic> getCheckAppealStatistic(CheckAppealStatistic obj) {
|
|
|
+ // 根据不同检索条件,分别检索去 公司、道管或者收费站 下的收费站列表
|
|
|
+ List<Organ> list ;
|
|
|
+ if(obj.getDept_id()!=null){
|
|
|
+ Organ organ =new Organ();
|
|
|
+ organ.setId(obj.getDept_id());
|
|
|
+ list = departmentDao.getOrgan(organ);
|
|
|
+ }else if(obj.getParent_dept_id()!=null){
|
|
|
+ list = getFsStationList(obj.getParent_dept_id());
|
|
|
+ obj.setDept_list(list);
|
|
|
+ }else{
|
|
|
+ list = new ArrayList<>();
|
|
|
+ List<FeeStation> lists = departmentDao.getAllFS();
|
|
|
+ for(FeeStation e : lists){
|
|
|
+ Organ organ = new Organ();
|
|
|
+ organ.setId(Integer.parseInt(e.getDeptid()));
|
|
|
+ organ.setOrganname(e.getName());
|
|
|
+ list.add(organ);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 将检索的数据填充list中
|
|
|
+ List<CheckAppealStatistic> ObjList = statisticsDao.selectCheckAppealNum(obj);
|
|
|
+ Map<Integer,CheckAppealStatistic> map = getMapFromList(ObjList,"dept_id");
|
|
|
+
|
|
|
+ for(Organ organObj :list ){
|
|
|
+ if(map!=null && map.containsKey(organObj.getId())){
|
|
|
+ CheckAppealStatistic reObj = map.get(organObj.getId());
|
|
|
+ reObj.setFee_station_name(organObj.getOrganname());
|
|
|
+ Integer appeal_num = 0;
|
|
|
+ for(CheckAppealStatistic subObj:reObj.getSubCheckApealStatistic()){
|
|
|
+ appeal_num += subObj.getAppeal_num();
|
|
|
+ if(subObj.getAppeal_result() ==null){
|
|
|
+ reObj.setAppeal_other_num(subObj.getAppeal_num());
|
|
|
+ }else if(subObj.getAppeal_result()==1){
|
|
|
+ reObj.setAppeal_success_num(subObj.getAppeal_num());
|
|
|
+ }else{
|
|
|
+ reObj.setAppeal_fail_num(subObj.getAppeal_fail_num());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ reObj.setAppeal_num(appeal_num);
|
|
|
+ reObj.setSubCheckApealStatistic(null);
|
|
|
+ }else{
|
|
|
+ CheckAppealStatistic reobj = new CheckAppealStatistic();
|
|
|
+ reobj.setFee_station_name(organObj.getOrganname());
|
|
|
+ reobj.setAppeal_num(0);
|
|
|
+ reobj.setAppeal_fail_num(0);
|
|
|
+ reobj.setAppeal_other_num(0);
|
|
|
+ reobj.setAppeal_result(0);
|
|
|
+ ObjList.add(reobj);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ObjList;
|
|
|
+ }
|
|
|
|
|
|
}
|