From 6416b165e4a3c8ecc2d547ceef0fb3962d3c7b56 Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期一, 12 一月 2026 14:58:45 +0800
Subject: [PATCH] 1.查询产品信息列表接口,销售台账查询其产品的状态 2.增添不合格现象字段,取消生产状态字段 3.修改发货审批接口,发货审批通过,生产该订单出库记录 4.存在质检记录并已提交的销售台账删除时做出限制 5.生产报工投入,产出2:1调整

---
 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