|
@@ -45,8 +45,6 @@ public class ReportController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private IPdmReportAppointmentWeekService pdmReportAppointmentWeekService;
|
|
private IPdmReportAppointmentWeekService pdmReportAppointmentWeekService;
|
|
@Autowired
|
|
@Autowired
|
|
- private IPdmReportIllegalWeekService pdmReportIllegalWeekService;
|
|
|
|
- @Autowired
|
|
|
|
private IPdmReportPlanWeekService pdmReportPlanWeekService;
|
|
private IPdmReportPlanWeekService pdmReportPlanWeekService;
|
|
@Autowired
|
|
@Autowired
|
|
private IPdmReportPlanNextWeekService pdmReportPlanNextWeekService;
|
|
private IPdmReportPlanNextWeekService pdmReportPlanNextWeekService;
|
|
@@ -58,20 +56,24 @@ public class ReportController extends BaseController {
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "日报查询", notes = "日报查询")
|
|
@ApiOperation(value = "日报查询", notes = "日报查询")
|
|
@GetMapping("/day")
|
|
@GetMapping("/day")
|
|
- public ReportDayVO day(String reportDate)
|
|
|
|
|
|
+ public ReportDayVO day(String startDate,String endDate)
|
|
{
|
|
{
|
|
PdmReportIllegalDay pdmReportIllegalDay = new PdmReportIllegalDay();
|
|
PdmReportIllegalDay pdmReportIllegalDay = new PdmReportIllegalDay();
|
|
- pdmReportIllegalDay.setReportDate(reportDate);
|
|
|
|
- List<PdmReportIllegalDay> illegalList = pdmReportIllegalDayService.selectPdmReportIllegalDayList(pdmReportIllegalDay);
|
|
|
|
|
|
+ pdmReportIllegalDay.setStartDate(startDate);
|
|
|
|
+ pdmReportIllegalDay.setEndDate(endDate);
|
|
|
|
+ List<PdmReportIllegalDay> illegalList = pdmReportIllegalDayService.selectIllegalReport(pdmReportIllegalDay);
|
|
PdmReportAppointmentDay pdmReportAppointmentDay = new PdmReportAppointmentDay();
|
|
PdmReportAppointmentDay pdmReportAppointmentDay = new PdmReportAppointmentDay();
|
|
- pdmReportAppointmentDay.setReportDate(reportDate);
|
|
|
|
- List<PdmReportAppointmentDay> appointmentlist = pdmReportAppointmentDayService.selectPdmReportAppointmentDayList(pdmReportAppointmentDay);
|
|
|
|
|
|
+ pdmReportAppointmentDay.setStartDate(startDate);
|
|
|
|
+ pdmReportAppointmentDay.setEndDate(endDate);
|
|
|
|
+ List<PdmReportAppointmentDay> appointmentlist = pdmReportAppointmentDayService.selectAppointmentReport(pdmReportAppointmentDay);
|
|
PdmReportPlanDay pdmReportPlanDay = new PdmReportPlanDay();
|
|
PdmReportPlanDay pdmReportPlanDay = new PdmReportPlanDay();
|
|
- pdmReportPlanDay.setReportDate(reportDate);
|
|
|
|
- List<PdmReportPlanDay> planlist = pdmReportPlanDayService.selectPdmReportPlanDayList(pdmReportPlanDay);
|
|
|
|
|
|
+ pdmReportPlanDay.setStartDate(startDate);
|
|
|
|
+ pdmReportPlanDay.setEndDate(endDate);
|
|
|
|
+ List<PdmReportPlanDay> planlist = pdmReportPlanDayService.selectPlanReport(pdmReportPlanDay);
|
|
PdmReportPlanNextDay nextDay = new PdmReportPlanNextDay();
|
|
PdmReportPlanNextDay nextDay = new PdmReportPlanNextDay();
|
|
- nextDay.setReportDate(DateUtils.getNextDateStr(reportDate,DateUtils.YYYYMMDD,1));
|
|
|
|
- List<PdmReportPlanNextDay> nextDayList = pdmReportPlanNextDayService.selectPdmReportPlanNextDayList(nextDay);
|
|
|
|
|
|
+ nextDay.setStartDate(DateUtils.getNextDateStr(endDate,DateUtils.YYYYMMDD,1));
|
|
|
|
+ nextDay.setEndDate(DateUtils.getNextDateStr(endDate,DateUtils.YYYYMMDD,1));
|
|
|
|
+ List<PdmReportPlanNextDay> nextDayList = pdmReportPlanNextDayService.selectReportPlanNext(nextDay);
|
|
|
|
|
|
ReportDayVO vo = new ReportDayVO();
|
|
ReportDayVO vo = new ReportDayVO();
|
|
vo.setAppointmentList(appointmentlist);
|
|
vo.setAppointmentList(appointmentlist);
|
|
@@ -132,21 +134,24 @@ public class ReportController extends BaseController {
|
|
@GetMapping("/week")
|
|
@GetMapping("/week")
|
|
public ReportDayWeek week(String startDate,String endDate)
|
|
public ReportDayWeek week(String startDate,String endDate)
|
|
{
|
|
{
|
|
- PdmReportIllegalWeek pdmReportIllegal = new PdmReportIllegalWeek();
|
|
|
|
- pdmReportIllegal.setReportDate(startDate);
|
|
|
|
- pdmReportIllegal.setReportEndDate(endDate);
|
|
|
|
- List<PdmReportIllegalWeek> illegalList = pdmReportIllegalWeekService.selectPdmReportIllegalWeekList(pdmReportIllegal);
|
|
|
|
- PdmReportAppointmentWeek pdmReportAppointment = new PdmReportAppointmentWeek();
|
|
|
|
- pdmReportAppointment.setReportDate(startDate);
|
|
|
|
- pdmReportAppointment.setReportEndDate(endDate);
|
|
|
|
- List<PdmReportAppointmentWeek> appointmentlist = pdmReportAppointmentWeekService.selectPdmReportAppointmentWeekList(pdmReportAppointment);
|
|
|
|
- PdmReportPlanWeek pdmReportPlan = new PdmReportPlanWeek();
|
|
|
|
- pdmReportPlan.setReportDate(startDate);
|
|
|
|
- pdmReportPlan.setReportEndDate(endDate);
|
|
|
|
- List<PdmReportPlanWeek> planlist = pdmReportPlanWeekService.selectPdmReportPlanWeekList(pdmReportPlan);
|
|
|
|
- PdmReportPlanNextWeek next = new PdmReportPlanNextWeek();
|
|
|
|
- next.setReportDate(DateUtils.getNextMonday(startDate,DateUtils.YYYYMMDD));
|
|
|
|
- List<PdmReportPlanNextWeek> nextList = pdmReportPlanNextWeekService.selectPdmReportPlanNextWeekList(next);
|
|
|
|
|
|
+ PdmReportIllegalDay pdmReportIllegal = new PdmReportIllegalDay();
|
|
|
|
+ pdmReportIllegal.setStartDate(startDate);
|
|
|
|
+ pdmReportIllegal.setEndDate(endDate);
|
|
|
|
+ List<PdmReportIllegalDay> illegalList = pdmReportIllegalDayService.selectIllegalReport(pdmReportIllegal);
|
|
|
|
+ PdmReportAppointmentDay pdmReportAppointmentDay = new PdmReportAppointmentDay();
|
|
|
|
+ pdmReportAppointmentDay.setStartDate(startDate);
|
|
|
|
+ pdmReportAppointmentDay.setEndDate(endDate);
|
|
|
|
+ List<PdmReportAppointmentDay> appointmentlist = pdmReportAppointmentDayService.selectAppointmentReport(pdmReportAppointmentDay);
|
|
|
|
+ PdmReportPlanDay pdmReportPlanDay = new PdmReportPlanDay();
|
|
|
|
+ pdmReportPlanDay.setStartDate(startDate);
|
|
|
|
+ pdmReportPlanDay.setEndDate(endDate);
|
|
|
|
+ List<PdmReportPlanDay> planlist = pdmReportPlanDayService.selectPlanReport(pdmReportPlanDay);
|
|
|
|
+
|
|
|
|
+ PdmReportPlanNextDay nextDay = new PdmReportPlanNextDay();
|
|
|
|
+ nextDay.setStartDate(DateUtils.getNextMonday(startDate,DateUtils.YYYYMMDD));
|
|
|
|
+ nextDay.setEndDate(DateUtils.getNextSunday(startDate,DateUtils.YYYYMMDD));
|
|
|
|
+ List<PdmReportPlanNextDay> nextList = pdmReportPlanNextDayService.selectReportPlanNext(nextDay);
|
|
|
|
+
|
|
PdmWorkPlanDTO workPlan = new PdmWorkPlanDTO();
|
|
PdmWorkPlanDTO workPlan = new PdmWorkPlanDTO();
|
|
workPlan.setStartDate(DateUtils.getNextMonday(startDate,DateUtils.YYYYMMDD));
|
|
workPlan.setStartDate(DateUtils.getNextMonday(startDate,DateUtils.YYYYMMDD));
|
|
workPlan.setEndDate(DateUtils.getNextSunday(endDate,DateUtils.YYYYMMDD));
|
|
workPlan.setEndDate(DateUtils.getNextSunday(endDate,DateUtils.YYYYMMDD));
|
|
@@ -172,10 +177,10 @@ public class ReportController extends BaseController {
|
|
@PostMapping("/weekExport")
|
|
@PostMapping("/weekExport")
|
|
@ApiOperation(value = "周报导出")
|
|
@ApiOperation(value = "周报导出")
|
|
public void weekExport(HttpServletResponse response,String startDate,String endDate) throws IOException {
|
|
public void weekExport(HttpServletResponse response,String startDate,String endDate) throws IOException {
|
|
- PdmReportIllegalWeek pdmReportIllegal = new PdmReportIllegalWeek();
|
|
|
|
- pdmReportIllegal.setReportDate(startDate);
|
|
|
|
- pdmReportIllegal.setReportEndDate(endDate);
|
|
|
|
- List<PdmReportIllegalWeek> illegalList = pdmReportIllegalWeekService.selectPdmReportIllegalWeekList(pdmReportIllegal);
|
|
|
|
|
|
+ PdmReportIllegalDay pdmReportIllegal = new PdmReportIllegalDay();
|
|
|
|
+ pdmReportIllegal.setStartDate(startDate);
|
|
|
|
+ pdmReportIllegal.setEndDate(endDate);
|
|
|
|
+ List<PdmReportIllegalDay> illegalList = pdmReportIllegalDayService.selectIllegalReport(pdmReportIllegal);
|
|
PdmReportAppointmentWeek pdmReportAppointment = new PdmReportAppointmentWeek();
|
|
PdmReportAppointmentWeek pdmReportAppointment = new PdmReportAppointmentWeek();
|
|
pdmReportAppointment.setReportDate(startDate);
|
|
pdmReportAppointment.setReportDate(startDate);
|
|
pdmReportAppointment.setReportEndDate(endDate);
|
|
pdmReportAppointment.setReportEndDate(endDate);
|