From 6e05d8ecd5e3502da74665629060a30385758b49 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期六, 09 五月 2026 13:24:12 +0800
Subject: [PATCH] refactor(sales): 移除旧版发货审批ShipmentApproval相关代码并调整审批理由设置

---
 src/main/java/com/ruoyi/approve/service/impl/ApproveProcessServiceImpl.java |    5 -----
 /dev/null                                                                   |   24 ------------------------
 src/main/java/com/ruoyi/sales/controller/SalesLedgerProductController.java  |    7 -------
 src/main/java/com/ruoyi/sales/controller/ShippingInfoController.java        |    2 +-
 4 files changed, 1 insertions(+), 37 deletions(-)

diff --git a/src/main/java/com/ruoyi/approve/service/impl/ApproveProcessServiceImpl.java b/src/main/java/com/ruoyi/approve/service/impl/ApproveProcessServiceImpl.java
index c8c6af0..08ed842 100644
--- a/src/main/java/com/ruoyi/approve/service/impl/ApproveProcessServiceImpl.java
+++ b/src/main/java/com/ruoyi/approve/service/impl/ApproveProcessServiceImpl.java
@@ -89,11 +89,6 @@
         if (CollectionUtils.isEmpty(sysUsers)) throw new RuntimeException("瀹℃牳鐢ㄦ埛涓嶅瓨鍦�");
         if (sysDept == null) throw new RuntimeException("閮ㄩ棬涓嶅瓨鍦�");
         if (sysUser == null) throw new RuntimeException("鐢宠浜轰笉瀛樺湪");
-//        String today = LocalDate.now().format(DATE_FORMAT);
-//        Long approveId = dailyRedisCounter.incrementAndGetByDb();
-//        String formattedCount = String.format("%03d", approveId);
-//        //娴佺▼ ID
-//        String approveID = today + formattedCount;
         SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
         ApproveProcess approveProcess = new ApproveProcess();
         String no = OrderUtils.countTodayByCreateTime(approveProcessMapper, "", "approve_id");
diff --git a/src/main/java/com/ruoyi/sales/controller/SalesLedgerProductController.java b/src/main/java/com/ruoyi/sales/controller/SalesLedgerProductController.java
index 411291c..e85e72a 100644
--- a/src/main/java/com/ruoyi/sales/controller/SalesLedgerProductController.java
+++ b/src/main/java/com/ruoyi/sales/controller/SalesLedgerProductController.java
@@ -83,13 +83,6 @@
             if (item.getFutureTicketsAmount().compareTo(BigDecimal.ZERO) == 0) {
                 item.setFutureTicketsAmount(BigDecimal.ZERO);
             }
