mitao
3 天以前 56efd0aa54e2c5cea81ff9b28855bca520dee475
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package com.ruoyi.system.service;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.dto.asset.AssetInventoryTaskDTO;
import com.ruoyi.system.dto.asset.AssetInventoryTaskItemDTO;
import com.ruoyi.system.dto.asset.AssetInventoryTaskItemUpdateDTO;
import com.ruoyi.system.dto.asset.AssetInventoryUserUpdateDTO;
import com.ruoyi.system.model.AssetInventoryTask;
import com.ruoyi.system.query.AssertInventoryQuery;
import com.ruoyi.system.query.InventoryTaskQuery;
import com.ruoyi.system.vo.asset.AssetInventoryTaskDetailVO;
import com.ruoyi.system.vo.asset.AssetInventoryTaskVO;
import com.ruoyi.system.vo.asset.AssetMainInventoryVO;
import com.ruoyi.system.vo.asset.InventoryTaskStatisticsVO;
import com.ruoyi.system.vo.asset.InventoryTaskTabVO;
 
import java.util.List;
 
/**
 * <p>
 * 盘点任务表 服务类
 * </p>
 *
 * @author WuGuanFengYue
 * @since 2025-09-15
 */
public interface AssetInventoryTaskService extends IService<AssetInventoryTask> {
 
    IPage<AssetInventoryTaskVO> getInventoryTaskPage(AssertInventoryQuery query);
 
    /**
     * 创建盘点任务
     *
     * @param dto 新增盘点任务DTO
     * @return 创建结果
     */
    boolean createInventoryTask(AssetInventoryTaskDTO dto);
 
    /**
     * 删除盘点任务
     * @param id
     */
    void deleteById(Integer id);
 
    /**
     * 获取盘点任务选项卡数据
     */
    List<InventoryTaskTabVO> getInventoryTaskTabData();
 
    /**
     * 获取盘点任务资产列表
     *
     * @param id
     * @return
     */
    AssetInventoryTaskDetailVO getDetail(Integer id);
 
    /**
     * 获取盘点资产分页列表
     * @param query
     * @return
     */
    IPage<AssetMainInventoryVO> getListByTaskId(InventoryTaskQuery query);
 
    /**
     * 获取盘点任务统计数据
     * @param taskId 盘点任务ID
     * @return 统计数据
     */
    InventoryTaskStatisticsVO getInventoryTaskStatistics(Integer taskId);
 
    /**
     * 开始盘点
     * @param id
     */
    void start(Integer id);
 
    /**
     * 修改盘点人
     * @param dto 修改盘点人DTO
     */
    void updateInventoryUser(AssetInventoryUserUpdateDTO dto);
 
    /**
     * 盘点结果处理
     * @param dtoList
     */
    void handleResult(List<AssetInventoryTaskItemDTO> dtoList);
 
    /**
     * 取消盘点
     * @param id
     */
    boolean cancel(Integer id);
 
    /**
     * 保存盘点
     * @param dtoList
     */
    void saveInventory(List<AssetInventoryTaskItemUpdateDTO> dtoList);
}