添加接口
This commit is contained in:
parent
3f08e8b117
commit
1f0f8841ce
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.ruoyi.task.api.domain;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 按年月统计任务DTO
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-03-09
|
||||||
|
*/
|
||||||
|
public class TaskStatByMonthDTO {
|
||||||
|
|
||||||
|
/** 总数 */
|
||||||
|
private Integer total;
|
||||||
|
|
||||||
|
/** 每日统计 key:日期(1-31) value:任务数量 */
|
||||||
|
private Map<Integer, Integer> days;
|
||||||
|
|
||||||
|
public Integer getTotal() {
|
||||||
|
return total;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTotal(Integer total) {
|
||||||
|
this.total = total;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<Integer, Integer> getDays() {
|
||||||
|
return days;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDays(Map<Integer, Integer> days) {
|
||||||
|
this.days = days;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.ruoyi.task.api.domain;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 按年统计任务DTO
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-03-09
|
||||||
|
*/
|
||||||
|
public class TaskStatByYearDTO {
|
||||||
|
|
||||||
|
/** 总数 */
|
||||||
|
private Integer total;
|
||||||
|
|
||||||
|
/** 每月统计 key:月份(1-12) value:任务数量 */
|
||||||
|
private Map<Integer, Integer> months;
|
||||||
|
|
||||||
|
public Integer getTotal() {
|
||||||
|
return total;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTotal(Integer total) {
|
||||||
|
this.total = total;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<Integer, Integer> getMonths() {
|
||||||
|
return months;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMonths(Map<Integer, Integer> months) {
|
||||||
|
this.months = months;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,91 @@
|
||||||
|
package com.ruoyi.task.api.domain;
|
||||||
|
|
||||||
|
import com.ruoyi.task.api.enums.StatusEnum;
|
||||||
|
import com.ruoyi.task.api.enums.TaskCategoryEnum;
|
||||||
|
import com.ruoyi.task.api.enums.TaskTypeEnum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务统计查询DTO
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-03-09
|
||||||
|
*/
|
||||||
|
public class TaskStatQueryVO {
|
||||||
|
|
||||||
|
/** 年份 */
|
||||||
|
private Integer year;
|
||||||
|
|
||||||
|
/** 月份 */
|
||||||
|
private Integer month;
|
||||||
|
|
||||||
|
/** 任务类别 */
|
||||||
|
private TaskCategoryEnum taskCategory;
|
||||||
|
|
||||||
|
/** 任务类型 */
|
||||||
|
private TaskTypeEnum taskType;
|
||||||
|
|
||||||
|
/** 状态 */
|
||||||
|
private StatusEnum status;
|
||||||
|
|
||||||
|
/** 航线ID */
|
||||||
|
private Long routeId;
|
||||||
|
|
||||||
|
/** 无人机ID */
|
||||||
|
private String uavId;
|
||||||
|
|
||||||
|
public Integer getYear() {
|
||||||
|
return year;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setYear(Integer year) {
|
||||||
|
this.year = year;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getMonth() {
|
||||||
|
return month;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMonth(Integer month) {
|
||||||
|
this.month = month;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskCategoryEnum getTaskCategory() {
|
||||||
|
return taskCategory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskCategory(TaskCategoryEnum taskCategory) {
|
||||||
|
this.taskCategory = taskCategory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskTypeEnum getTaskType() {
|
||||||
|
return taskType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskType(TaskTypeEnum taskType) {
|
||||||
|
this.taskType = taskType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public StatusEnum getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(StatusEnum status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getRouteId() {
|
||||||
|
return routeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRouteId(Long routeId) {
|
||||||
|
this.routeId = routeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUavId() {
|
||||||
|
return uavId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUavId(String uavId) {
|
||||||
|
this.uavId = uavId;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue