From 5ac6ad0ec6e861d4d2275753d15d2ad7f870915a Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 22 六月 2026 17:20:07 +0800
Subject: [PATCH] 6、明细记录中有删除操作的,需设置权限; 7、质量管理要设置检验规则;

---
 src/main/java/com/ruoyi/basic/mapper/CustomerMapper.java |   44 ++++++++++++++++++++++++++++++++++++--------
 1 files changed, 36 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/ruoyi/basic/mapper/CustomerMapper.java b/src/main/java/com/ruoyi/basic/mapper/CustomerMapper.java
index b9e5725..1bc9f0f 100644
--- a/src/main/java/com/ruoyi/basic/mapper/CustomerMapper.java
+++ b/src/main/java/com/ruoyi/basic/mapper/CustomerMapper.java
@@ -6,6 +6,11 @@
 import com.ruoyi.basic.dto.CustomerDto;
 import com.ruoyi.basic.pojo.Customer;
 import com.ruoyi.basic.vo.CustomerVo;
+import com.ruoyi.sales.vo.CustomerTransactionsDetailsVo;
+import com.ruoyi.sales.vo.CustomerTransactionsVo;
+import com.ruoyi.sales.vo.CustomerTransactionsProductVo;
+import com.ruoyi.sales.vo.CustomerTransactionsShipmentVo;
+import com.ruoyi.sales.vo.CustomerTransactionsSummaryVo;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 
@@ -13,7 +18,7 @@
 
 /**
  * 瀹㈡埛妗fMapper鎺ュ彛
- * 
+ *
  * @author ruoyi
  * @date 2025-05-07
  */
@@ -22,7 +27,7 @@
 {
     /**
      * 鏌ヨ瀹㈡埛妗f
-     * 
+     *
      * @param id 瀹㈡埛妗f涓婚敭
      * @return 瀹㈡埛妗f
      */
@@ -30,7 +35,7 @@
 
     /**
      * 鏌ヨ瀹㈡埛妗f鍒楄〃
-     * 
+     *
      * @param customer 瀹㈡埛妗f
      * @return 瀹㈡埛妗f闆嗗悎
      */
@@ -38,7 +43,7 @@
 
     /**
      * 鏂板瀹㈡埛妗f
-     * 
+     *
      * @param customer 瀹㈡埛妗f
      * @return 缁撴灉
      */
@@ -46,7 +51,7 @@
 
     /**
      * 淇敼瀹㈡埛妗f
-     * 
+     *
      * @param customer 瀹㈡埛妗f
      * @return 缁撴灉
      */
@@ -54,7 +59,7 @@
 
     /**
      * 鍒犻櫎瀹㈡埛妗f
-     * 
+     *
      * @param id 瀹㈡埛妗f涓婚敭
      * @return 缁撴灉
      */
@@ -62,11 +67,34 @@
 
     /**
      * 鎵归噺鍒犻櫎瀹㈡埛妗f
-     * 
+     *
      * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎
      * @return 缁撴灉
      */
     int deleteCustomerByIds(Long[] ids);
 
     IPage<CustomerVo> listPage(Page<CustomerDto> page, @Param("c") CustomerDto customer, @Param("loginUserId") Long loginUserId);
-}
\ No newline at end of file
+
+    List<CustomerVo> list(@Param("c") CustomerDto customer, @Param("loginUserId") Long loginUserId);
+
+    IPage<CustomerTransactionsVo> customewTransactions(Page page, @Param("customerName") String customerName);
+
+    IPage<CustomerTransactionsDetailsVo> customewTransactionsDetails(Page page, @Param("customerId") Long customerId);
+
+    /**
+     * 鏌ヨ瀹㈡埛寰�鏉ョ粺璁℃眹鎬�
+     */
+    CustomerTransactionsSummaryVo getCustomerTransactionsSummary(@Param("customerId") Long customerId);
+
+    /**
+     * 鏌ヨ瀹㈡埛寰�鏉ヤ骇鍝佹槑缁�
+     */
+    IPage<CustomerTransactionsProductVo> getCustomerTransactionsProducts(Page page,
+            @Param("customerId") Long customerId, @Param("salesLedgerId") Long salesLedgerId);
+
+    /**
+     * 鏌ヨ瀹㈡埛寰�鏉ュ彂璐ф槑缁�
+     */
+    IPage<CustomerTransactionsShipmentVo> getCustomerTransactionsShipments(Page page,
+            @Param("customerId") Long customerId, @Param("salesLedgerId") Long salesLedgerId);
+}

--
Gitblit v1.9.3