|
@@ -11,6 +11,7 @@ import com.xintong.visualinspection.service.CommonService;
|
|
|
import com.xintong.visualinspection.util.DateUtil;
|
|
import com.xintong.visualinspection.util.DateUtil;
|
|
|
import com.xintong.visualinspection.visuallnspection_qzd.dao.QzdCheckOtherDao;
|
|
import com.xintong.visualinspection.visuallnspection_qzd.dao.QzdCheckOtherDao;
|
|
|
import com.xintong.visualinspection.visuallnspection_qzd.service.CheckOtherService_F;
|
|
import com.xintong.visualinspection.visuallnspection_qzd.service.CheckOtherService_F;
|
|
|
|
|
+import com.xintong.visualinspection.visuallnspection_qzd.service.CheckOtherService_Q;
|
|
|
import org.jxls.common.Context;
|
|
import org.jxls.common.Context;
|
|
|
import org.jxls.util.JxlsHelper;
|
|
import org.jxls.util.JxlsHelper;
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
@@ -40,7 +41,7 @@ import java.util.Map;
|
|
|
* @date 2018/05/02
|
|
* @date 2018/05/02
|
|
|
*/
|
|
*/
|
|
|
@Service
|
|
@Service
|
|
|
-public class CheckOtherService_FImpl implements CheckOtherService_F {
|
|
|
|
|
|
|
+public class CheckOtherService_FImpl implements CheckOtherService_Q {
|
|
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(CheckOtherService_FImpl.class);
|
|
private static final Logger logger = LoggerFactory.getLogger(CheckOtherService_FImpl.class);
|
|
|
|
|
|
|
@@ -127,19 +128,24 @@ public class CheckOtherService_FImpl implements CheckOtherService_F {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 获得所有服务区数据
|
|
|
|
|
- List<FeeStation> saList = commonService.getAllDeptByLayer("SA");
|
|
|
|
|
|
|
+ List<FeeStation> saList = commonService.getAllDeptByLayer("WG");
|
|
|
// 获得所有道管中心数据
|
|
// 获得所有道管中心数据
|
|
|
List<FeeStation> rmList = commonService.getAllDeptByLayer("RM");
|
|
List<FeeStation> rmList = commonService.getAllDeptByLayer("RM");
|
|
|
|
|
|
|
|
int checkType = fwqCheckOther.getCheck_type();
|
|
int checkType = fwqCheckOther.getCheck_type();
|
|
|
- if (checkType == 8 || checkType == 9) {
|
|
|
|
|
- Long id = 26L;
|
|
|
|
|
- if (checkType == 8) {
|
|
|
|
|
- id = 26L;
|
|
|
|
|
|
|
+ if (checkType == 11 || checkType == 12 || checkType == 13 || checkType == 14) {
|
|
|
|
|
+ Long id = 25L;
|
|
|
|
|
+ if (checkType == 11) {
|
|
|
|
|
+ id = 29L;
|
|
|
}
|
|
}
|
|
|
- if (checkType == 9) {
|
|
|
|
|
- id = 27L;
|
|
|
|
|
|
|
+ if (checkType == 12) {
|
|
|
|
|
+ id = 30L;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (checkType == 13) {
|
|
|
|
|
+ id = 31L;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (checkType == 14) {
|
|
|
|
|
+ id = 32L;
|
|
|
}
|
|
}
|
|
|
//获取考核办法对应的考核项
|
|
//获取考核办法对应的考核项
|
|
|
List<String> itemName = commonService.getCheckItemName(id);
|
|
List<String> itemName = commonService.getCheckItemName(id);
|
|
@@ -201,17 +207,23 @@ public class CheckOtherService_FImpl implements CheckOtherService_F {
|
|
|
String title = fwqCheckOther.getCheck_time_name();
|
|
String title = fwqCheckOther.getCheck_time_name();
|
|
|
int checkType = fwqCheckOther.getCheck_type();
|
|
int checkType = fwqCheckOther.getCheck_type();
|
|
|
fwqCheckOther.setCheck_period(title);
|
|
fwqCheckOther.setCheck_period(title);
|
|
|
- if (checkType == 8 || checkType == 9) {
|
|
|
|
|
- Map<String, Object> m = getCheckOtherStatistics(fwqCheckOther);
|
|
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
|
- map.put("datas", m);
|
|
|
|
|
-
|
|
|
|
|
- if (checkType == 8) {
|
|
|
|
|
|
|
+ if (checkType == 11 || checkType == 12 || checkType == 13 || checkType == 14) {
|
|
|
|
|
+ Long id = 25L;
|
|
|
|
|
+ if (checkType == 11) {
|
|
|
|
|
+ title += "月份服务区第三方暗访情况";
|
|
|
|
|
+ }
|
|
|
|
|
+ if (checkType == 12) {
|
|
|
|
|
+ title += "月份服务区第三方暗访情况";
|
|
|
|
|
+ }
|
|
|
|
|
+ if (checkType == 13) {
|
|
|
title += "月份服务区第三方暗访情况";
|
|
title += "月份服务区第三方暗访情况";
|
|
|
}
|
|
}
|
|
|
- if (checkType == 9) {
|
|
|
|
|
- title += "月份服务区现场检查情况";
|
|
|
|
|
|
|
+ if (checkType == 14) {
|
|
|
|
|
+ title += "月份服务区第三方暗访情况";
|
|
|
}
|
|
}
|
|
|
|
|
+ Map<String, Object> m = getCheckOtherStatistics(fwqCheckOther);
|
|
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
|
|
+ map.put("datas", m);
|
|
|
map.put("title", title.replaceAll("/", "-"));
|
|
map.put("title", title.replaceAll("/", "-"));
|
|
|
|
|
|
|
|
exportExcel(title.replaceAll("/", "-"), "fwq_other_check_info_anfang", map, httpServletResponse);
|
|
exportExcel(title.replaceAll("/", "-"), "fwq_other_check_info_anfang", map, httpServletResponse);
|
|
@@ -230,10 +242,14 @@ public class CheckOtherService_FImpl implements CheckOtherService_F {
|
|
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("list", checkOtherList);
|
|
map.put("list", checkOtherList);
|
|
|
- if (fwqCheckOther.getCheck_type() == 8) {
|
|
|
|
|
- exportExcel("服务区第三方暗访稽查", "fwq_third_check", map, resp);
|
|
|
|
|
- } else if (fwqCheckOther.getCheck_type() == 9) {
|
|
|
|
|
- exportExcel("服务区现场稽查", "fwq_duty_check", map, resp);
|
|
|
|
|
|
|
+ if (fwqCheckOther.getCheck_type() == 12) {
|
|
|
|
|
+ exportExcel("清障队第三方暗访稽查", "qzd_third_check", map, resp);
|
|
|
|
|
+ } else if (fwqCheckOther.getCheck_type() == 11) {
|
|
|
|
|
+ exportExcel("清障队现场稽查", "qzd_duty_check", map, resp);
|
|
|
|
|
+ }else if (fwqCheckOther.getCheck_type() == 13) {
|
|
|
|
|
+ exportExcel("清障队96777", "qzd_96777_check", map, resp);
|
|
|
|
|
+ }else if (fwqCheckOther.getCheck_type() == 14) {
|
|
|
|
|
+ exportExcel("清障队其它稽查", "qzd_other_check", map, resp);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|