广丰卷烟厂数采质量分析系统
baoshiwei
13 小时以前 d143af7023cfd4a0ced6f0ecf04ae3b3a06fd1dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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);
}