feat(mes): 新增报工工时、班组作业、在制品跟踪等报表功能
新增以下报表功能: - wipTrackingReport在制品跟踪报表 - reportWorkHour报工工时数据表 - reportTeamWork报工数据表 同时新增相关 VO 类:WorkHourReportVo、TeamWorkReportVo、 WipTrackingReportVo、ProcessProgressVo 用于支撑上述报表功能。 Mapper 层增加对应查询方法及 XML 实现,Controller 增加接口并支持 Excel 导出和防重复提交。hwmom-htk
parent
cdd8502c11
commit
0a75b0a6b4
@ -0,0 +1,89 @@
|
||||
package org.dromara.mes.domain.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 设备利用率报表视图对象
|
||||
*
|
||||
* @author MES
|
||||
* @date 2025-01-20
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class EquipmentUtilizationReportVo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 序号
|
||||
*/
|
||||
@ExcelProperty(value = "序号")
|
||||
private Integer rowNumber;
|
||||
|
||||
/**
|
||||
* 机台编号
|
||||
*/
|
||||
@ExcelProperty(value = "机台编号")
|
||||
private String machineCode;
|
||||
|
||||
/**
|
||||
* 机台名称
|
||||
*/
|
||||
@ExcelProperty(value = "机台名称")
|
||||
private String machineName;
|
||||
|
||||
/**
|
||||
* 车间名称
|
||||
*/
|
||||
@ExcelProperty(value = "车间名称")
|
||||
private String workshopName;
|
||||
|
||||
/**
|
||||
* 总工作时间(小时)
|
||||
*/
|
||||
@ExcelProperty(value = "总工作时间(小时)")
|
||||
private BigDecimal totalWorkHours;
|
||||
|
||||
/**
|
||||
* 实际运行时间(小时)
|
||||
*/
|
||||
@ExcelProperty(value = "实际运行时间(小时)")
|
||||
private BigDecimal actualRunHours;
|
||||
|
||||
/**
|
||||
* 设备利用率(%)
|
||||
*/
|
||||
@ExcelProperty(value = "设备利用率(%)")
|
||||
private BigDecimal utilizationRate;
|
||||
|
||||
/**
|
||||
* 生产数量
|
||||
*/
|
||||
@ExcelProperty(value = "生产数量")
|
||||
private BigDecimal productionAmount;
|
||||
|
||||
/**
|
||||
* 统计日期
|
||||
*/
|
||||
@ExcelProperty(value = "统计日期")
|
||||
private Date statisticsDate;
|
||||
|
||||
/**
|
||||
* 机台状态
|
||||
*/
|
||||
@ExcelProperty(value = "机台状态")
|
||||
private String machineStatus;
|
||||
|
||||
// 非导出字段
|
||||
private Long machineId;
|
||||
private Long workshopId;
|
||||
}
|
||||
|
||||
@ -0,0 +1,103 @@
|
||||
package org.dromara.mes.domain.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 班组作业情况报表VO
|
||||
*
|
||||
* @author MES
|
||||
* @date 2025-01-20
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class TeamWorkReportVo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 班组名称
|
||||
*/
|
||||
@ExcelProperty(value = "班组")
|
||||
private String teamName;
|
||||
|
||||
/**
|
||||
* 工位名称
|
||||
*/
|
||||
@ExcelProperty(value = "工位")
|
||||
private String stationName;
|
||||
|
||||
/**
|
||||
* 操作员姓名
|
||||
*/
|
||||
@ExcelProperty(value = "操作员")
|
||||
private String operatorName;
|
||||
|
||||
/**
|
||||
* 产品名称
|
||||
*/
|
||||
@ExcelProperty(value = "产品")
|
||||
private String productName;
|
||||
|
||||
/**
|
||||
* 工序名称
|
||||
*/
|
||||
@ExcelProperty(value = "工序")
|
||||
private String processName;
|
||||
|
||||
/**
|
||||
* 生产数量
|
||||
*/
|
||||
@ExcelProperty(value = "生产数量")
|
||||
private BigDecimal productionQuantity;
|
||||
|
||||
/**
|
||||
* 合格数量
|
||||
*/
|
||||
@ExcelProperty(value = "合格数量")
|
||||
private BigDecimal qualifiedQuantity;
|
||||
|
||||
/**
|
||||
* 不合格数量
|
||||
*/
|
||||
@ExcelProperty(value = "不合格数量")
|
||||
private BigDecimal unqualifiedQuantity;
|
||||
|
||||
/**
|
||||
* 合格率(%)
|
||||
*/
|
||||
@ExcelProperty(value = "合格率(%)")
|
||||
private BigDecimal qualifiedRate;
|
||||
|
||||
/**
|
||||
* 作业开始时间
|
||||
*/
|
||||
@ExcelProperty(value = "开始时间")
|
||||
private Date startTime;
|
||||
|
||||
/**
|
||||
* 作业结束时间
|
||||
*/
|
||||
@ExcelProperty(value = "结束时间")
|
||||
private Date endTime;
|
||||
|
||||
/**
|
||||
* 作业时长(h)
|
||||
*/
|
||||
@ExcelProperty(value = "作业时长(h)")
|
||||
private BigDecimal workHours;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue