feat(mill): 添加轧线生产实绩管理功能

- 创建轧线生产实绩实体类 MillProductionActual,包含成品卷号、来料卷号、厚度、宽度等字段
- 实现轧线生产实绩服务接口 IMillProductionActualService,提供增删改查操作方法
- 开发轧线生产实绩控制器 MillProductionActualController,支持列表查询、新增、修改、删除等功能
- 设计轧线生产实绩数据访问层 MillProductionActualMapper,完成数据库CRUD操作
- 配置MyBatis映射文件 MillProductionActualMapper.xml,实现SQL语句与实体类映射
- 添加轧线生产停机和系统日志的服务接口定义
- 实现权限控制注解,支持导出Excel功能
This commit is contained in:
2026-05-06 11:40:29 +08:00
parent 4fea237b33
commit 10f2f75a3a
18 changed files with 2454 additions and 0 deletions

View File

@@ -0,0 +1,104 @@
package com.ruoyi.mill.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.mill.domain.MillProductionActual;
import com.ruoyi.mill.service.IMillProductionActualService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 轧线生产实绩Controller
*
* @author ruoyi
* @date 2026-05-06
*/
@RestController
@RequestMapping("/mill/actual")
public class MillProductionActualController extends BaseController
{
@Autowired
private IMillProductionActualService millProductionActualService;
/**
* 查询轧线生产实绩列表
*/
@PreAuthorize("@ss.hasPermi('mill:actual:list')")
@GetMapping("/list")
public TableDataInfo list(MillProductionActual millProductionActual)
{
startPage();
List<MillProductionActual> list = millProductionActualService.selectMillProductionActualList(millProductionActual);
return getDataTable(list);
}
/**
* 导出轧线生产实绩列表
*/
@PreAuthorize("@ss.hasPermi('mill:actual:export')")
@Log(title = "轧线生产实绩", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MillProductionActual millProductionActual)
{
List<MillProductionActual> list = millProductionActualService.selectMillProductionActualList(millProductionActual);
ExcelUtil<MillProductionActual> util = new ExcelUtil<MillProductionActual>(MillProductionActual.class);
util.exportExcel(response, list, "轧线生产实绩数据");
}
/**
* 获取轧线生产实绩详细信息
*/
@PreAuthorize("@ss.hasPermi('mill:actual:query')")
@GetMapping(value = "/{actualId}")
public AjaxResult getInfo(@PathVariable("actualId") Long actualId)
{
return success(millProductionActualService.selectMillProductionActualByActualId(actualId));
}
/**
* 新增轧线生产实绩
*/
@PreAuthorize("@ss.hasPermi('mill:actual:add')")
@Log(title = "轧线生产实绩", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MillProductionActual millProductionActual)
{
return toAjax(millProductionActualService.insertMillProductionActual(millProductionActual));
}
/**
* 修改轧线生产实绩
*/
@PreAuthorize("@ss.hasPermi('mill:actual:edit')")
@Log(title = "轧线生产实绩", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MillProductionActual millProductionActual)
{
return toAjax(millProductionActualService.updateMillProductionActual(millProductionActual));
}
/**
* 删除轧线生产实绩
*/
@PreAuthorize("@ss.hasPermi('mill:actual:remove')")
@Log(title = "轧线生产实绩", businessType = BusinessType.DELETE)
@DeleteMapping("/{actualIds}")
public AjaxResult remove(@PathVariable Long[] actualIds)
{
return toAjax(millProductionActualService.deleteMillProductionActualByActualIds(actualIds));
}
}

View File

@@ -0,0 +1,104 @@
package com.ruoyi.mill.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.mill.domain.MillProductionStop;
import com.ruoyi.mill.service.IMillProductionStopService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 轧线生产停机Controller
*
* @author ruoyi
* @date 2026-05-06
*/
@RestController
@RequestMapping("/mill/stop")
public class MillProductionStopController extends BaseController
{
@Autowired
private IMillProductionStopService millProductionStopService;
/**
* 查询轧线生产停机列表
*/
@PreAuthorize("@ss.hasPermi('mill:stop:list')")
@GetMapping("/list")
public TableDataInfo list(MillProductionStop millProductionStop)
{
startPage();
List<MillProductionStop> list = millProductionStopService.selectMillProductionStopList(millProductionStop);
return getDataTable(list);
}
/**
* 导出轧线生产停机列表
*/
@PreAuthorize("@ss.hasPermi('mill:stop:export')")
@Log(title = "轧线生产停机", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MillProductionStop millProductionStop)
{
List<MillProductionStop> list = millProductionStopService.selectMillProductionStopList(millProductionStop);
ExcelUtil<MillProductionStop> util = new ExcelUtil<MillProductionStop>(MillProductionStop.class);
util.exportExcel(response, list, "轧线生产停机数据");
}
/**
* 获取轧线生产停机详细信息
*/
@PreAuthorize("@ss.hasPermi('mill:stop:query')")
@GetMapping(value = "/{stopId}")
public AjaxResult getInfo(@PathVariable("stopId") Long stopId)
{
return success(millProductionStopService.selectMillProductionStopByStopId(stopId));
}
/**
* 新增轧线生产停机
*/
@PreAuthorize("@ss.hasPermi('mill:stop:add')")
@Log(title = "轧线生产停机", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MillProductionStop millProductionStop)
{
return toAjax(millProductionStopService.insertMillProductionStop(millProductionStop));
}
/**
* 修改轧线生产停机
*/
@PreAuthorize("@ss.hasPermi('mill:stop:edit')")
@Log(title = "轧线生产停机", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MillProductionStop millProductionStop)
{
return toAjax(millProductionStopService.updateMillProductionStop(millProductionStop));
}
/**
* 删除轧线生产停机
*/
@PreAuthorize("@ss.hasPermi('mill:stop:remove')")
@Log(title = "轧线生产停机", businessType = BusinessType.DELETE)
@DeleteMapping("/{stopIds}")
public AjaxResult remove(@PathVariable Long[] stopIds)
{
return toAjax(millProductionStopService.deleteMillProductionStopByStopIds(stopIds));
}
}

