From d4e4dc4a180cea919dfc86a1a3e5af0abe8b6d36 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期一, 20 十月 2025 18:48:14 +0800
Subject: [PATCH] 无形广告资产接口
---
ruoyi-system/src/main/java/com/ruoyi/system/service/AssetInventoryTaskService.java | 86 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 86 insertions(+), 0 deletions(-)
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/AssetInventoryTaskService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/AssetInventoryTaskService.java
index 0393950..e9ca8e3 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/AssetInventoryTaskService.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/AssetInventoryTaskService.java
@@ -1,7 +1,21 @@
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>
@@ -13,4 +27,76 @@
*/
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);
}
--
Gitblit v1.7.1