Files
double-rack/ruoyi-mill/src/main/java/com/ruoyi/mill/mapper/MesRollChangeMapper.java
Joshi b09d0a87ad feat(mill): 添加换辊记录管理功能
- 新增换辊记录领域模型 MesRollChange 和 MesRollStandby
- 实现换辊记录服务接口 IMesRollChangeService 和 IMesRollStandbyService
- 添加换辊记录控制器 MesRollChangeController 提供 REST API
- 实现换辊记录数据访问层 MesRollChangeMapper 和映射配置文件
- 添加换辊记录业务逻辑实现类 MesRollChangeServiceImpl
- 实现查询当前在机轧辊和轧辊工作绩效统计功能
- 扩展轧辊信息 Mapper 支持条件更新轧辊状态操作
2026-06-09 14:22:28 +08:00

96 lines
2.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.ruoyi.mill.mapper;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.ruoyi.mill.domain.MesRollChange;
import org.apache.ibatis.annotations.Param;
/**
* 换辊记录Mapper接口
*
* @author ruoyi
* @date 2026-06-09
*/
public interface MesRollChangeMapper
{
/**
* 查询换辊记录
*
* @param changeId 换辊记录主键
* @return 换辊记录
*/
public MesRollChange selectMesRollChangeByChangeId(Long changeId);
/**
* 查询换辊记录列表
*
* @param mesRollChange 换辊记录
* @return 换辊记录集合
*/
public List<MesRollChange> selectMesRollChangeList(MesRollChange mesRollChange);
/**
* 新增换辊记录
*
* @param mesRollChange 换辊记录
* @return 结果
*/
public int insertMesRollChange(MesRollChange mesRollChange);
/**
* 修改换辊记录
*
* @param mesRollChange 换辊记录
* @return 结果
*/
public int updateMesRollChange(MesRollChange mesRollChange);
/**
* 删除换辊记录
*
* @param changeId 换辊记录主键
* @return 结果
*/
public int deleteMesRollChangeByChangeId(Long changeId);
/**
* 批量删除换辊记录
*
* @param changeIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteMesRollChangeByChangeIds(Long[] changeIds);
/**
* 查询指定机架当前各辊位状态(最近一次换辊记录)
*
* @param lineId 产线ID
* @param standNo 机架号
* @return 各辊位编号+辊径+换辊时间
*/
public Map<String, Object> selectCurrentStateByStand(@Param("lineId") Long lineId, @Param("standNo") String standNo);
/**
* 查询指定机架+辊位的最新换辊记录
*
* @param lineId 产线ID
* @param standNo 机架号
* @param posType 辊位类型upperWr/lowerWr/upperBr/lowerBr
* @return 换辊记录
*/
public MesRollChange selectLatestByStandAndPosition(@Param("lineId") Long lineId,
@Param("standNo") String standNo,
@Param("posType") String posType);
/**
* 统计指定时间范围内的钢卷产量(长度/卷数/重量)
*
* @param startTime 起始时间
* @param endTime 结束时间null表示至今
* @return 统计结果: workLength, coilCount, totalWeight
*/
public Map<String, Object> selectCoilStats(@Param("startTime") Date startTime,
@Param("endTime") Date endTime);
}