View File

@@ -0,0 +1,104 @@
package com.ruoyi.mill.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.mill.domain.MillSystemLog;
import com.ruoyi.mill.service.IMillSystemLogService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 轧线系统日志Controller
*
* @author ruoyi
* @date 2026-05-06
*/
@RestController
@RequestMapping("/mill/log")
public class MillSystemLogController extends BaseController
{
@Autowired
private IMillSystemLogService millSystemLogService;
/**
* 查询轧线系统日志列表
*/
@PreAuthorize("@ss.hasPermi('mill:log:list')")
@GetMapping("/list")
public TableDataInfo list(MillSystemLog millSystemLog)
{
startPage();
List<MillSystemLog> list = millSystemLogService.selectMillSystemLogList(millSystemLog);
return getDataTable(list);
}
/**
* 导出轧线系统日志列表
*/
@PreAuthorize("@ss.hasPermi('mill:log:export')")
@Log(title = "轧线系统日志", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MillSystemLog millSystemLog)
{
List<MillSystemLog> list = millSystemLogService.selectMillSystemLogList(millSystemLog);
ExcelUtil<MillSystemLog> util = new ExcelUtil<MillSystemLog>(MillSystemLog.class);
util.exportExcel(response, list, "轧线系统日志数据");
}
/**
* 获取轧线系统日志详细信息
*/
@PreAuthorize("@ss.hasPermi('mill:log:query')")
@GetMapping(value = "/{logId}")
public AjaxResult getInfo(@PathVariable("logId") Long logId)
{
return success(millSystemLogService.selectMillSystemLogByLogId(logId));
}
/**
* 新增轧线系统日志
*/
@PreAuthorize("@ss.hasPermi('mill:log:add')")
@Log(title = "轧线系统日志", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MillSystemLog millSystemLog)
{
return toAjax(millSystemLogService.insertMillSystemLog(millSystemLog));
}
/**
* 修改轧线系统日志
*/
@PreAuthorize("@ss.hasPermi('mill:log:edit')")
@Log(title = "轧线系统日志", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MillSystemLog millSystemLog)
{
return toAjax(millSystemLogService.updateMillSystemLog(millSystemLog));
}
/**
* 删除轧线系统日志
*/
@PreAuthorize("@ss.hasPermi('mill:log:remove')")
@Log(title = "轧线系统日志", businessType = BusinessType.DELETE)
@DeleteMapping("/{logIds}")
public AjaxResult remove(@PathVariable Long[] logIds)
{
return toAjax(millSystemLogService.deleteMillSystemLogByLogIds(logIds));
}
}

View File

