提交酸扎串联内容以及磨辊间
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.klp.mes.roll.mapper;
|
||||
|
||||
import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
import com.klp.mes.roll.domain.MesRollGrind;
|
||||
import com.klp.mes.roll.domain.vo.MesRollGrindVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 磨辊记录 Mapper
|
||||
*/
|
||||
public interface MesRollGrindMapper extends BaseMapperPlus<MesRollGrindMapper, MesRollGrind, MesRollGrindVo> {
|
||||
|
||||
/** 查询某轧辊全部磨削记录(按时间升序) */
|
||||
List<MesRollGrindVo> selectByRollId(@Param("rollId") Long rollId);
|
||||
|
||||
/** 按年份统计每月磨削量 { month, grindCount, totalGrindAmount } */
|
||||
List<Map<String, Object>> selectMonthlyStats(@Param("rollId") Long rollId, @Param("year") int year);
|
||||
}
|
||||
@@ -39,4 +39,15 @@ public interface MesRollInfoMapper extends BaseMapperPlus<MesRollInfoMapper, Mes
|
||||
int updateStatusByRollNoIfStatus(@Param("rollNo") String rollNo,
|
||||
@Param("status") String status,
|
||||
@Param("onlyIfStatus") String onlyIfStatus);
|
||||
|
||||
/**
|
||||
* 磨削后同步:当前直径更新 + 磨削次数+1
|
||||
* diaAfter 为 null 时仅 grindCount+1 不更新直径
|
||||
*/
|
||||
int incrementGrindCount(@Param("rollId") Long rollId,
|
||||
@Param("diaAfter") java.math.BigDecimal diaAfter);
|
||||
|
||||
/** 直接更新当前直径(用于修改磨削记录后重新同步) */
|
||||
int updateCurrentDia(@Param("rollId") Long rollId,
|
||||
@Param("currentDia") java.math.BigDecimal currentDia);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user