|
|
@ -2,6 +2,7 @@ package com.epmet.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.issue.form.IssueJobFromDTO; |
|
|
|
import com.epmet.service.StatsIssueService; |
|
|
|
import lombok.Data; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -35,14 +36,17 @@ public class StatsIssueController { |
|
|
|
statsIssueService.agencyGridIssueStats(); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
@Data |
|
|
|
private static class StatsDate implements Serializable { |
|
|
|
private static final long serialVersionUID = 149723067011918433L; |
|
|
|
private String date; |
|
|
|
} |
|
|
|
@PostMapping("date") |
|
|
|
public Result agencyGridIssueStatsOfDate(@RequestBody StatsDate statsDate) { |
|
|
|
statsIssueService.agencyGridIssueStatsOfDate(DateUtils.parse(statsDate.getDate(), DateUtils.DATE_PATTERN)); |
|
|
|
|
|
|
|
/** |
|
|
|
* 指定日期统计 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/7/1 15:29 |
|
|
|
* @param fromDTO |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
*/ |
|
|
|
@PostMapping("issuestatsofdate") |
|
|
|
public Result agencyGridIssueStatsOfDate(@RequestBody IssueJobFromDTO fromDTO) { |
|
|
|
statsIssueService.agencyGridIssueStatsOfDate(DateUtils.parse(fromDTO.getDate(), DateUtils.DATE_PATTERN)); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
} |
|
|
|