@@ -0,0 +1,602 @@
package com.ruoyi.mill.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 轧线生产实绩对象 mill_production_actual
*
* @author ruoyi
* @date 2026-05-06
*/
public class MillProductionActual extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键id */
private Long actualId;
/** 成品卷号 */
@Excel(name = "成品卷号")
private String exitMatId;
/** 来料卷号 */
@Excel(name = "来料卷号")
private String entryMatId;
/** 分切数 */
@Excel(name = "分切数")
private Long subId;
/** 开始位置 */
@Excel(name = "开始位置")
private Long startPosition;
/** 结束位置 */
@Excel(name = "结束位置")
private Long endPosition;
/** 计划id */
@Excel(name = "计划id")
private Long planId;
/** 计划号 */
@Excel(name = "计划号")
private String planNo;
/** 产品类型 */
@Excel(name = "产品类型")
private String prodCode;
/** 班号 */
@Excel(name = "班号")
private String groupNo;
/** 组号 */
@Excel(name = "组号")
private String shiftNo;
/** 状态 */
@Excel(name = "状态")
private String status;
/** 钢种 */
@Excel(name = "钢种")
private String steelGrade;
/** 来料厚度 */
@Excel(name = "来料厚度")
private Long entryThick;
/** 来料宽度 */
@Excel(name = "来料宽度")
private Long entryWidth;
/** 来料长度 */
@Excel(name = "来料长度")
private Long entryLength;
/** 来料重量 */
@Excel(name = "来料重量")
private Long entryWeight;
/** 上表面镀锌量 */
@Excel(name = "上表面镀锌量")
private Long weightTop;
/** 下表面镀锌量 */
@Excel(name = "下表面镀锌量")
private Long weightBottom;
/** 成品长度 */
@Excel(name = "成品长度")
private Long exitLength;
/** 成品带涂料重量 */
@Excel(name = "成品带涂料重量")
private Long exitNetWeight;
/** 理论重量 */
@Excel(name = "理论重量")
private Long theoryWeight;
/** 实际重量 */
@Excel(name = "实际重量")
private Long actualWeight;
/** 成品外径 */
@Excel(name = "成品外径")
private Long exitOuterDiameter;
/** 成品厚度 */
@Excel(name = "成品厚度")
private Long exitThickness;
/** 成品宽度 */
@Excel(name = "成品宽度")
private Long exitWidth;
/** 客户 */
@Excel(name = "客户")
private String customer;
/** 上线时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "上线时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date onlineTime;
/** 开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date startTime;
/** 结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date endTime;
/** 机组号 */
@Excel(name = "机组号")
private String unitCode;
/** 工序号 */
@Excel(name = "工序号")
private String processCode;
/** 是否尾卷 0-否 1-是 */
@Excel(name = "是否尾卷 0-否 1-是")
private Integer lastFlag;
/** 是否分卷 0-否 1-是 */
@Excel(name = "是否分卷 0-否 1-是")
private Integer separateFlag;
/** 计划来源 L3-L3计划 MANUAL-人工 */
@Excel(name = "计划来源 L3-L3计划 MANUAL-人工")
private String planOrigin;
/** 锌层厚度(g/m²) */
@Excel(name = "锌层厚度(g/m²)")
private BigDecimal zincCoatingThickness;
/** 入场钢卷号 */
@Excel(name = "入场钢卷号")
private String enterCoilNo;
/** 删除标志 0-存在 2-删除 */
private String delFlag;
public void setActualId(Long actualId)
{
this.actualId = actualId;
}
public Long getActualId()
{
return actualId;
}
public void setExitMatId(String exitMatId)
{
this.exitMatId = exitMatId;
}
public String getExitMatId()
{
return exitMatId;
}
public void setEntryMatId(String entryMatId)
{
this.entryMatId = entryMatId;
}
public String getEntryMatId()
{
return entryMatId;
}
public void setSubId(Long subId)
{
this.subId = subId;
}
public Long getSubId()
{
return subId;
}
public void setStartPosition(Long startPosition)
{
this.startPosition = startPosition;
}
public Long getStartPosition()
{
return startPosition;
}
public void setEndPosition(Long endPosition)
{
this.endPosition = endPosition;
}
public Long getEndPosition()
{
return endPosition;
}
public void setPlanId(Long planId)
{
this.planId = planId;
}
public Long getPlanId()
{
return planId;
}
public void setPlanNo(String planNo)
{
this.planNo = planNo;
}
public String getPlanNo()
{
return planNo;
}
public void setProdCode(String prodCode)
{
this.prodCode = prodCode;
}
public String getProdCode()
{
return prodCode;
}
public void setGroupNo(String groupNo)
{
this.groupNo = groupNo;
}
public String getGroupNo()
{
return groupNo;
}
public void setShiftNo(String shiftNo)
{
this.shiftNo = shiftNo;
}
public String getShiftNo()
{
return shiftNo;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setSteelGrade(String steelGrade)
{
this.steelGrade = steelGrade;
}
public String getSteelGrade()
{
return steelGrade;
}
public void setEntryThick(Long entryThick)
{
this.entryThick = entryThick;
}
public Long getEntryThick()
{
return entryThick;
}
public void setEntryWidth(Long entryWidth)
{
this.entryWidth = entryWidth;
}
public Long getEntryWidth()
{
return entryWidth;
}
public void setEntryLength(Long entryLength)
{
this.entryLength = entryLength;
}
public Long getEntryLength()
{
return entryLength;
}
public void setEntryWeight(Long entryWeight)
{
this.entryWeight = entryWeight;
}
public Long getEntryWeight()
{
return entryWeight;
}
public void setWeightTop(Long weightTop)
{
this.weightTop = weightTop;
}
public Long getWeightTop()
{
return weightTop;
}
public void setWeightBottom(Long weightBottom)
{
this.weightBottom = weightBottom;
}
public Long getWeightBottom()
{
return weightBottom;
}
public void setExitLength(Long exitLength)
{
this.exitLength = exitLength;
}
public Long getExitLength()
{
return exitLength;
}
public void setExitNetWeight(Long exitNetWeight)
{
this.exitNetWeight = exitNetWeight;
}
public Long getExitNetWeight()
{
return exitNetWeight;
}
public void setTheoryWeight(Long theoryWeight)
{
this.theoryWeight = theoryWeight;
}
public Long getTheoryWeight()
{
return theoryWeight;
}
public void setActualWeight(Long actualWeight)
{
this.actualWeight = actualWeight;
}
public Long getActualWeight()
{
return actualWeight;
}
public void setExitOuterDiameter(Long exitOuterDiameter)
{
this.exitOuterDiameter = exitOuterDiameter;
}
public Long getExitOuterDiameter()
{
return exitOuterDiameter;
}
public void setExitThickness(Long exitThickness)
{
this.exitThickness = exitThickness;
}
public Long getExitThickness()
{
return exitThickness;
}
public void setExitWidth(Long exitWidth)
{
this.exitWidth = exitWidth;
}
public Long getExitWidth()
{
return exitWidth;
}
public void setCustomer(String customer)
{
this.customer = customer;
}
public String getCustomer()
{
return customer;
}
public void setOnlineTime(Date onlineTime)
{
this.onlineTime = onlineTime;
}
public Date getOnlineTime()
{
return onlineTime;
}
public void setStartTime(Date startTime)
{
this.startTime = startTime;
}
public Date getStartTime()
{
return startTime;
}
public void setEndTime(Date endTime)
{
this.endTime = endTime;
}
public Date getEndTime()
{
return endTime;
}
public void setUnitCode(String unitCode)
{
this.unitCode = unitCode;
}
public String getUnitCode()
{
return unitCode;
}
public void setProcessCode(String processCode)
{
this.processCode = processCode;
}
public String getProcessCode()
{
return processCode;
}
public void setLastFlag(Integer lastFlag)
{
this.lastFlag = lastFlag;
}
public Integer getLastFlag()
{
return lastFlag;
}
public void setSeparateFlag(Integer separateFlag)
{
this.separateFlag = separateFlag;
}
public Integer getSeparateFlag()
{
return separateFlag;
}
public void setPlanOrigin(String planOrigin)
{
this.planOrigin = planOrigin;
}
public String getPlanOrigin()
{
return planOrigin;
}
public void setZincCoatingThickness(BigDecimal zincCoatingThickness)
{
this.zincCoatingThickness = zincCoatingThickness;
}
public BigDecimal getZincCoatingThickness()
{
return zincCoatingThickness;
}
public void setEnterCoilNo(String enterCoilNo)
{
this.enterCoilNo = enterCoilNo;
}
public String getEnterCoilNo()
{
return enterCoilNo;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("actualId", getActualId())
.append("exitMatId", getExitMatId())
.append("entryMatId", getEntryMatId())
.append("subId", getSubId())
.append("startPosition", getStartPosition())
.append("endPosition", getEndPosition())
.append("planId", getPlanId())
.append("planNo", getPlanNo())
.append("prodCode", getProdCode())
.append("groupNo", getGroupNo())
.append("shiftNo", getShiftNo())
.append("status", getStatus())
.append("steelGrade", getSteelGrade())
.append("entryThick", getEntryThick())
.append("entryWidth", getEntryWidth())
.append("entryLength", getEntryLength())
.append("entryWeight", getEntryWeight())
.append("weightTop", getWeightTop())
.append("weightBottom", getWeightBottom())
.append("exitLength", getExitLength())
.append("exitNetWeight", getExitNetWeight())
.append("theoryWeight", getTheoryWeight())
.append("actualWeight", getActualWeight())
.append("exitOuterDiameter", getExitOuterDiameter())
.append("exitThickness", getExitThickness())
.append("exitWidth", getExitWidth())
.append("customer", getCustomer())
.append("onlineTime", getOnlineTime())
.append("startTime", getStartTime())
.append("endTime", getEndTime())
.append("unitCode", getUnitCode())
.append("processCode", getProcessCode())
.append("lastFlag", getLastFlag())
.append("separateFlag", getSeparateFlag())
.append("planOrigin", getPlanOrigin())
.append("zincCoatingThickness", getZincCoatingThickness())
.append("enterCoilNo", getEnterCoilNo())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("delFlag", getDelFlag())
.toString();
}
}

