酸轧数据同步,轧辊新增产线新增各种产线

This commit is contained in:
2026-05-14 15:12:30 +08:00
parent 4a5b9544a4
commit 49561a125e
41 changed files with 2054 additions and 319 deletions

View File

@@ -13,27 +13,30 @@ import java.util.Map;
*/
public interface MesRollChangeMapper extends BaseMapperPlus<MesRollChangeMapper, MesRollChange, MesRollChangeVo> {
/** 查询指定机架最新一次换辊记录(当前在机轧辊) */
MesRollChangeVo selectLatestByStand(@Param("standNo") String standNo);
/** 查询指定产线+机架最新一次换辊记录(当前在机轧辊) */
MesRollChangeVo selectLatestByStand(@Param("lineId") Long lineId, @Param("standNo") String standNo);
/**
* 按辊位查询该位置最新一次有记录的换辊(支持部分换辊)
* posType: upperWr / lowerWr / upperBr / lowerBr
*/
MesRollChangeVo selectLatestByStandAndPosition(@Param("standNo") String standNo,
MesRollChangeVo selectLatestByStandAndPosition(@Param("lineId") Long lineId,
@Param("standNo") String standNo,
@Param("posType") String posType);
/**
* 组合查询机架各辊位当前实际在机状态(每个位置独立取最新非空记录)
* 组合查询指定产线+机架各辊位当前实际在机状态(每个位置独立取最新非空记录)
* 返回 mapkey 同 MesRollChangeVo 字段名camelCase
*/
Map<String, Object> selectCurrentStateByStand(@Param("standNo") String standNo);
Map<String, Object> selectCurrentStateByStand(@Param("lineId") Long lineId, @Param("standNo") String standNo);
/**
* 查询同机架下一次换辊时间(任意辊位有换辊即触发)
* 查询同产线+机架下一次换辊时间(任意辊位有换辊即触发)
* 返回 null 表示该辊仍在机
*/
Date selectNextChangeTime(@Param("standNo") String standNo, @Param("changeTime") Date changeTime);
Date selectNextChangeTime(@Param("lineId") Long lineId,
@Param("standNo") String standNo,
@Param("changeTime") Date changeTime);
/**
* 统计指定时间区间内的卷料生产统计:

View File

@@ -15,13 +15,17 @@ public interface MesRollInfoMapper extends BaseMapperPlus<MesRollInfoMapper, Mes
/**
* 按状态统计数量(用于总览卡片)
* lineId 为 null 时统计全部产线
*/
List<Map<String, Object>> selectStatusStats();
List<Map<String, Object>> selectStatusStats(@Param("lineId") Long lineId);
/**
* 查询轧辊编号列表(用于下拉选择,可按辊型状态过滤)
* 查询轧辊编号列表(用于下拉选择,可按产线、辊型状态过滤)
* lineId 为 null 时不过滤产线
*/
List<String> selectRollNoList(@Param("rollType") String rollType, @Param("status") String status);
List<String> selectRollNoList(@Param("lineId") Long lineId,
@Param("rollType") String rollType,
@Param("status") String status);
/**
* 按轧辊编号查询(用于换辊时同步状态)

View File

@@ -12,9 +12,9 @@ import java.util.List;
*/
public interface MesRollStandbyMapper extends BaseMapperPlus<MesRollStandbyMapper, MesRollStandby, MesRollStandbyVo> {
/** 按机架查询下批轧辊列表 */
List<MesRollStandbyVo> selectByStand(@Param("standNo") String standNo);
/** 按产线+机架查询下批轧辊列表 */
List<MesRollStandbyVo> selectByStand(@Param("lineId") Long lineId, @Param("standNo") String standNo);
/** 清空机架的下批轧辊 */
int clearByStand(@Param("standNo") String standNo);
/** 清空指定产线+机架的下批轧辊 */
int clearByStand(@Param("lineId") Long lineId, @Param("standNo") String standNo);
}