From bfcc71f500625a26886b43c43a8fdf2ea1152844 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 23 六月 2026 13:47:59 +0800
Subject: [PATCH] 环境检测排序,仓库绑定物联设备

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

diff --git a/src/main/java/com/ruoyi/basic/mapper/CustomerMapper.java b/src/main/java/com/ruoyi/basic/mapper/CustomerMapper.java
index 1946f26..1bc9f0f 100644
--- a/src/main/java/com/ruoyi/basic/mapper/CustomerMapper.java
+++ b/src/main/java/com/ruoyi/basic/mapper/CustomerMapper.java
@@ -1,21 +1,33 @@
 package com.ruoyi.basic.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.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;
 
 import java.util.List;
 
 /**
  * 瀹㈡埛妗fMapper鎺ュ彛
- * 
+ *
  * @author ruoyi
  * @date 2025-05-07
  */
+@Mapper
 public interface CustomerMapper extends BaseMapper<Customer>
 {
     /**
      * 鏌ヨ瀹㈡埛妗f
-     * 
+     *
      * @param id 瀹㈡埛妗f涓婚敭
      * @return 瀹㈡埛妗f
      */
@@ -23,7 +35,7 @@
 
     /**
      * 鏌ヨ瀹㈡埛妗f鍒楄〃
-     * 
+     *
      * @param customer 瀹㈡埛妗f
      * @return 瀹㈡埛妗f闆嗗悎
      */
@@ -31,7 +43,7 @@
 
     /**
      * 鏂板瀹㈡埛妗f
-     * 
+     *
      * @param customer 瀹㈡埛妗f
      * @return 缁撴灉
      */
@@ -39,7 +51,7 @@
 
     /**
      * 淇敼瀹㈡埛妗f
-     * 
+     *
      * @param customer 瀹㈡埛妗f
      * @return 缁撴灉
      */
@@ -47,7 +59,7 @@
 
     /**
      * 鍒犻櫎瀹㈡埛妗f
-     * 
+     *
      * @param id 瀹㈡埛妗f涓婚敭
      * @return 缁撴灉
      */
@@ -55,9 +67,34 @@
 
     /**
      * 鎵归噺鍒犻櫎瀹㈡埛妗f
-     * 
+     *
      * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎
      * @return 缁撴灉
      */
     int deleteCustomerByIds(Long[] ids);
+
+    IPage<CustomerVo> listPage(Page<CustomerDto> page, @Param("c") CustomerDto customer, @Param("loginUserId") Long loginUserId);
+
+    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