综合大屏
parent
5a27d83074
commit
3cf649ca92
@ -0,0 +1,17 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.dashboard.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "管理后台 - 首页设备分类统计 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class DeviceTypePieOptionsVO {
|
||||
@Schema(description = "name")
|
||||
private String name;
|
||||
|
||||
|
||||
@Schema(description = "value")
|
||||
private Integer value;
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.plan.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Schema(description = "综合大屏 - 周生产趋势 Resp VO")
|
||||
@Data
|
||||
public class DayCapacityVO {
|
||||
@Schema(description = "orders")
|
||||
private Integer orders;
|
||||
|
||||
@Schema(description = "plan")
|
||||
private Integer plan;
|
||||
|
||||
@Schema(description = "pending")
|
||||
private Integer pending;
|
||||
|
||||
@Schema(description = "rate")
|
||||
private Double rate;
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.plan.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "综合大屏 - 周生产趋势 Resp VO")
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
public class PlanWeekTrendVO {
|
||||
@Schema(description = "X轴")
|
||||
private List<String> weekDays;
|
||||
|
||||
@Schema(description = "计划数量")
|
||||
private List<Integer> weekPlan;
|
||||
|
||||
@Schema(description = "完工数量")
|
||||
private List<Integer> weekReal;
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,65 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.plan.vo;
|
||||
|
||||
/**
|
||||
* 星期枚举 - 简单版
|
||||
* 对应 MySQL DAYOFWEEK() 函数返回值
|
||||
*/
|
||||
public enum WeekDayEnum {
|
||||
|
||||
SUNDAY(1, "周日"),
|
||||
MONDAY(2, "周一"),
|
||||
TUESDAY(3, "周二"),
|
||||
WEDNESDAY(4, "周三"),
|
||||
THURSDAY(5, "周四"),
|
||||
FRIDAY(6, "周五"),
|
||||
SATURDAY(7, "周六");
|
||||
|
||||
private final int code;
|
||||
private final String name;
|
||||
|
||||
// 静态映射表
|
||||
private static final WeekDayEnum[] VALUES = values();
|
||||
|
||||
WeekDayEnum(int code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据 DAYOFWEEK() 返回值获取星期名称
|
||||
*/
|
||||
public static String getNameByCode(int code) {
|
||||
for (WeekDayEnum day : VALUES) {
|
||||
if (day.code == code) {
|
||||
return day.name;
|
||||
}
|
||||
}
|
||||
return "未知";
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据 DAYOFWEEK() 返回值获取枚举
|
||||
*/
|
||||
public static WeekDayEnum getByCode(int code) {
|
||||
for (WeekDayEnum day : VALUES) {
|
||||
if (day.code == code) {
|
||||
return day;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return name;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue