|
@@ -15,8 +15,10 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
+import com.xintong.visualinspection.bean.CheckAppealStatistic;
|
|
|
import com.xintong.visualinspection.bean.StatisticsBean;
|
|
import com.xintong.visualinspection.bean.StatisticsBean;
|
|
|
import com.xintong.visualinspection.service.StatisticsService;
|
|
import com.xintong.visualinspection.service.StatisticsService;
|
|
|
|
|
+import com.xintong.visualinspection.util.DateUtil;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 文件名:StatisticsController
|
|
* 文件名:StatisticsController
|
|
@@ -42,18 +44,15 @@ public class FileExcelController extends BaseController {
|
|
|
@RequestParam String start_date,@RequestParam String end_date,
|
|
@RequestParam String start_date,@RequestParam String end_date,
|
|
|
@RequestParam String start_score,@RequestParam String end_score){
|
|
@RequestParam String start_score,@RequestParam String end_score){
|
|
|
StatisticsBean obj = new StatisticsBean();
|
|
StatisticsBean obj = new StatisticsBean();
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss" );
|
|
|
|
|
- try {
|
|
|
|
|
- Date start = sdf.parse(start_date);
|
|
|
|
|
- Date end = sdf.parse(end_date);
|
|
|
|
|
- obj.setDept_id(dept_id);
|
|
|
|
|
- obj.setStart_date(start);
|
|
|
|
|
- obj.setEnd_date(end);
|
|
|
|
|
- obj.setStart_score(start_score);
|
|
|
|
|
- obj.setEnd_score(end_score);
|
|
|
|
|
- } catch (ParseException e) {
|
|
|
|
|
- e.printStackTrace();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ Date start = DateUtil.strParseDate(start_date);
|
|
|
|
|
+ Date end = DateUtil.strParseDate(end_date);
|
|
|
|
|
+ obj.setDept_id(dept_id);
|
|
|
|
|
+ obj.setStart_date(start);
|
|
|
|
|
+ obj.setEnd_date(end);
|
|
|
|
|
+ obj.setStart_score(start_score);
|
|
|
|
|
+ obj.setEnd_score(end_score);
|
|
|
|
|
+
|
|
|
statisticsService.getEmployeeCheckedInfo(obj, req, resp);
|
|
statisticsService.getEmployeeCheckedInfo(obj, req, resp);
|
|
|
return super.returnSuccessResult(null);
|
|
return super.returnSuccessResult(null);
|
|
|
}
|
|
}
|
|
@@ -66,16 +65,14 @@ public class FileExcelController extends BaseController {
|
|
|
@RequestMapping(value = "/score/info",method=RequestMethod.GET)
|
|
@RequestMapping(value = "/score/info",method=RequestMethod.GET)
|
|
|
public String getScoreInfo(HttpServletRequest req,HttpServletResponse resp,
|
|
public String getScoreInfo(HttpServletRequest req,HttpServletResponse resp,
|
|
|
@RequestParam String start_date,@RequestParam String end_date){
|
|
@RequestParam String start_date,@RequestParam String end_date){
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss" );
|
|
|
|
|
|
|
+
|
|
|
StatisticsBean obj = new StatisticsBean();
|
|
StatisticsBean obj = new StatisticsBean();
|
|
|
- try {
|
|
|
|
|
- Date start = sdf.parse(start_date);
|
|
|
|
|
- Date end = sdf.parse(end_date);
|
|
|
|
|
- obj.setStart_date(start);
|
|
|
|
|
- obj.setEnd_date(end);
|
|
|
|
|
- } catch (ParseException e) {
|
|
|
|
|
- e.printStackTrace();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ Date start = DateUtil.strParseDate(start_date);
|
|
|
|
|
+ Date end = DateUtil.strParseDate(end_date);
|
|
|
|
|
+ obj.setStart_date(start);
|
|
|
|
|
+ obj.setEnd_date(end);
|
|
|
|
|
+
|
|
|
statisticsService.getFeeStationCheckedScore(obj, req, resp);
|
|
statisticsService.getFeeStationCheckedScore(obj, req, resp);
|
|
|
return super.returnSuccessResult(null);
|
|
return super.returnSuccessResult(null);
|
|
|
}
|
|
}
|
|
@@ -86,17 +83,33 @@ public class FileExcelController extends BaseController {
|
|
|
@RequestMapping(value = "/score/item/info",method=RequestMethod.GET)
|
|
@RequestMapping(value = "/score/item/info",method=RequestMethod.GET)
|
|
|
public String getScoreItemInfo(HttpServletRequest req,HttpServletResponse resp,
|
|
public String getScoreItemInfo(HttpServletRequest req,HttpServletResponse resp,
|
|
|
@RequestParam String start_date,@RequestParam String end_date){
|
|
@RequestParam String start_date,@RequestParam String end_date){
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss" );
|
|
|
|
|
StatisticsBean obj = new StatisticsBean();
|
|
StatisticsBean obj = new StatisticsBean();
|
|
|
- try {
|
|
|
|
|
- Date start = sdf.parse(start_date);
|
|
|
|
|
- Date end = sdf.parse(end_date);
|
|
|
|
|
- obj.setStart_date(start);
|
|
|
|
|
- obj.setEnd_date(end);
|
|
|
|
|
- } catch (ParseException e) {
|
|
|
|
|
- e.printStackTrace();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ Date start = DateUtil.strParseDate(start_date);
|
|
|
|
|
+ Date end = DateUtil.strParseDate(end_date);
|
|
|
|
|
+ obj.setStart_date(start);
|
|
|
|
|
+ obj.setEnd_date(end);
|
|
|
statisticsService.getFeeStationCheckItemScore(obj, req, resp);
|
|
statisticsService.getFeeStationCheckItemScore(obj, req, resp);
|
|
|
return super.returnSuccessResult(null);
|
|
return super.returnSuccessResult(null);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 收费站申诉统计
|
|
|
|
|
+ */
|
|
|
|
|
+ @RequestMapping(value = "/appeal/info",method=RequestMethod.GET)
|
|
|
|
|
+ public String getAppealStatisticExcel(HttpServletRequest req,HttpServletResponse resp,
|
|
|
|
|
+ @RequestParam Integer month,
|
|
|
|
|
+ @RequestParam(required=false) Integer centerId,
|
|
|
|
|
+ @RequestParam(required=false) Integer deptId){
|
|
|
|
|
+ CheckAppealStatistic obj = new CheckAppealStatistic();
|
|
|
|
|
+ if(deptId!=null){
|
|
|
|
|
+ obj.setDept_id(deptId);
|
|
|
|
|
+ }else if(centerId!=null){
|
|
|
|
|
+ obj.setParent_dept_id(centerId);
|
|
|
|
|
+ }
|
|
|
|
|
+ obj.setStart_time(DateUtil.strParseDate("2017-"+(month-1)+"-25 23:00:00"));
|
|
|
|
|
+ obj.setEnd_time(DateUtil.strParseDate("2017-"+month+"-25 23:00:00"));
|
|
|
|
|
+ statisticsService.getExcelAppealInfo(obj,month.toString(), req, resp);
|
|
|
|
|
+ return super.returnSuccessResult(null);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|