-//            ProcurementPageDto procurementDto = new ProcurementPageDto();
-//            procurementDto.setSalesLedgerProductId(item.getId());
-//            procurementDto.setProductCategory(item.getProductCategory());
-//            IPage<ProcurementPageDtoCopy> result = procurementRecordService.listPageCopyByProduction(new Page<>(1,-1), procurementDto);
-//            BigDecimal stockQuantity = stockUtils.getStockQuantity(item.getProductModelId()).get("stockQuantity");
-
-//                ProcurementPageDtoCopy procurementDtoCopy = result.getRecords().get(0);
             if (item.getApproveStatus() != 2) {
                 if (item.getHasSufficientStock() == 0) {
                     item.setApproveStatus(0);
diff --git a/src/main/java/com/ruoyi/sales/controller/ShipmentApprovalController.java b/src/main/java/com/ruoyi/sales/controller/ShipmentApprovalController.java
deleted file mode 100644
index 8c95270..0000000
--- a/src/main/java/com/ruoyi/sales/controller/ShipmentApprovalController.java
+++ /dev/null
@@ -1,105 +0,0 @@
-package com.ruoyi.sales.controller;
-
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.ruoyi.common.enums.StockOutQualifiedRecordTypeEnum;
-import com.ruoyi.common.exception.ServiceException;
-import com.ruoyi.common.utils.poi.ExcelUtil;
-import com.ruoyi.framework.web.controller.BaseController;
-import com.ruoyi.framework.web.domain.AjaxResult;
-import com.ruoyi.procurementrecord.utils.StockUtils;
-import com.ruoyi.sales.mapper.ShipmentApprovalMapper;
-import com.ruoyi.sales.pojo.SalesLedgerProduct;
-import com.ruoyi.sales.pojo.ShipmentApproval;
-import com.ruoyi.sales.service.ISalesLedgerProductService;
-import com.ruoyi.sales.service.ShipmentApprovalService;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import io.swagger.v3.oas.annotations.Operation;
-import jakarta.servlet.http.HttpServletResponse;
-import lombok.AllArgsConstructor;
-import org.springframework.transaction.annotation.Transactional;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.List;
-
-@RestController
-@RequestMapping("/shipmentApproval")
-@Tag(name = "鍙戣揣瀹℃壒绠$悊")
-@AllArgsConstructor
-public class ShipmentApprovalController extends BaseController {
-
-    private final ShipmentApprovalService shipmentApprovalService;
-    private final ShipmentApprovalMapper shipmentApprovalMapper;
-    private final ISalesLedgerProductService salesLedgerProductService;
-    private final StockUtils stockUtils;
-
-    @GetMapping("/listPage")
-    @Operation(summary = "鍙戣揣瀹℃壒鍒楄〃")
-    public AjaxResult listPage(Page page, ShipmentApproval req) {
-        IPage<ShipmentApproval> listPage = shipmentApprovalService.listPage(page,req);
-        return AjaxResult.success(listPage);
-    }
-
-    @PostMapping("/update")
-    @Operation(summary = "鍙戣揣瀹℃壒,鏇存柊鍙戣揣瀹℃壒鐘舵��")
-    @Transactional(rollbackFor = Exception.class)
-    public AjaxResult update(@RequestBody ShipmentApproval req) {
-
-        //  鏌ヨ鍙戣揣瀹℃壒
-        ShipmentApproval shipmentApproval = shipmentApprovalMapper.selectById(req.getId());
-        if (shipmentApproval == null) {
-            return AjaxResult.error("鍙戣揣瀹℃壒涓嶅瓨鍦�");
-        }
-
-        //  鏇存柊鍙戣揣瀹℃壒鐘舵��
-        shipmentApproval.setApproveStatus(req.getApproveStatus());
-        boolean update = shipmentApprovalService.updateById(shipmentApproval);
-        if (!update) {
-            //  浜嬪姟鍥炴粴
-            throw new ServiceException("鍙戣揣瀹℃壒鏇存柊澶辫触");
-        }
-        //  鏌ヨ鍏宠仈鐨勯攢鍞彴璐︿骇鍝�
-        SalesLedgerProduct salesLedgerProduct = salesLedgerProductService.getById(shipmentApproval.getSalesLedgerProductId());
-        if (salesLedgerProduct == null) {
-            //  鎶涘紓甯镐簨鍔″洖婊�
-            throw new ServiceException("閿�鍞彴璐︿笉瀛樺湪锛屽鎵瑰洖婊�");
-        }
-
-        //  鍚屾鏇存柊閿�鍞彴璐︿骇鍝佺殑瀹℃壒鐘舵��
-        salesLedgerProduct.setApproveStatus(req.getApproveStatus());
-        salesLedgerProductService.updateById(salesLedgerProduct);
-
-        //  瀹℃壒閫氳繃
-        if (req.getApproveStatus() == 3) {
-//            // 鏌ヨ閲囪喘鍏ュ簱璁板綍
-//            LambdaQueryWrapper<ProcurementRecordStorage> lambdaQueryWrapper = new LambdaQueryWrapper<ProcurementRecordStorage>()
-//                    .eq(ProcurementRecordStorage::getSalesLedgerProductId, req.getSalesLedgerProductId());
-//            ProcurementRecordStorage procurementRecordStorage = procurementRecordStorageService.getOne(lambdaQueryWrapper);
-//
-//            if (procurementRecordStorage == null) {
-//                // 淇濊瘉鍓嶉潰鐨勪慨鏀瑰叏閮ㄥ洖婊�
-//                throw new ServiceException("閲囪喘璁板綍涓嶅瓨鍦紝瀹℃壒鍥炴粴");
-//            }
-
-
-            //鍑哄簱
-            stockUtils.addStock(salesLedgerProduct.getProductModelId(), salesLedgerProduct.getQuantity(), StockOutQualifiedRecordTypeEnum.SALE_SHIP_STOCK_OUT.getCode(), req.getId());
-        }
-
-        return AjaxResult.success();
-    }
-
-
-
-    /**
-     * 瀵煎嚭鍙戣揣淇℃伅绠$悊
-     */
-    @PostMapping("/export")
-    @Operation(summary = "瀵煎嚭鍙戣揣瀹℃壒")
-    public void export(HttpServletResponse response) {
-        List<ShipmentApproval> list = shipmentApprovalService.list();
-        ExcelUtil<ShipmentApproval> util = new ExcelUtil<ShipmentApproval>(ShipmentApproval.class);
-        util.exportExcel(response, list, "鍙戣揣瀹℃壒");
-    }
-
-}
diff --git a/src/main/java/com/ruoyi/sales/controller/ShippingInfoController.java b/src/main/java/com/ruoyi/sales/controller/ShippingInfoController.java
index 458be2d..edb7b44 100644
--- a/src/main/java/com/ruoyi/sales/controller/ShippingInfoController.java
+++ b/src/main/java/com/ruoyi/sales/controller/ShippingInfoController.java
@@ -61,7 +61,7 @@
         ApproveProcessVO approveProcessVO = new ApproveProcessVO();
         approveProcessVO.setApproveType(7);
         approveProcessVO.setApproveDeptId(loginUser.getCurrentDeptId());
-        approveProcessVO.setApproveReason(req.getType() + ":" +sh);
+        approveProcessVO.setApproveReason(sh);
         approveProcessVO.setApproveUserIds(req.getApproveUserIds());
         approveProcessVO.setApproveUser(loginUser.getUserId());
         approveProcessVO.setApproveTime(LocalDate.now().toString());
diff --git a/src/main/java/com/ruoyi/sales/mapper/ShipmentApprovalMapper.java b/src/main/java/com/ruoyi/sales/mapper/ShipmentApprovalMapper.java
deleted file mode 100644
index c3bf397..0000000
--- a/src/main/java/com/ruoyi/sales/mapper/ShipmentApprovalMapper.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.ruoyi.sales.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.sales.pojo.ShipmentApproval;
-import com.ruoyi.sales.pojo.ShippingInfo;
-import org.apache.ibatis.annotations.Param;
-
-import java.util.List;
-
-
-public interface ShipmentApprovalMapper extends BaseMapper<ShipmentApproval> {
-    IPage<ShipmentApproval> listPage(Page page,@Param("req") ShipmentApproval req);
-
-}
diff --git a/src/main/java/com/ruoyi/sales/pojo/ShipmentApproval.java b/src/main/java/com/ruoyi/sales/pojo/ShipmentApproval.java
deleted file mode 100644
index 6399728..0000000
--- a/src/main/java/com/ruoyi/sales/pojo/ShipmentApproval.java
+++ /dev/null
@@ -1,355 +0,0 @@
-package com.ruoyi.sales.pojo;
-
-import com.baomidou.mybatisplus.annotation.*;
-import com.fasterxml.jackson.annotation.JsonFormat;
-import com.ruoyi.framework.aspectj.lang.annotation.Excel;
-import io.swagger.v3.oas.annotations.media.Schema;
-import lombok.Data;
-import org.springframework.format.annotation.DateTimeFormat;
-
-import java.math.BigDecimal;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
-import java.util.Date;
-import java.util.List;
-
-@Data
-@TableName("shipment_approval")
-public class ShipmentApproval {
-    @TableId(type = IdType.AUTO)
-    private Long id;
-    @Schema(description = "鍙戣揣淇℃伅id")
-    private Long shippingInfoId;
-    @Schema(description = "閿�鍞彴璐d")
-    private Long salesLedgerId;
-    @Schema(description = "閿�鍞姤浠蜂骇鍝佽〃id")
-    private Long salesLedgerProductId;
-     @Schema(description = "鐢宠閮ㄩ棬id")
-    private Long approveDeptId;
-
-    @Schema(description = "鐢宠閮ㄩ棬鍚嶇О")
-    @Excel(name = "鐢宠閮ㄩ棬")
-    private String approveDeptName;
-     @Schema(description = "瀹℃壒鐢ㄦ埛id")
-    private Integer approveUserId;
-    @Schema(description = "瀹℃壒鐢ㄦ埛鍚嶇О")
-    @Excel(name = "瀹℃壒鐢ㄦ埛")
-    private String approveUserNames;
-
-    /**
-     * 瀹℃壒鐘舵��
-     */
-    @Schema(description = "瀹℃壒鐘舵�侊細0鏈嚭搴�,1宸插嚭搴�,2寰呭鏍�,3瀹℃牳瀹屾垚,4瀹℃牳澶辫触")
-    @Excel(name = "瀹℃壒鐘舵��", readConverterExp = "0=鏈嚭搴�,1=宸插嚭搴�,2=寰呭鏍�,3=瀹℃牳瀹屾垚,4=瀹℃牳澶辫触")
-    private Integer approveStatus;
-
-    @Schema(description = "鍒涘缓鏃堕棿")
-    @TableField(fill = FieldFill.INSERT)
-    private LocalDateTime createTime;
-
-    @Schema(description = "淇敼鏃堕棿")
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    private LocalDateTime updateTime;
-
-    @Schema(description = "鍒涘缓鐢ㄦ埛")
-    @TableField(fill = FieldFill.INSERT)
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
-    private Integer createUser;
-
-    @Schema(description = "淇敼鐢ㄦ埛")
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    private Integer updateUser;
-
-    @Schema(description = "绉熸埛ID")
-    @TableField(fill = FieldFill.INSERT)
-    private Long tenantId;
-
-    @JsonFormat(pattern = "yyyy-MM-dd")
-    @DateTimeFormat(pattern = "yyyy-MM-dd")
-    @Excel(name = "鍙戣揣鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
-    @TableField(exist = false)
-    private Date shippingDate;
-
-    @Excel(name = "鍙戣揣杞︾墝鍙�")
-    @TableField(exist = false)
-    private String shippingCarNumber;
-
-    /**
-     * 棰勮鏁伴噺
-     */
-
-    @TableField(exist = false)
-    private BigDecimal warnNum;
-
-    /**
-     * 浜у搧澶х被
-     */
-    @Excel(name = "浜у搧澶х被")
-    @TableField(exist = false)
-    private String productCategory;
-
-    /**
-     * 瑙勬牸鍨嬪彿
-     */
-    @Excel(name = "瑙勬牸鍨嬪彿")
-    @TableField(exist = false)
-    private String specificationModel;
-
-    /**
-     * 鍗曚綅
-     */
-    @Excel(name = "鍗曚綅")
-    @TableField(exist = false)
-    private String unit;
-
-    /**
-     * 鏁伴噺
-     */
-    @Excel(name = "鏁伴噺")
-    @TableField(exist = false)
-    private BigDecimal quantity;
-    @Excel(name = "鏈�浣庡簱瀛樻暟閲�")
-    @TableField(exist = false)
-    private BigDecimal minStock;
-    /**
-     * 绋庣巼
-     */
-    @Excel(name = "绋庣巼")
-    @TableField(exist = false)
-    private BigDecimal taxRate;
-
-    /**
-     * 鍚◣鍗曚环
-     */
-    @Excel(name = "鍚◣鍗曚环")
-    @TableField(exist = false)
-    private BigDecimal taxInclusiveUnitPrice;
-
-    /**
-     * 鍚◣鎬讳环
-     */
-    @Excel(name = "鍚◣鎬讳环")
-    @TableField(exist = false)
-    private BigDecimal taxInclusiveTotalPrice;
-
-    /**
-     * 涓嶅惈绋庢�讳环
-     */
-    @Excel(name = "涓嶅惈绋庢�讳环")
-    @TableField(exist = false)
-    private BigDecimal taxExclusiveTotalPrice;
-
-    /**
-     * 鍙戠エ绫诲瀷
-     */
-
-    @TableField(exist = false)
-    private String invoiceType;
-
-    /**
-     * 鍙拌处绫诲瀷 1.閿�鍞� 2锛岄噰璐�
-     */
-    @TableField(exist = false)
-    private Integer type;
-
-    /**
-     * 鏈鏉ョエ鏁�
-     */
-    @TableField(exist = false)
-    private BigDecimal ticketsNum;
-
-    /**
-     * 鏈鏉ョエ閲戦(鍏�)
-     */
-    @TableField(exist = false)
-    private BigDecimal ticketsAmount;
-
-    /**
-     * 鏈潵绁ㄦ暟
-     */
-    @TableField(exist = false)
-    private BigDecimal futureTickets;
-
-    /**
-     * 鏈潵绁ㄩ噾棰�(鍏�)
-     */
-    @TableField(exist = false)
-    private BigDecimal futureTicketsAmount;
-
-    @Schema(description = "寮�绁ㄦ暟")
-    @TableField(exist = false)
-    private BigDecimal invoiceNum;
-
-    @Schema(description = "鏈紑绁ㄦ暟")
-    @TableField(exist = false)
-    private BigDecimal noInvoiceNum;
-
-    @Schema(description = "寮�绁ㄩ噾棰�")
-    @TableField(exist = false)
-    private BigDecimal invoiceAmount;
-
-    @Schema(description = "鏈紑绁ㄩ噾棰�")
-    @TableField(exist = false)
-    private BigDecimal noInvoiceAmount;
-
-    @Schema(description = "鏈寮�绁ㄦ暟")
-    @TableField(exist = false)
-    private BigDecimal currentInvoiceNum;
-
-    @TableField(exist = false)
-    @Schema(description = "鏈寮�绁ㄩ噾棰�")
-    private BigDecimal currentInvoiceAmount;
-
-    /**
-     *  浜у搧id
-     */
-    @TableField(exist = false)
-    private Long productId;
-
-    /**
-     * 浜у搧瑙勬牸id
-     */
-    @TableField(exist = false)
-    private Long productModelId;
-
-    @Schema(description = "鍒濆鏈紑绁ㄦ暟")
-    @TableField(exist = false)
-    private BigDecimal originalNoInvoiceNum;
-
-    @Schema(description = "涓存椂鏈紑绁ㄦ暟")
-    @TableField(exist = false)
-    private BigDecimal tempNoInvoiceNum;
-
-    @Schema(description = "涓存椂鏈紑绁ㄩ噾棰�")
-    @TableField(exist = false)
-    private BigDecimal tempnoInvoiceAmount;
-
-    @Schema(description = "涓存椂鏈潵绁ㄦ暟")
-    @TableField(exist = false)
-    private BigDecimal tempFutureTickets;
-
-    @Schema(description = "涓存椂鏈潵绁ㄩ噾棰�")
-    @TableField(exist = false)
-    private BigDecimal tempFutureTicketsAmount;
-
-    @Schema(description = "鐧昏浜�")
-    @TableField(exist = false)
-    private String register;
-
-    @Schema(description = "鐧昏鏃ユ湡")
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
-    @Excel(name = "鐧昏鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
-    @TableField(exist = false)
-    private LocalDateTime registerDate;
-    /**
-     * 閿�鍞悎鍚屽彿
-     */
-    @Excel(name = "閿�鍞悎鍚屽彿")
-    @TableField(exist = false)
-    private String salesContractNo;
-
-    /**
-     * 瀹㈡埛鍚堝悓鍙�
-     */
-    @Excel(name = "瀹㈡埛鍚堝悓鍙�")
-    @TableField(exist = false)
-    private String customerContractNo;
-
-
-    /**
-     * 椤圭洰鍚嶇О
-     */
-    @Excel(name = "椤圭洰鍚嶇О")
-    @TableField(exist = false)
-    private String projectName;
-
-    /**
-     * 褰曞叆鏃ユ湡
-     */
-    @JsonFormat(pattern = "yyyy-MM-dd")
-    @DateTimeFormat(pattern = "yyyy-MM-dd")
-    @TableField(exist = false)
-    private Date entryDate;
-
-    /**
-     * 涓氬姟鍛�
-     */
-    @Excel(name = "涓氬姟鍛�")
-    @TableField(exist = false)
-    private String salesman;
-
-    @TableField(exist = false)
-    private Long customerId;
-
-    /**
-     * 瀹㈡埛鍚嶇О
-     */
-    @Excel(name = "瀹㈡埛鍚嶇О")
-    @TableField(exist = false)
-    private String customerName;
-
-    /**
-     * 褰曞叆浜�
-     */
-    @TableField(exist = false)
-    private String entryPerson;
-
-    @TableField(exist = false)
-    @Schema(description = "褰曞叆浜�")
-    @Excel(name = "褰曞叆浜�")
-    private String entryPersonName;
-
-    /**
-     * 澶囨敞
-     */
-    @Excel(name = "澶囨敞")
-    @TableField(exist = false)
-    private String remarks;
-
-    /**
-     * 闄勪欢鏉愭枡锛屽瓨鍌ㄦ枃浠跺悕绛夌浉鍏充俊鎭�
-     */
-    @TableField(exist = false)
-    private String attachmentMaterials;
-
-
-    /**
-     * 鍚堝悓閲戦锛堜骇鍝佸惈绋庢�讳环锛�
-     */
-    @Excel(name = "鍚堝悓閲戦")
-    @TableField(exist = false)
-    private BigDecimal contractAmount;
-
-    @TableField(exist = false)
-    @Schema(description = "鏈紑绁ㄩ噾棰�(鍏�)")
-    @Excel(name = "鏈紑绁ㄩ噾棰�")
-    private BigDecimal noInvoiceAmountTotal = BigDecimal.ZERO;
-
-    @Schema(description = "绛捐鏃ユ湡")
-    @TableField(exist = false)
-    private LocalDate executionDate;
-
-    @TableField(exist = false)
-    @Schema(description = "宸插紑绁ㄩ噾棰�(鍏�)")
-    @Excel(name = "宸插紑绁ㄩ噾棰�")
-    private BigDecimal invoiceTotal = BigDecimal.ZERO;
-
-    @TableField(exist = false)
-    @Schema(description = "鍥炴閲戦")
-    private BigDecimal receiptPaymentAmountTotal = BigDecimal.ZERO;
-
-    @TableField(exist = false)
-    @Schema(description = "寰呭洖娆鹃噾棰�")
-    private BigDecimal noReceiptAmount = BigDecimal.ZERO;
-
-    @Schema(description = "浠樻鏂瑰紡")
-    @TableField(exist = false)
-    private String paymentMethod;
-
-    @TableField(exist = false)
-    @Schema(description = "鐢熶骇鐘舵��")
-    private String productionStatus = "鏈紑濮�";
-
-    @TableField(fill = FieldFill.INSERT)
-    private Long deptId;
-}
diff --git a/src/main/java/com/ruoyi/sales/service/ShipmentApprovalService.java b/src/main/java/com/ruoyi/sales/service/ShipmentApprovalService.java
deleted file mode 100644
index 6af2c00..0000000
--- a/src/main/java/com/ruoyi/sales/service/ShipmentApprovalService.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.ruoyi.sales.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.sales.pojo.ShipmentApproval;
-import com.ruoyi.sales.pojo.ShippingInfo;
-
-
-public interface ShipmentApprovalService extends IService<ShipmentApproval>{
-    IPage<ShipmentApproval> listPage(Page page, ShipmentApproval req);
-
-}
diff --git a/src/main/java/com/ruoyi/sales/service/impl/ShipmentApprovalServiceImpl.java b/src/main/java/com/ruoyi/sales/service/impl/ShipmentApprovalServiceImpl.java
deleted file mode 100644
index 9c358e7..0000000
--- a/src/main/java/com/ruoyi/sales/service/impl/ShipmentApprovalServiceImpl.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.ruoyi.sales.service.impl;
-
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.ruoyi.sales.mapper.ShipmentApprovalMapper;
-import com.ruoyi.sales.pojo.ShipmentApproval;
-import com.ruoyi.sales.service.ShipmentApprovalService;
-import lombok.RequiredArgsConstructor;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.stereotype.Service;
-
-/**
- * @author :yys
- * @date : 2025/10/22 9:33
- */
-@Service
-@Slf4j
-@RequiredArgsConstructor
-public class ShipmentApprovalServiceImpl extends ServiceImpl<ShipmentApprovalMapper, ShipmentApproval> implements ShipmentApprovalService {
-
-    private final ShipmentApprovalMapper shipmentApprovalMapper;
-
-    @Override
-    public IPage<ShipmentApproval> listPage(Page page, ShipmentApproval req) {
-        IPage<ShipmentApproval> listPage = shipmentApprovalMapper.listPage(page, req);
-        return listPage;
-    }
-}
diff --git a/src/main/resources/mapper/sales/ShipmentApprovalMapper.xml b/src/main/resources/mapper/sales/ShipmentApprovalMapper.xml
deleted file mode 100644
index 68cd664..0000000
--- a/src/main/resources/mapper/sales/ShipmentApprovalMapper.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.ruoyi.sales.mapper.ShipmentApprovalMapper">
-
-    <select id="listPage" resultType="com.ruoyi.sales.pojo.ShipmentApproval">
-        SELECT *,
-        si.shipping_car_number,
-        T2.nick_name AS entry_person_name
-        FROM shipment_approval sa
-                 LEFT JOIN shipping_info si ON sa.shipping_info_id = si.id
-                 LEFT JOIN sales_ledger sl ON sa.sales_ledger_id = sl.id
-                 LEFT JOIN sales_ledger_product slp ON sa.sales_ledger_product_id = slp.id and slp.type = 1
-                 LEFT JOIN sys_user T2 ON sl.entry_person = T2.user_id
-        <where>
-            1=1
-            <if test="req.approveStatus != null and req.approveStatus != '' ">
-                AND  sa.approve_status = #{req.approveStatus}
-            </if>
-            <if test="req.salesContractNo != null and req.salesContractNo != '' ">
-                AND  sl.sales_contract_no LIKE CONCAT('%',#{req.salesContractNo},'%')
-            </if>
-        </where>
-    </select>
-</mapper>
\ No newline at end of file

--
Gitblit v1.9.3