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/service/ICustomerService.java |   88 ++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 84 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/ruoyi/basic/service/ICustomerService.java b/src/main/java/com/ruoyi/basic/service/ICustomerService.java
index 598506b..53ab6d6 100644
--- a/src/main/java/com/ruoyi/basic/service/ICustomerService.java
+++ b/src/main/java/com/ruoyi/basic/service/ICustomerService.java
@@ -1,9 +1,21 @@
 package com.ruoyi.basic.service;
 
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.ruoyi.basic.dto.CustomerDto;
 import com.ruoyi.basic.pojo.Customer;
+import com.ruoyi.basic.vo.CustomerVo;
+import com.ruoyi.framework.web.domain.R;
+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.springframework.web.multipart.MultipartFile;
 
 import java.util.List;
+import java.util.Map;
 
 /**
  * 瀹㈡埛妗fService鎺ュ彛
@@ -21,12 +33,19 @@
     Customer selectCustomerById(Long id);
 
     /**
+     * 鏌ヨ瀹㈡埛璇︽儏锛堝惈璺熻繘璁板綍鍜岄檮浠讹級
+     *
+     * @param id 瀹㈡埛妗f涓婚敭
+     * @return 瀹㈡埛璇︽儏DTO
+     */
+    CustomerVo selectCustomerDetailById(Long id);
+
+    /**
      * 鏌ヨ瀹㈡埛妗f鍒楄〃
      *
      * @param customer 瀹㈡埛妗f
      * @return 瀹㈡埛妗f闆嗗悎
      */
-    List<Customer> selectCustomerList(Customer customer);
 
     /**
      * 鏂板瀹㈡埛妗f
@@ -52,11 +71,72 @@
      */
     int deleteCustomerByIds(Long[] ids);
 
+    List<Customer> selectCustomerListByIds(Long[] ids);
+
     /**
-     * 鍒犻櫎瀹㈡埛妗f淇℃伅
+     * 鏌ヨ瀹㈡埛淇℃伅
      *
-     * @param id 瀹㈡埛妗f涓婚敭
      * @return 缁撴灉
      */
-    int deleteCustomerById(Long id);
+    List<Map<String, Object>> customerList(Customer customer);
+
+    List<CustomerVo> selectCustomerLists(CustomerDto customer);
+
+    R importData(MultipartFile file, Integer type);
+
+    IPage<CustomerVo> selectCustomerList(Page<CustomerDto> page, CustomerDto customer);
+
+    void assignCustomer(CustomerDto customer);
+
+    void recycleCustomer(CustomerDto customer);
+
+    /**
+     * 鍏变韩瀹㈡埛缁欏叾浠栫敤鎴�
+     *
+     * @param customerDto 瀹㈡埛DTO锛堝寘鍚鎴稩D鍜屽叡浜敤鎴稩D鍒楄〃锛�
+     */
+    void together(CustomerDto customerDto);
+
+    Boolean back(Long id);
+
+    /**
+     * 鏌ヨ瀹㈡埛寰�鏉ュ垪琛�
+     * @param page
+     * @param customerName
+     * @return
+     */
+    IPage<CustomerTransactionsVo> customewTransactions(Page page, String customerName);
+
+    /**
+     * 鏌ヨ瀹㈡埛寰�鏉ユ槑缁嗗垪琛�
+     * @param page
+     * @param customerId
+     * @return
+     */
+    IPage<CustomerTransactionsDetailsVo> customewTransactionsDetails(Page page, Long customerId);
+
+    /**
+     * 鏌ヨ瀹㈡埛寰�鏉ョ粺璁℃眹鎬伙紙浼樺寲鐗堬級
+     * @param customerId 瀹㈡埛ID
+     * @return 缁熻姹囨�绘暟鎹�
+     */
+    CustomerTransactionsSummaryVo getCustomerTransactionsSummary(Long customerId);
+
+    /**
+     * 鏌ヨ瀹㈡埛寰�鏉ヤ骇鍝佹槑缁�
+     * @param page 鍒嗛〉鍙傛暟
+     * @param customerId 瀹㈡埛ID
+     * @param salesLedgerId 閿�鍞彴璐D锛堝彲閫夛級
+     * @return 浜у搧鏄庣粏鍒嗛〉鏁版嵁
+     */
+    IPage<CustomerTransactionsProductVo> getCustomerTransactionsProducts(Page page, Long customerId, Long salesLedgerId);
+
+    /**
+     * 鏌ヨ瀹㈡埛寰�鏉ュ彂璐ф槑缁�
+     * @param page 鍒嗛〉鍙傛暟
+     * @param customerId 瀹㈡埛ID
+     * @param salesLedgerId 閿�鍞彴璐D锛堝彲閫夛級
+     * @return 鍙戣揣鏄庣粏鍒嗛〉鏁版嵁
+     */
+    IPage<CustomerTransactionsShipmentVo> getCustomerTransactionsShipments(Page page, Long customerId, Long salesLedgerId);
 }

--
Gitblit v1.9.3