| | |
| | | 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> |
| | |
| | | */ |
| | | 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); |
| | | } |