|
|
@@ -15,8 +15,8 @@ import com.xintong.visualinspection.pojo.fwq.FwqStatisiticPojo;
|
|
|
import com.xintong.visualinspection.pojo.fwq.ServiceAreaStatistic;
|
|
|
import com.xintong.visualinspection.service.CommonService;
|
|
|
import com.xintong.visualinspection.service.StatisticsService_F;
|
|
|
-import com.xintong.visualinspection.visuallnspection_qzd.dao.FwqCheckDeptStatisticsDao;
|
|
|
-import com.xintong.visualinspection.visuallnspection_qzd.dao.FwqStatisticsDao;
|
|
|
+import com.xintong.visualinspection.visuallnspection_qzd.dao.QzdCheckDeptStatisticsDao;
|
|
|
+import com.xintong.visualinspection.visuallnspection_qzd.dao.QzdStatisticsDao;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -51,9 +51,9 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
private static final Logger logger = LoggerFactory.getLogger(StatisticsServiceImpl.class);
|
|
|
|
|
|
@Autowired
|
|
|
- private FwqStatisticsDao fwqStatisticsDao;
|
|
|
+ private QzdStatisticsDao qzdStatisticsDao;
|
|
|
@Autowired
|
|
|
- private FwqCheckDeptStatisticsDao fwqCheckDeptStatisticsDao;
|
|
|
+ private QzdCheckDeptStatisticsDao qzdCheckDeptStatisticsDao;
|
|
|
|
|
|
@Reference(version = "1.0.0",
|
|
|
application = "${dubbo.application.id}",
|
|
|
@@ -77,10 +77,10 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
List<FwqStatisticsBean> company_beans = getFeeStationCheckItemScore(obj);
|
|
|
// 获取第三方暗访稽查的某个服务区的受检次数和扣分合计
|
|
|
obj.setCheck_type(8);
|
|
|
- List<FwqStatisticsBean> third_beans = fwqStatisticsDao.getselectFeeStationOperationScoreDetail(obj);
|
|
|
+ List<FwqStatisticsBean> third_beans = qzdStatisticsDao.getselectFeeStationOperationScoreDetail(obj);
|
|
|
// 获取现场稽查的某个服务区的受检次数和扣分合计
|
|
|
obj.setCheck_type(9);
|
|
|
- List<FwqStatisticsBean> onsite_beans = fwqStatisticsDao.getselectFeeStationOperationScoreDetail(obj);
|
|
|
+ List<FwqStatisticsBean> onsite_beans = qzdStatisticsDao.getselectFeeStationOperationScoreDetail(obj);
|
|
|
|
|
|
for (FwqStatisticsBean company_bean : company_beans) {
|
|
|
mapStationInfos.get(company_bean.getDept_id()).setCompany_check_num(company_bean.getChecked_num());
|
|
|
@@ -161,7 +161,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
ss.setIntegral(sortList.size() - s.getCompany_ranking2() + 1);
|
|
|
ss.setDept_id(s.getDept_id());
|
|
|
ss.setPeriod_id(period.getId());
|
|
|
- fwqCheckDeptStatisticsDao.saveandupdate(ss);
|
|
|
+ qzdCheckDeptStatisticsDao.saveandupdate(ss);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -196,7 +196,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
obj.setEndperiod_id(checkTaskPeriods.get(checkTaskPeriods.size() - 1).getId());
|
|
|
}
|
|
|
|
|
|
- List<FwqDeptStatistic> deptStatistics = fwqCheckDeptStatisticsDao.selectdepts(obj);
|
|
|
+ List<FwqDeptStatistic> deptStatistics = qzdCheckDeptStatisticsDao.selectdepts(obj);
|
|
|
Map<String, List<FwqDeptStatistic>> listMap = new HashMap<>();
|
|
|
Map<Long, List<FwqDeptStatistic>> listMap1 = new HashMap<>();
|
|
|
if (deptStatistics.size() > 0) {
|
|
|
@@ -394,7 +394,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
}
|
|
|
|
|
|
//服务区检查次数
|
|
|
- List<FwqStatisticsBean> listCheckNum = fwqStatisticsDao.selectFeeStationCheckNum(obj);
|
|
|
+ List<FwqStatisticsBean> listCheckNum = qzdStatisticsDao.selectFeeStationCheckNum(obj);
|
|
|
for (FwqStatisticsBean sta : listCheckNum) {
|
|
|
if (mapStationInfos.containsKey(sta.getDept_id())) {
|
|
|
mapStationInfos.get(sta.getDept_id()).setChecked_num(sta.getChecked_num());
|
|
|
@@ -402,7 +402,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- List<FwqStatisticsBean> listCheckedScore = fwqStatisticsDao.selectFeeStationCheckedPersonScoreDetail(obj);
|
|
|
+ List<FwqStatisticsBean> listCheckedScore = qzdStatisticsDao.selectFeeStationCheckedPersonScoreDetail(obj);
|
|
|
|
|
|
// 处理同一个服务区中,如果item的parent_id是一样的话,将这些数据结合在一起
|
|
|
for (FwqStatisticsBean sta : listCheckedScore) {
|
|
|
@@ -512,7 +512,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
if (!(page.equals(0) && size.equals(0))) {
|
|
|
PageHelper.startPage(page, size);
|
|
|
}
|
|
|
- List<FwqStatisticsBean> list = fwqStatisticsDao.selectOneCheckedDetailInfo(obj);
|
|
|
+ List<FwqStatisticsBean> list = qzdStatisticsDao.selectOneCheckedDetailInfo(obj);
|
|
|
Map<Long, Item> itemMap = commonService.getItemMap();
|
|
|
|
|
|
for (FwqStatisticsBean sta : list) {
|
|
|
@@ -570,12 +570,12 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
|
|
|
@Override
|
|
|
public List<FwqStatisticsBean> getOneSACheckedInfo(FwqStatisticsBean obj) {
|
|
|
- return fwqStatisticsDao.selectOneCheckedInfoData(obj);
|
|
|
+ return qzdStatisticsDao.selectOneCheckedInfoData(obj);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public List<FwqStatisticsBean> getOneCheckedItemInfo(FwqStatisticsBean obj) {
|
|
|
- List<FwqStatisticsBean> listCheckedScore = fwqStatisticsDao.selectOneCheckedItemInfo(obj);
|
|
|
+ List<FwqStatisticsBean> listCheckedScore = qzdStatisticsDao.selectOneCheckedItemInfo(obj);
|
|
|
Map<Long, Item> itemMap = commonService.getItemMap();
|
|
|
// 处理同一个服务区中,如果item的parent_id是一样的话,将这些数据结合在一起
|
|
|
for (FwqStatisticsBean sta : listCheckedScore) {
|
|
|
@@ -601,7 +601,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
public List<FwqStatisticsBo> getEmployeeCheckedInfo(FwqStatisticsBean obj) {
|
|
|
|
|
|
// 将检索出来的数据放到如map中
|
|
|
- List<FwqStatisticsBean> list = fwqStatisticsDao.selectStatistics(obj);
|
|
|
+ List<FwqStatisticsBean> list = qzdStatisticsDao.selectStatistics(obj);
|
|
|
Map<Long, Item> itemMap = commonService.getItemMap();
|
|
|
Map<Long, Organ> deptMap = commonService.getDeptMap();
|
|
|
// 将list中的数据找到项目的父项目,然后去除重复的
|
|
|
@@ -618,7 +618,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
}
|
|
|
|
|
|
// 查询服务区受检次数
|
|
|
- List<FwqStatisticsBean> timesList = fwqStatisticsDao.selectCheckedTimes(obj);
|
|
|
+ List<FwqStatisticsBean> timesList = qzdStatisticsDao.selectCheckedTimes(obj);
|
|
|
|
|
|
Map<Long, FwqStatisticsBo> statisticBoMap = new HashMap<>();
|
|
|
|
|
|
@@ -755,7 +755,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
|
|
|
@Override
|
|
|
public List<FwqStatisticsBean> getYearScoreChange(FwqStatisticsBean obj) {
|
|
|
- List<FwqStatisticsBean> list = fwqStatisticsDao.selectYearScoreInfo(obj);
|
|
|
+ List<FwqStatisticsBean> list = qzdStatisticsDao.selectYearScoreInfo(obj);
|
|
|
return list;
|
|
|
|
|
|
}
|
|
|
@@ -789,7 +789,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
}
|
|
|
|
|
|
// 检查次数
|
|
|
- List<FwqStatisticsBean> listCheckNum = fwqStatisticsDao.selectFeeStationCheckNum(obj);
|
|
|
+ List<FwqStatisticsBean> listCheckNum = qzdStatisticsDao.selectFeeStationCheckNum(obj);
|
|
|
for (FwqStatisticsBean sta : listCheckNum) {
|
|
|
if (mapStationInfos.containsKey(sta.getDept_id())) {
|
|
|
mapStationInfos.get(sta.getDept_id()).setChecked_num(sta.getChecked_num());
|
|
|
@@ -802,7 +802,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
listmap.put(b.getDept_id().intValue(), b);
|
|
|
}
|
|
|
|
|
|
- List<FwqStatisticsBean> listCheckedScore = fwqStatisticsDao.selectFeeStationCheckedScore(obj);
|
|
|
+ List<FwqStatisticsBean> listCheckedScore = qzdStatisticsDao.selectFeeStationCheckedScore(obj);
|
|
|
for (FwqStatisticsBean sta : listCheckedScore) {
|
|
|
if (mapStationInfos.containsKey(sta.getDept_id())) {
|
|
|
|
|
|
@@ -940,7 +940,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
|
|
|
@Override
|
|
|
public List<FwqStatisticsBean> getCheckedItemScoreInfo(FwqStatisticsBean obj) {
|
|
|
- List<FwqStatisticsBean> list = fwqStatisticsDao.selectCheckedItemScoreInfo(obj);
|
|
|
+ List<FwqStatisticsBean> list = qzdStatisticsDao.selectCheckedItemScoreInfo(obj);
|
|
|
Map<Long, Item> itemMap = commonService.getItemMap();
|
|
|
Map<Long, Organ> deptMap = commonService.getDeptMap();
|
|
|
for (FwqStatisticsBean sta : list) {
|
|
|
@@ -965,7 +965,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
public Map<String, List<FwqStatisticsBean>> get2CheckedItemScoreInfo(FwqStatisticsBean obj) {
|
|
|
|
|
|
Map<String, List<FwqStatisticsBean>> map = new HashMap<>();
|
|
|
- List<FwqStatisticsBean> objList = fwqStatisticsDao.selectCheckedItemScoreInfo(obj);
|
|
|
+ List<FwqStatisticsBean> objList = qzdStatisticsDao.selectCheckedItemScoreInfo(obj);
|
|
|
Map<Long, Item> itemMap = commonService.getItemMap();
|
|
|
Map<Long, Organ> deptMap = commonService.getDeptMap();
|
|
|
for (FwqStatisticsBean sta : objList) {
|
|
|
@@ -987,7 +987,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
|
|
|
map.put("Tmth", objList);
|
|
|
obj.setMth(obj.getPrev_mth());
|
|
|
- objList = fwqStatisticsDao.selectCheckedItemScoreInfo(obj);
|
|
|
+ objList = qzdStatisticsDao.selectCheckedItemScoreInfo(obj);
|
|
|
|
|
|
for (FwqStatisticsBean sta : objList) {
|
|
|
sta.setItem_id(itemMap.get(sta.getCheck_item_id().longValue()).getParent_id().intValue());
|
|
|
@@ -1047,7 +1047,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy.MM");
|
|
|
//获取满足条件的服务区
|
|
|
- List<ServiceAreaStatistic> fwqStatistics = fwqStatisticsDao.selectlimituser(obj);
|
|
|
+ List<ServiceAreaStatistic> fwqStatistics = qzdStatisticsDao.selectlimituser(obj);
|
|
|
|
|
|
HashMap<Integer, List<ServiceAreaStatistic>> usm = new HashMap<>();
|
|
|
|
|
|
@@ -1116,7 +1116,7 @@ public class StatisticsServiceImpl implements StatisticsService_F {
|
|
|
}
|
|
|
|
|
|
private List<FwqStatisticsBean> reFeeStationScoreInfo(FwqStatisticsBean obj) {
|
|
|
- List<FwqStatisticsBean> scoreList = fwqStatisticsDao.selectFeeStationScoreInfo(obj);
|
|
|
+ List<FwqStatisticsBean> scoreList = qzdStatisticsDao.selectFeeStationScoreInfo(obj);
|
|
|
Map<Long, FwqStatisticsBean> feeStationMap = new HashMap<>();
|
|
|
|
|
|
for (FwqStatisticsBean feeObj : scoreList) {
|