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);
}
}

View File

@@ -0,0 +1,255 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.mill.mapper.MillProductionActualMapper">
<resultMap type="MillProductionActual" id="MillProductionActualResult">
<result property="actualId" column="actual_id" />
<result property="exitMatId" column="exit_mat_id" />
<result property="entryMatId" column="entry_mat_id" />
<result property="subId" column="sub_id" />
<result property="startPosition" column="start_position" />
<result property="endPosition" column="end_position" />
<result property="planId" column="plan_id" />
<result property="planNo" column="plan_no" />
<result property="prodCode" column="prod_code" />
<result property="groupNo" column="group_no" />
<result property="shiftNo" column="shift_no" />
<result property="status" column="status" />
<result property="steelGrade" column="steel_grade" />
<result property="entryThick" column="entry_thick" />
<result property="entryWidth" column="entry_width" />
<result property="entryLength" column="entry_length" />
<result property="entryWeight" column="entry_weight" />
<result property="weightTop" column="weight_top" />
<result property="weightBottom" column="weight_bottom" />
<result property="exitLength" column="exit_length" />
<result property="exitNetWeight" column="exit_net_weight" />
<result property="theoryWeight" column="theory_weight" />
<result property="actualWeight" column="actual_weight" />
<result property="exitOuterDiameter" column="exit_outer_diameter" />
<result property="exitThickness" column="exit_thickness" />
<result property="exitWidth" column="exit_width" />
<result property="customer" column="customer" />
<result property="onlineTime" column="online_time" />
<result property="startTime" column="start_time" />
<result property="endTime" column="end_time" />
<result property="unitCode" column="unit_code" />
<result property="processCode" column="process_code" />
<result property="lastFlag" column="last_flag" />
<result property="separateFlag" column="separate_flag" />
<result property="planOrigin" column="plan_origin" />
<result property="zincCoatingThickness" column="zinc_coating_thickness" />
<result property="enterCoilNo" column="enter_coil_no" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectMillProductionActualVo">
select actual_id, exit_mat_id, entry_mat_id, sub_id, start_position, end_position, plan_id, plan_no, prod_code, group_no, shift_no, status, steel_grade, entry_thick, entry_width, entry_length, entry_weight, weight_top, weight_bottom, exit_length, exit_net_weight, theory_weight, actual_weight, exit_outer_diameter, exit_thickness, exit_width, customer, online_time, start_time, end_time, unit_code, process_code, last_flag, separate_flag, plan_origin, zinc_coating_thickness, enter_coil_no, create_by, create_time, update_by, update_time, remark, del_flag from mill_production_actual
</sql>
<select id="selectMillProductionActualList" parameterType="MillProductionActual" resultMap="MillProductionActualResult">
<include refid="selectMillProductionActualVo"/>
<where>
<if test="exitMatId != null and exitMatId != ''"> and exit_mat_id = #{exitMatId}</if>
<if test="entryMatId != null and entryMatId != ''"> and entry_mat_id = #{entryMatId}</if>
<if test="subId != null "> and sub_id = #{subId}</if>
<if test="startPosition != null "> and start_position = #{startPosition}</if>
<if test="endPosition != null "> and end_position = #{endPosition}</if>
<if test="planId != null "> and plan_id = #{planId}</if>
<if test="planNo != null and planNo != ''"> and plan_no = #{planNo}</if>
<if test="prodCode != null and prodCode != ''"> and prod_code = #{prodCode}</if>
<if test="groupNo != null and groupNo != ''"> and group_no = #{groupNo}</if>
<if test="shiftNo != null and shiftNo != ''"> and shift_no = #{shiftNo}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="steelGrade != null and steelGrade != ''"> and steel_grade = #{steelGrade}</if>
<if test="entryThick != null "> and entry_thick = #{entryThick}</if>
<if test="entryWidth != null "> and entry_width = #{entryWidth}</if>
<if test="entryLength != null "> and entry_length = #{entryLength}</if>
<if test="entryWeight != null "> and entry_weight = #{entryWeight}</if>
<if test="weightTop != null "> and weight_top = #{weightTop}</if>
<if test="weightBottom != null "> and weight_bottom = #{weightBottom}</if>
<if test="exitLength != null "> and exit_length = #{exitLength}</if>
<if test="exitNetWeight != null "> and exit_net_weight = #{exitNetWeight}</if>
<if test="theoryWeight != null "> and theory_weight = #{theoryWeight}</if>
<if test="actualWeight != null "> and actual_weight = #{actualWeight}</if>
<if test="exitOuterDiameter != null "> and exit_outer_diameter = #{exitOuterDiameter}</if>
<if test="exitThickness != null "> and exit_thickness = #{exitThickness}</if>
<if test="exitWidth != null "> and exit_width = #{exitWidth}</if>
<if test="customer != null and customer != ''"> and customer = #{customer}</if>
<if test="onlineTime != null "> and online_time = #{onlineTime}</if>
<if test="startTime != null "> and start_time = #{startTime}</if>
<if test="endTime != null "> and end_time = #{endTime}</if>
<if test="unitCode != null and unitCode != ''"> and unit_code = #{unitCode}</if>
<if test="processCode != null and processCode != ''"> and process_code = #{processCode}</if>
<if test="lastFlag != null "> and last_flag = #{lastFlag}</if>
<if test="separateFlag != null "> and separate_flag = #{separateFlag}</if>
<if test="planOrigin != null and planOrigin != ''"> and plan_origin = #{planOrigin}</if>
<if test="zincCoatingThickness != null "> and zinc_coating_thickness = #{zincCoatingThickness}</if>
<if test="enterCoilNo != null and enterCoilNo != ''"> and enter_coil_no = #{enterCoilNo}</if>
</where>
</select>
<select id="selectMillProductionActualByActualId" parameterType="Long" resultMap="MillProductionActualResult">
<include refid="selectMillProductionActualVo"/>
where actual_id = #{actualId}
</select>
<insert id="insertMillProductionActual" parameterType="MillProductionActual" useGeneratedKeys="true" keyProperty="actualId">
insert into mill_production_actual
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="exitMatId != null">exit_mat_id,</if>
<if test="entryMatId != null">entry_mat_id,</if>
<if test="subId != null">sub_id,</if>
<if test="startPosition != null">start_position,</if>
<if test="endPosition != null">end_position,</if>
<if test="planId != null">plan_id,</if>
<if test="planNo != null">plan_no,</if>
<if test="prodCode != null">prod_code,</if>
<if test="groupNo != null">group_no,</if>
<if test="shiftNo != null">shift_no,</if>
<if test="status != null">status,</if>
<if test="steelGrade != null">steel_grade,</if>
<if test="entryThick != null">entry_thick,</if>
<if test="entryWidth != null">entry_width,</if>
<if test="entryLength != null">entry_length,</if>
<if test="entryWeight != null">entry_weight,</if>
<if test="weightTop != null">weight_top,</if>
<if test="weightBottom != null">weight_bottom,</if>
<if test="exitLength != null">exit_length,</if>
<if test="exitNetWeight != null">exit_net_weight,</if>
<if test="theoryWeight != null">theory_weight,</if>
<if test="actualWeight != null">actual_weight,</if>
<if test="exitOuterDiameter != null">exit_outer_diameter,</if>
<if test="exitThickness != null">exit_thickness,</if>
<if test="exitWidth != null">exit_width,</if>
<if test="customer != null">customer,</if>
<if test="onlineTime != null">online_time,</if>
<if test="startTime != null">start_time,</if>
<if test="endTime != null">end_time,</if>
<if test="unitCode != null">unit_code,</if>
<if test="processCode != null">process_code,</if>
<if test="lastFlag != null">last_flag,</if>
<if test="separateFlag != null">separate_flag,</if>
<if test="planOrigin != null">plan_origin,</if>
<if test="zincCoatingThickness != null">zinc_coating_thickness,</if>
<if test="enterCoilNo != null">enter_coil_no,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="delFlag != null">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="exitMatId != null">#{exitMatId},</if>
<if test="entryMatId != null">#{entryMatId},</if>
<if test="subId != null">#{subId},</if>
<if test="startPosition != null">#{startPosition},</if>
<if test="endPosition != null">#{endPosition},</if>
<if test="planId != null">#{planId},</if>
<if test="planNo != null">#{planNo},</if>
<if test="prodCode != null">#{prodCode},</if>
<if test="groupNo != null">#{groupNo},</if>
<if test="shiftNo != null">#{shiftNo},</if>
<if test="status != null">#{status},</if>
<if test="steelGrade != null">#{steelGrade},</if>
<if test="entryThick != null">#{entryThick},</if>
<if test="entryWidth != null">#{entryWidth},</if>
<if test="entryLength != null">#{entryLength},</if>
<if test="entryWeight != null">#{entryWeight},</if>
<if test="weightTop != null">#{weightTop},</if>
<if test="weightBottom != null">#{weightBottom},</if>
<if test="exitLength != null">#{exitLength},</if>
<if test="exitNetWeight != null">#{exitNetWeight},</if>
<if test="theoryWeight != null">#{theoryWeight},</if>
<if test="actualWeight != null">#{actualWeight},</if>
<if test="exitOuterDiameter != null">#{exitOuterDiameter},</if>
<if test="exitThickness != null">#{exitThickness},</if>
<if test="exitWidth != null">#{exitWidth},</if>
<if test="customer != null">#{customer},</if>
<if test="onlineTime != null">#{onlineTime},</if>
<if test="startTime != null">#{startTime},</if>
<if test="endTime != null">#{endTime},</if>
<if test="unitCode != null">#{unitCode},</if>
<if test="processCode != null">#{processCode},</if>
<if test="lastFlag != null">#{lastFlag},</if>
<if test="separateFlag != null">#{separateFlag},</if>
<if test="planOrigin != null">#{planOrigin},</if>
<if test="zincCoatingThickness != null">#{zincCoatingThickness},</if>
<if test="enterCoilNo != null">#{enterCoilNo},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="delFlag != null">#{delFlag},</if>
</trim>
</insert>
<update id="updateMillProductionActual" parameterType="MillProductionActual">
update mill_production_actual
<trim prefix="SET" suffixOverrides=",">
<if test="exitMatId != null">exit_mat_id = #{exitMatId},</if>
<if test="entryMatId != null">entry_mat_id = #{entryMatId},</if>
<if test="subId != null">sub_id = #{subId},</if>
<if test="startPosition != null">start_position = #{startPosition},</if>
<if test="endPosition != null">end_position = #{endPosition},</if>
<if test="planId != null">plan_id = #{planId},</if>
<if test="planNo != null">plan_no = #{planNo},</if>
<if test="prodCode != null">prod_code = #{prodCode},</if>
<if test="groupNo != null">group_no = #{groupNo},</if>
<if test="shiftNo != null">shift_no = #{shiftNo},</if>
<if test="status != null">status = #{status},</if>
<if test="steelGrade != null">steel_grade = #{steelGrade},</if>
<if test="entryThick != null">entry_thick = #{entryThick},</if>
<if test="entryWidth != null">entry_width = #{entryWidth},</if>
<if test="entryLength != null">entry_length = #{entryLength},</if>
<if test="entryWeight != null">entry_weight = #{entryWeight},</if>
<if test="weightTop != null">weight_top = #{weightTop},</if>
<if test="weightBottom != null">weight_bottom = #{weightBottom},</if>
<if test="exitLength != null">exit_length = #{exitLength},</if>
<if test="exitNetWeight != null">exit_net_weight = #{exitNetWeight},</if>
<if test="theoryWeight != null">theory_weight = #{theoryWeight},</if>
<if test="actualWeight != null">actual_weight = #{actualWeight},</if>
<if test="exitOuterDiameter != null">exit_outer_diameter = #{exitOuterDiameter},</if>
<if test="exitThickness != null">exit_thickness = #{exitThickness},</if>
<if test="exitWidth != null">exit_width = #{exitWidth},</if>
<if test="customer != null">customer = #{customer},</if>
<if test="onlineTime != null">online_time = #{onlineTime},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="endTime != null">end_time = #{endTime},</if>
<if test="unitCode != null">unit_code = #{unitCode},</if>
<if test="processCode != null">process_code = #{processCode},</if>
<if test="lastFlag != null">last_flag = #{lastFlag},</if>
<if test="separateFlag != null">separate_flag = #{separateFlag},</if>
<if test="planOrigin != null">plan_origin = #{planOrigin},</if>
<if test="zincCoatingThickness != null">zinc_coating_thickness = #{zincCoatingThickness},</if>
<if test="enterCoilNo != null">enter_coil_no = #{enterCoilNo},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
</trim>
where actual_id = #{actualId}
</update>
<delete id="deleteMillProductionActualByActualId" parameterType="Long">
delete from mill_production_actual where actual_id = #{actualId}
</delete>
<delete id="deleteMillProductionActualByActualIds" parameterType="String">
delete from mill_production_actual where actual_id in
<foreach item="actualId" collection="array" open="(" separator="," close=")">
#{actualId}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.mill.mapper.MillProductionStopMapper">
<resultMap type="MillProductionStop" id="MillProductionStopResult">
<result property="stopId" column="stop_id" />
<result property="coilId" column="coil_id" />
<result property="shift" column="shift" />
<result property="crew" column="crew" />
<result property="area" column="area" />
<result property="unit" column="unit" />
<result property="setOn" column="set_on" />
<result property="startDate" column="start_date" />
<result property="endDate" column="end_date" />
<result property="duration" column="duration" />
<result property="insDate" column="ins_date" />
<result property="stopType" column="stop_type" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectMillProductionStopVo">
select stop_id, coil_id, shift, crew, area, unit, set_on, start_date, end_date, duration, ins_date, stop_type, create_by, create_time, update_by, update_time, remark, del_flag from mill_production_stop
</sql>
<select id="selectMillProductionStopList" parameterType="MillProductionStop" resultMap="MillProductionStopResult">
<include refid="selectMillProductionStopVo"/>
<where>
<if test="coilId != null and coilId != ''"> and coil_id = #{coilId}</if>
<if test="shift != null and shift != ''"> and shift = #{shift}</if>
<if test="crew != null and crew != ''"> and crew = #{crew}</if>
<if test="area != null and area != ''"> and area = #{area}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="setOn != null and setOn != ''"> and set_on = #{setOn}</if>
<if test="startDate != null "> and start_date = #{startDate}</if>
<if test="endDate != null "> and end_date = #{endDate}</if>
<if test="duration != null "> and duration = #{duration}</if>
<if test="insDate != null "> and ins_date = #{insDate}</if>
<if test="stopType != null and stopType != ''"> and stop_type = #{stopType}</if>
</where>
</select>
<select id="selectMillProductionStopByStopId" parameterType="Long" resultMap="MillProductionStopResult">
<include refid="selectMillProductionStopVo"/>
where stop_id = #{stopId}
</select>
<insert id="insertMillProductionStop" parameterType="MillProductionStop" useGeneratedKeys="true" keyProperty="stopId">
insert into mill_production_stop
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="coilId != null">coil_id,</if>
<if test="shift != null">shift,</if>
<if test="crew != null">crew,</if>
<if test="area != null">area,</if>
<if test="unit != null">unit,</if>
<if test="setOn != null">set_on,</if>
<if test="startDate != null">start_date,</if>
<if test="endDate != null">end_date,</if>
<if test="duration != null">duration,</if>
<if test="insDate != null">ins_date,</if>
<if test="stopType != null">stop_type,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="delFlag != null">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="coilId != null">#{coilId},</if>
<if test="shift != null">#{shift},</if>
<if test="crew != null">#{crew},</if>
<if test="area != null">#{area},</if>
<if test="unit != null">#{unit},</if>
<if test="setOn != null">#{setOn},</if>
<if test="startDate != null">#{startDate},</if>
<if test="endDate != null">#{endDate},</if>
<if test="duration != null">#{duration},</if>
<if test="insDate != null">#{insDate},</if>
<if test="stopType != null">#{stopType},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="delFlag != null">#{delFlag},</if>
</trim>
</insert>
<update id="updateMillProductionStop" parameterType="MillProductionStop">
update mill_production_stop
<trim prefix="SET" suffixOverrides=",">
<if test="coilId != null">coil_id = #{coilId},</if>
<if test="shift != null">shift = #{shift},</if>
<if test="crew != null">crew = #{crew},</if>
<if test="area != null">area = #{area},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="setOn != null">set_on = #{setOn},</if>
<if test="startDate != null">start_date = #{startDate},</if>
<if test="endDate != null">end_date = #{endDate},</if>
<if test="duration != null">duration = #{duration},</if>
<if test="insDate != null">ins_date = #{insDate},</if>
<if test="stopType != null">stop_type = #{stopType},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
</trim>
where stop_id = #{stopId}
</update>
<delete id="deleteMillProductionStopByStopId" parameterType="Long">
delete from mill_production_stop where stop_id = #{stopId}
</delete>
<delete id="deleteMillProductionStopByStopIds" parameterType="String">
delete from mill_production_stop where stop_id in
<foreach item="stopId" collection="array" open="(" separator="," close=")">
#{stopId}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.mill.mapper.MillSystemLogMapper">
<resultMap type="MillSystemLog" id="MillSystemLogResult">
<result property="logId" column="log_id" />
<result property="seqid" column="seqid" />
<result property="timestamp" column="timestamp" />
<result property="module" column="module" />
<result property="logType" column="log_type" />
<result property="logText" column="log_text" />
<result property="status" column="status" />
<result property="confirmTime" column="confirm_time" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectMillSystemLogVo">
select log_id, seqid, timestamp, module, log_type, log_text, status, confirm_time, create_by, create_time, update_by, update_time, remark, del_flag from mill_system_log
</sql>
<select id="selectMillSystemLogList" parameterType="MillSystemLog" resultMap="MillSystemLogResult">
<include refid="selectMillSystemLogVo"/>
<where>
<if test="seqid != null "> and seqid = #{seqid}</if>
<if test="timestamp != null "> and timestamp = #{timestamp}</if>
<if test="module != null and module != ''"> and module = #{module}</if>
<if test="logType != null and logType != ''"> and log_type = #{logType}</if>
<if test="logText != null and logText != ''"> and log_text = #{logText}</if>
<if test="status != null "> and status = #{status}</if>
<if test="confirmTime != null "> and confirm_time = #{confirmTime}</if>
</where>
</select>
<select id="selectMillSystemLogByLogId" parameterType="Long" resultMap="MillSystemLogResult">
<include refid="selectMillSystemLogVo"/>
where log_id = #{logId}
</select>
<insert id="insertMillSystemLog" parameterType="MillSystemLog" useGeneratedKeys="true" keyProperty="logId">
insert into mill_system_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="seqid != null">seqid,</if>
<if test="timestamp != null">timestamp,</if>
<if test="module != null">module,</if>
<if test="logType != null">log_type,</if>
<if test="logText != null">log_text,</if>
<if test="status != null">status,</if>
<if test="confirmTime != null">confirm_time,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="delFlag != null">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="seqid != null">#{seqid},</if>
<if test="timestamp != null">#{timestamp},</if>
<if test="module != null">#{module},</if>
<if test="logType != null">#{logType},</if>
<if test="logText != null">#{logText},</if>
<if test="status != null">#{status},</if>
<if test="confirmTime != null">#{confirmTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="delFlag != null">#{delFlag},</if>
</trim>
</insert>
<update id="updateMillSystemLog" parameterType="MillSystemLog">
update mill_system_log
<trim prefix="SET" suffixOverrides=",">
<if test="seqid != null">seqid = #{seqid},</if>
<if test="timestamp != null">timestamp = #{timestamp},</if>
<if test="module != null">module = #{module},</if>
<if test="logType != null">log_type = #{logType},</if>
<if test="logText != null">log_text = #{logText},</if>
<if test="status != null">status = #{status},</if>
<if test="confirmTime != null">confirm_time = #{confirmTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
</trim>
where log_id = #{logId}
</update>
<delete id="deleteMillSystemLogByLogId" parameterType="Long">
delete from mill_system_log where log_id = #{logId}
</delete>
<delete id="deleteMillSystemLogByLogIds" parameterType="String">
delete from mill_system_log where log_id in
<foreach item="logId" collection="array" open="(" separator="," close=")">
#{logId}
</foreach>
</delete>
</mapper>