View File

@@ -0,0 +1,226 @@
package com.ruoyi.mill.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 轧线生产停机对象 mill_production_stop
*
* @author ruoyi
* @date 2026-05-06
*/
public class MillProductionStop extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键ID */
private Long stopId;
/** 钢卷号 */
@Excel(name = "钢卷号")
private String coilId;
/** 班次 */
@Excel(name = "班次")
private String shift;
/** 班组 */
@Excel(name = "班组")
private String crew;
/** 区域 */
@Excel(name = "区域")
private String area;
/** 机组 */
@Excel(name = "机组")
private String unit;
/** 设置人 */
@Excel(name = "设置人")
private String setOn;
/** 停机开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "停机开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date startDate;
/** 停机结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "停机结束时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date endDate;
/** 停机时长 */
@Excel(name = "停机时长")
private Long duration;
/** 录入时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date insDate;
/** 停机类型 */
@Excel(name = "停机类型")
private String stopType;
/** 删除标志 0-存在 2-删除 */
private String delFlag;
public void setStopId(Long stopId)
{
this.stopId = stopId;
}
public Long getStopId()
{
return stopId;
}
public void setCoilId(String coilId)
{
this.coilId = coilId;
}
public String getCoilId()
{
return coilId;
}
public void setShift(String shift)
{
this.shift = shift;
}
public String getShift()
{
return shift;
}
public void setCrew(String crew)
{
this.crew = crew;
}
public String getCrew()
{
return crew;
}
public void setArea(String area)
{
this.area = area;
}
public String getArea()
{
return area;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public String getUnit()
{
return unit;
}
public void setSetOn(String setOn)
{
this.setOn = setOn;
}
public String getSetOn()
{
return setOn;
}
public void setStartDate(Date startDate)
{
this.startDate = startDate;
}
public Date getStartDate()
{
return startDate;
}
public void setEndDate(Date endDate)
{
this.endDate = endDate;
}
public Date getEndDate()
{
return endDate;
}
public void setDuration(Long duration)
{
this.duration = duration;
}
public Long getDuration()
{
return duration;
}
public void setInsDate(Date insDate)
{
this.insDate = insDate;
}
public Date getInsDate()
{
return insDate;
}
public void setStopType(String stopType)
{
this.stopType = stopType;
}
public String getStopType()
{
return stopType;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("stopId", getStopId())
.append("coilId", getCoilId())
.append("shift", getShift())
.append("crew", getCrew())
.append("area", getArea())
.append("unit", getUnit())
.append("setOn", getSetOn())
.append("startDate", getStartDate())
.append("endDate", getEndDate())
.append("duration", getDuration())
.append("insDate", getInsDate())
.append("stopType", getStopType())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("delFlag", getDelFlag())
.toString();
}
}

