mitao
3 天以前 d058d56898cbaa185e5f5ac9294804975084fabf
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
package com.ruoyi.system.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.system.model.AssetInventoryTask;
import com.ruoyi.system.query.InventoryTaskQuery;
import com.ruoyi.system.vo.asset.AssetMainInventoryVO;
import com.ruoyi.system.vo.asset.InventoryTaskStatisticsVO;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * <p>
 * 盘点任务表 Mapper 接口
 * </p>
 *
 * @author WuGuanFengYue
 * @since 2025-09-15
 */
public interface AssetInventoryTaskMapper extends BaseMapper<AssetInventoryTask> {
 
    /**
     * 获取盘点任务详情中的资产列表
     * @param taskId 盘点任务ID
     * @return 资产列表
     */
    List<AssetMainInventoryVO> getAssetMainInventoryList(@Param("taskId") Integer taskId);
 
    /**
     * 获取盘点任务中的所有盘点人姓名(去重)
     * @param taskId 盘点任务ID
     * @return 盘点人姓名列表
     */
    List<String> getInventoryUserNames(@Param("taskId") Integer taskId);
 
    /**
     * 获取盘点任务详情中的资产列表
     * @param query 查询条件
     * @return 资产列表
     */
    IPage<AssetMainInventoryVO> getAssetMainInventoryPageList(Page<AssetMainInventoryVO> page, @Param("query") InventoryTaskQuery query);
 
    /**
     * 获取盘点任务统计数据
     * @param taskId 盘点任务ID
     * @return 统计数据
     */
    InventoryTaskStatisticsVO getInventoryTaskStatistics(@Param("taskId") Integer taskId);
 
}