package org.dromara.qa.md.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import org.dromara.qa.md.domain.WeighingBox;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
import java.util.List;
|
|
/**
|
* 称重盒子Mapper接口
|
*
|
* @author ruoyi
|
* @date 2026-04-09
|
*/
|
public interface WeighingBoxMapper extends BaseMapper<WeighingBox>
|
{
|
/**
|
* 分页查询称重盒子列表
|
*
|
* @param weighingBox 查询条件
|
* @param pageQuery 分页参数
|
* @return 称重盒子分页列表
|
*/
|
public TableDataInfo<WeighingBox> selectPageList(WeighingBox weighingBox, PageQuery pageQuery);
|
|
/**
|
* 查询称重盒子列表
|
*
|
* @param weighingBox 称重盒子
|
* @return 称重盒子集合
|
*/
|
public List<WeighingBox> selectWeighingBoxList(WeighingBox weighingBox);
|
|
/**
|
* 查询已启用的称重盒子(用于提醒任务)
|
*
|
* @return 称重盒子集合
|
*/
|
public List<WeighingBox> selectActiveWeighingBoxes();
|
|
/**
|
* 批量更新称重盒子状态
|
*
|
* @param boxIds 盒子ID列表
|
* @param activeStatus 状态
|
* @return 结果
|
*/
|
public int batchUpdateStatus(List<Long> boxIds, Integer activeStatus);
|
|
/**
|
* 批量更新校准周期
|
*
|
* @param boxIds 盒子ID列表
|
* @param calibCycleDays 校准周期
|
* @param remindDays 提醒天数
|
* @return 结果
|
*/
|
public int batchUpdateCalibConfig(List<Long> boxIds, Integer calibCycleDays, Integer remindDays);
|
|
/**
|
* 查询称重盒子列表(带校准状态过滤)
|
*
|
* @param weighingBox 称重盒子
|
* @return 称重盒子集合
|
*/
|
public List<WeighingBox> selectWeighingBoxListWithCalibStatus(WeighingBox weighingBox);
|
|
/**
|
* 查询称重盒子总数(带校准状态过滤)
|
*
|
* @param weighingBox 称重盒子
|
* @return 称重盒子总数
|
*/
|
public long selectWeighingBoxCountWithCalibStatus(WeighingBox weighingBox);
|
}
|