buhuazhen
2 天以前 28bc6d67f2f35e312fc1fa30095359cc8b3135a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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.procurementrecord.dto.ReturnSaleProductDto;
import com.ruoyi.sales.dto.SalesLedgerProductDto;
import com.ruoyi.sales.dto.ShippingInfoDto;
import com.ruoyi.sales.pojo.ShippingInfo;
import org.apache.ibatis.annotations.Param;
 
import java.io.IOException;
import java.util.List;
 
/**
 * @author :yys
 * @date : 2025/10/22 9:33
 */
public interface ShippingInfoService extends IService<ShippingInfo>{
    IPage<ShippingInfoDto> listPage(Page page, ShippingInfo req);
 
    boolean deductStock(ShippingInfoDto req) throws IOException;
 
    boolean delete(List<Long> ids);
 
    List<SalesLedgerProductDto> getReturnManagementDtoById( Long shippingId);
 
    List<ShippingInfo> getShippingInfoByCustomerName(String customerName);
 
    /**
     * 一键发货 - 自动审批通过并出库
     * @param req 发货信息
     * @return 是否成功
     */
    boolean oneClickShipping(ShippingInfoDto req) throws IOException;
 
    /**
     * 批量一键发货 - 将销售台账下所有未发货的产品全部发货
     * @param salesLedgerId 销售台账ID
     * @param req 发货信息(发货类型、日期等)
     * @return 是否成功
     */
    boolean batchOneClickShipping(Long salesLedgerId, ShippingInfoDto req) throws IOException;
}