From 256f758a45c9b00a9248b02345ee1d6f52869e08 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期三, 05 十一月 2025 09:36:58 +0800
Subject: [PATCH] yys 1.导出接口开发 2.营销管理-回款登记-回款状态(回款完成,未完成) 3.采购管理-付款登记-加一个付款进度 4.采购管理-付款流水-采购合同号筛选 5.仓储物流-所有-查询条件加一个日期 6.仓储物流-入库管理-加一个库存预警数量字段 7.生产管控-生产订单-加一个订单状态-已完成、未完成 8.协同办公-通知公告-加一个时间限制,过时后状态改为已过期

---
 src/main/java/com/ruoyi/warehouse/mapper/DocumentationMapper.java |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/ruoyi/warehouse/mapper/DocumentationMapper.java b/src/main/java/com/ruoyi/warehouse/mapper/DocumentationMapper.java
index 49624f6..33278bf 100644
--- a/src/main/java/com/ruoyi/warehouse/mapper/DocumentationMapper.java
+++ b/src/main/java/com/ruoyi/warehouse/mapper/DocumentationMapper.java
@@ -8,8 +8,10 @@
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
 
 import java.util.List;
+import java.util.Map;
 
 /**
 * @author 86151
@@ -20,8 +22,25 @@
 @Mapper
 public interface DocumentationMapper extends BaseMapper<Documentation> {
 
-    List<DocumentationDto> listPage(Page page, @Param("documentation") Documentation documentation);
+    IPage<DocumentationDto> listPage(Page page, @Param("documentation") Documentation documentation);
+    List<DocumentationDto> list();
     List<DocumentationDto> listByDocumentClassificationId(@Param("documentClassificationId") Long documentClassificationId);
+    List<DocumentationDto> listBywarehouseGoodsShelvesRowcolId(@Param("warehouseGoodsShelvesRowcolId") Long warehouseGoodsShelvesRowcolId);
+    @Select("select count(*) from documentation")
+    Integer countTotalDocs();
+    @Select("select count(distinct document_classification_id) from documentation")
+    Integer countCategoryNum();
+    @Select("select count(*) from documentation where doc_status = '鍊熷嚭'")
+    Integer countBorrowedDocs();
+    @Select("select count(*) from documentation where create_time >= date_format(now(), '%Y-%m-01') and create_time < date_format(now(), '%Y-%m-%d')")
+    Integer countMonthlyAddedDocs();
+
+    @Select("select dc.category, count(*) as count from documentation doc left join document_classification dc on doc.document_classification_id = dc.id group by dc.category")
+    List<Map<String, Object>> countCategoryDistribution();
+
+    @Select("select doc_status as docStatus, count(*) as count from documentation group by doc_status")
+    List<Map<String, Object>> countStatusDistribution();
+
 }
 
 

--
Gitblit v1.9.3