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