View File

@@ -0,0 +1,165 @@
package com.ruoyi.mill.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 轧线系统日志对象 mill_system_log
*
* @author ruoyi
* @date 2026-05-06
*/
public class MillSystemLog extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键ID */
private Long logId;
/** 原始序列号 */
@Excel(name = "原始序列号")
private Long seqid;
/** 日志时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "日志时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date timestamp;
/** 模块名称 */
@Excel(name = "模块名称")
private String module;
/** 日志类型 */
@Excel(name = "日志类型")
private String logType;
/** 日志内容 */
@Excel(name = "日志内容")
private String logText;
/** 日志状态 */
@Excel(name = "日志状态")
private Long status;
/** 确认时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "确认时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date confirmTime;
/** 删除标志 0-存在 2-删除 */
private String delFlag;
public void setLogId(Long logId)
{
this.logId = logId;
}
public Long getLogId()
{
return logId;
}
public void setSeqid(Long seqid)
{
this.seqid = seqid;
}
public Long getSeqid()
{
return seqid;
}
public void setTimestamp(Date timestamp)
{
this.timestamp = timestamp;
}
public Date getTimestamp()
{
return timestamp;
}
public void setModule(String module)
{
this.module = module;
}
public String getModule()
{
return module;
}
public void setLogType(String logType)
{
this.logType = logType;
}
public String getLogType()
{
return logType;
}
public void setLogText(String logText)
{
this.logText = logText;
}
public String getLogText()
{
return logText;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
public void setConfirmTime(Date confirmTime)
{
this.confirmTime = confirmTime;
}
public Date getConfirmTime()
{
return confirmTime;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("logId", getLogId())
.append("seqid", getSeqid())
.append("timestamp", getTimestamp())
.append("module", getModule())
.append("logType", getLogType())
.append("logText", getLogText())
.append("status", getStatus())
.append("confirmTime", getConfirmTime())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("delFlag", getDelFlag())
.toString();
}
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.mill.mapper;
import java.util.List;
import com.ruoyi.mill.domain.MillProductionActual;
/**
* 轧线生产实绩Mapper接口
*
* @author ruoyi
* @date 2026-05-06
*/
public interface MillProductionActualMapper
{
/**
* 查询轧线生产实绩
*
* @param actualId 轧线生产实绩主键
* @return 轧线生产实绩
*/
public MillProductionActual selectMillProductionActualByActualId(Long actualId);
/**
* 查询轧线生产实绩列表
*
* @param millProductionActual 轧线生产实绩
* @return 轧线生产实绩集合
*/
public List<MillProductionActual> selectMillProductionActualList(MillProductionActual millProductionActual);
/**
* 新增轧线生产实绩
*
* @param millProductionActual 轧线生产实绩
* @return 结果
*/
public int insertMillProductionActual(MillProductionActual millProductionActual);
/**
* 修改轧线生产实绩
*
* @param millProductionActual 轧线生产实绩
* @return 结果
*/
public int updateMillProductionActual(MillProductionActual millProductionActual);
/**
* 删除轧线生产实绩
*
* @param actualId 轧线生产实绩主键
* @return 结果
*/
public int deleteMillProductionActualByActualId(Long actualId);
/**
* 批量删除轧线生产实绩
*
* @param actualIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteMillProductionActualByActualIds(Long[] actualIds);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.mill.mapper;
import java.util.List;
import com.ruoyi.mill.domain.MillProductionStop;
/**
* 轧线生产停机Mapper接口
*
* @author ruoyi
* @date 2026-05-06
*/
public interface MillProductionStopMapper
{
/**
* 查询轧线生产停机
*
* @param stopId 轧线生产停机主键
* @return 轧线生产停机
*/
public MillProductionStop selectMillProductionStopByStopId(Long stopId);
/**
* 查询轧线生产停机列表
*
* @param millProductionStop 轧线生产停机
* @return 轧线生产停机集合
*/
public List<MillProductionStop> selectMillProductionStopList(MillProductionStop millProductionStop);
/**
* 新增轧线生产停机
*
* @param millProductionStop 轧线生产停机
* @return 结果
*/
public int insertMillProductionStop(MillProductionStop millProductionStop);
/**
* 修改轧线生产停机
*
* @param millProductionStop 轧线生产停机
* @return 结果
*/
public int updateMillProductionStop(MillProductionStop millProductionStop);
/**
* 删除轧线生产停机
*
* @param stopId 轧线生产停机主键
* @return 结果
*/
public int deleteMillProductionStopByStopId(Long stopId);
/**
* 批量删除轧线生产停机
*
* @param stopIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteMillProductionStopByStopIds(Long[] stopIds);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.mill.mapper;
import java.util.List;
import com.ruoyi.mill.domain.MillSystemLog;
/**
* 轧线系统日志Mapper接口
*
* @author ruoyi
* @date 2026-05-06
*/
public interface MillSystemLogMapper
{
/**
* 查询轧线系统日志
*
* @param logId 轧线系统日志主键
* @return 轧线系统日志
*/
public MillSystemLog selectMillSystemLogByLogId(Long logId);
/**
* 查询轧线系统日志列表
*
* @param millSystemLog 轧线系统日志
* @return 轧线系统日志集合
*/
public List<MillSystemLog> selectMillSystemLogList(MillSystemLog millSystemLog);
/**
* 新增轧线系统日志
*
* @param millSystemLog 轧线系统日志
* @return 结果
*/
public int insertMillSystemLog(MillSystemLog millSystemLog);
/**
* 修改轧线系统日志
*
* @param millSystemLog 轧线系统日志
* @return 结果
*/
public int updateMillSystemLog(MillSystemLog millSystemLog);
/**
* 删除轧线系统日志
*
* @param logId 轧线系统日志主键
* @return 结果
*/
public int deleteMillSystemLogByLogId(Long logId);
/**
* 批量删除轧线系统日志
*
* @param logIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteMillSystemLogByLogIds(Long[] logIds);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.mill.service;
import java.util.List;
import com.ruoyi.mill.domain.MillProductionActual;
/**
* 轧线生产实绩Service接口
*
* @author ruoyi
* @date 2026-05-06
*/
public interface IMillProductionActualService
{
/**
* 查询轧线生产实绩
*
* @param actualId 轧线生产实绩主键
* @return 轧线生产实绩
*/
public MillProductionActual selectMillProductionActualByActualId(Long actualId);
/**
* 查询轧线生产实绩列表
*
* @param millProductionActual 轧线生产实绩
* @return 轧线生产实绩集合
*/
public List<MillProductionActual> selectMillProductionActualList(MillProductionActual millProductionActual);
/**
* 新增轧线生产实绩
*
* @param millProductionActual 轧线生产实绩
* @return 结果
*/
public int insertMillProductionActual(MillProductionActual millProductionActual);
/**
* 修改轧线生产实绩
*
* @param millProductionActual 轧线生产实绩
* @return 结果
*/
public int updateMillProductionActual(MillProductionActual millProductionActual);
/**
* 批量删除轧线生产实绩
*
* @param actualIds 需要删除的轧线生产实绩主键集合
* @return 结果
*/
public int deleteMillProductionActualByActualIds(Long[] actualIds);
/**
* 删除轧线生产实绩信息
*
* @param actualId 轧线生产实绩主键
* @return 结果
*/
public int deleteMillProductionActualByActualId(Long actualId);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.mill.service;
import java.util.List;
import com.ruoyi.mill.domain.MillProductionStop;
/**
* 轧线生产停机Service接口
*
* @author ruoyi
* @date 2026-05-06
*/
public interface IMillProductionStopService
{
/**
* 查询轧线生产停机
*
* @param stopId 轧线生产停机主键
* @return 轧线生产停机
*/
public MillProductionStop selectMillProductionStopByStopId(Long stopId);
/**
* 查询轧线生产停机列表
*
* @param millProductionStop 轧线生产停机
* @return 轧线生产停机集合
*/
public List<MillProductionStop> selectMillProductionStopList(MillProductionStop millProductionStop);
/**
* 新增轧线生产停机
*
* @param millProductionStop 轧线生产停机
* @return 结果
*/
public int insertMillProductionStop(MillProductionStop millProductionStop);
/**
* 修改轧线生产停机
*
* @param millProductionStop 轧线生产停机
* @return 结果
*/
public int updateMillProductionStop(MillProductionStop millProductionStop);
/**
* 批量删除轧线生产停机
*
* @param stopIds 需要删除的轧线生产停机主键集合
* @return 结果
*/
public int deleteMillProductionStopByStopIds(Long[] stopIds);
/**
* 删除轧线生产停机信息
*
* @param stopId 轧线生产停机主键
* @return 结果
*/
public int deleteMillProductionStopByStopId(Long stopId);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.mill.service;
import java.util.List;
import com.ruoyi.mill.domain.MillSystemLog;
/**
* 轧线系统日志Service接口
*
* @author ruoyi
* @date 2026-05-06
*/
public interface IMillSystemLogService
{
/**
* 查询轧线系统日志
*
* @param logId 轧线系统日志主键
* @return 轧线系统日志
*/
public MillSystemLog selectMillSystemLogByLogId(Long logId);
/**
* 查询轧线系统日志列表
*
* @param millSystemLog 轧线系统日志
* @return 轧线系统日志集合
*/
public List<MillSystemLog> selectMillSystemLogList(MillSystemLog millSystemLog);
/**
* 新增轧线系统日志
*
* @param millSystemLog 轧线系统日志
* @return 结果
*/
public int insertMillSystemLog(MillSystemLog millSystemLog);
/**
* 修改轧线系统日志
*
* @param millSystemLog 轧线系统日志
* @return 结果
*/
public int updateMillSystemLog(MillSystemLog millSystemLog);
/**
* 批量删除轧线系统日志
*
* @param logIds 需要删除的轧线系统日志主键集合
* @return 结果
*/
public int deleteMillSystemLogByLogIds(Long[] logIds);
/**
* 删除轧线系统日志信息
*
* @param logId 轧线系统日志主键
* @return 结果
*/
public int deleteMillSystemLogByLogId(Long logId);
}

View File

@@ -0,0 +1,96 @@
package com.ruoyi.mill.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mill.mapper.MillProductionActualMapper;
import com.ruoyi.mill.domain.MillProductionActual;
import com.ruoyi.mill.service.IMillProductionActualService;
/**
* 轧线生产实绩Service业务层处理
*
* @author ruoyi
* @date 2026-05-06
*/
@Service
public class MillProductionActualServiceImpl implements IMillProductionActualService
{
@Autowired
private MillProductionActualMapper millProductionActualMapper;
/**
* 查询轧线生产实绩
*
* @param actualId 轧线生产实绩主键
* @return 轧线生产实绩
*/
@Override
public MillProductionActual selectMillProductionActualByActualId(Long actualId)
{
return millProductionActualMapper.selectMillProductionActualByActualId(actualId);
}
/**
* 查询轧线生产实绩列表
*
* @param millProductionActual 轧线生产实绩
* @return 轧线生产实绩
*/
@Override
public List<MillProductionActual> selectMillProductionActualList(MillProductionActual millProductionActual)
{
return millProductionActualMapper.selectMillProductionActualList(millProductionActual);
}
/**
* 新增轧线生产实绩
*
* @param millProductionActual 轧线生产实绩
* @return 结果
*/
@Override
public int insertMillProductionActual(MillProductionActual millProductionActual)
{
millProductionActual.setCreateTime(DateUtils.getNowDate());
return millProductionActualMapper.insertMillProductionActual(millProductionActual);
}
/**
* 修改轧线生产实绩
*
* @param millProductionActual 轧线生产实绩
* @return 结果
*/
@Override
public int updateMillProductionActual(MillProductionActual millProductionActual)
{
millProductionActual.setUpdateTime(DateUtils.getNowDate());
return millProductionActualMapper.updateMillProductionActual(millProductionActual);
}
/**
* 批量删除轧线生产实绩
*
* @param actualIds 需要删除的轧线生产实绩主键
* @return 结果
*/
@Override
public int deleteMillProductionActualByActualIds(Long[] actualIds)
{
return millProductionActualMapper.deleteMillProductionActualByActualIds(actualIds);
}
/**
* 删除轧线生产实绩信息
*
* @param actualId 轧线生产实绩主键
* @return 结果
*/
@Override
public int deleteMillProductionActualByActualId(Long actualId)
{
return millProductionActualMapper.deleteMillProductionActualByActualId(actualId);
}
}

View File

@@ -0,0 +1,96 @@
package com.ruoyi.mill.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mill.mapper.MillProductionStopMapper;
import com.ruoyi.mill.domain.MillProductionStop;
import com.ruoyi.mill.service.IMillProductionStopService;
/**
* 轧线生产停机Service业务层处理
*
* @author ruoyi
* @date 2026-05-06
*/
@Service
public class MillProductionStopServiceImpl implements IMillProductionStopService
{
@Autowired
private MillProductionStopMapper millProductionStopMapper;
/**
* 查询轧线生产停机
*
* @param stopId 轧线生产停机主键
* @return 轧线生产停机
*/
@Override
public MillProductionStop selectMillProductionStopByStopId(Long stopId)
{
return millProductionStopMapper.selectMillProductionStopByStopId(stopId);
}
/**
* 查询轧线生产停机列表
*
* @param millProductionStop 轧线生产停机
* @return 轧线生产停机
*/
@Override
public List<MillProductionStop> selectMillProductionStopList(MillProductionStop millProductionStop)
{
return millProductionStopMapper.selectMillProductionStopList(millProductionStop);
}
/**
* 新增轧线生产停机
*
* @param millProductionStop 轧线生产停机
* @return 结果
*/
@Override
public int insertMillProductionStop(MillProductionStop millProductionStop)
{
millProductionStop.setCreateTime(DateUtils.getNowDate());
return millProductionStopMapper.insertMillProductionStop(millProductionStop);
}
/**
* 修改轧线生产停机
*
* @param millProductionStop 轧线生产停机
* @return 结果
*/
@Override
public int updateMillProductionStop(MillProductionStop millProductionStop)
{
millProductionStop.setUpdateTime(DateUtils.getNowDate());
return millProductionStopMapper.updateMillProductionStop(millProductionStop);
}
/**
* 批量删除轧线生产停机
*
* @param stopIds 需要删除的轧线生产停机主键
* @return 结果
*/
@Override
public int deleteMillProductionStopByStopIds(Long[] stopIds)
{
return millProductionStopMapper.deleteMillProductionStopByStopIds(stopIds);
}
/**
* 删除轧线生产停机信息
*
* @param stopId 轧线生产停机主键
* @return 结果
*/
@Override
public int deleteMillProductionStopByStopId(Long stopId)
{
return millProductionStopMapper.deleteMillProductionStopByStopId(stopId);
}
}

View File

@@ -0,0 +1,96 @@
package com.ruoyi.mill.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mill.mapper.MillSystemLogMapper;
import com.ruoyi.mill.domain.MillSystemLog;
import com.ruoyi.mill.service.IMillSystemLogService;
/**
* 轧线系统日志Service业务层处理
*
* @author ruoyi
* @date 2026-05-06
*/
@Service
public class MillSystemLogServiceImpl implements IMillSystemLogService
{
@Autowired
private MillSystemLogMapper millSystemLogMapper;
/**
* 查询轧线系统日志
*
* @param logId 轧线系统日志主键
* @return 轧线系统日志
*/
@Override
public MillSystemLog selectMillSystemLogByLogId(Long logId)
{
return millSystemLogMapper.selectMillSystemLogByLogId(logId);
}
/**
* 查询轧线系统日志列表
*
* @param millSystemLog 轧线系统日志
* @return 轧线系统日志
*/
@Override
public List<MillSystemLog> selectMillSystemLogList(MillSystemLog millSystemLog)
{
return millSystemLogMapper.selectMillSystemLogList(millSystemLog);
}
/**
* 新增轧线系统日志
*
* @param millSystemLog 轧线系统日志
* @return 结果
*/
@Override
public int insertMillSystemLog(MillSystemLog millSystemLog)
{
millSystemLog.setCreateTime(DateUtils.getNowDate());
return millSystemLogMapper.insertMillSystemLog(millSystemLog);
}
/**
* 修改轧线系统日志
*
* @param millSystemLog 轧线系统日志
* @return 结果
*/
@Override
public int updateMillSystemLog(MillSystemLog millSystemLog)
{
millSystemLog.setUpdateTime(DateUtils.getNowDate());
return millSystemLogMapper.updateMillSystemLog(millSystemLog);
}
/**
* 批量删除轧线系统日志
*
* @param logIds 需要删除的轧线系统日志主键
* @return 结果
*/
@Override
public int deleteMillSystemLogByLogIds(Long[] logIds)
{
return millSystemLogMapper.deleteMillSystemLogByLogIds(logIds);
}
/**
* 删除轧线系统日志信息
*
* @param logId 轧线系统日志主键
* @return 结果
*/
@Override
public int deleteMillSystemLogByLogId(Long logId)
{
return millSystemLogMapper.deleteMillSystemLogByLogId(logId);
}
}