昨天 684e4306a08feeae188070f264148e6765da8dcf
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.ruoyi.outsourcing.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.outsourcing.dto.OutsourcingOrderDto;
import com.ruoyi.outsourcing.pojo.OutsourcingOrder;
import jakarta.servlet.http.HttpServletResponse;
 
import java.util.List;
 
/**
 * 委外订单 Service
 */
public interface IOutsourcingOrderService extends IService<OutsourcingOrder> {
 
    /**
     * 委外订单列表(配合 startPage 分页)
     */
    List<OutsourcingOrder> selectOrderList(OutsourcingOrderDto dto);
 
    /**
     * 委外订单详情(含产品明细)
     */
    OutsourcingOrderDto getDetail(Long id);
 
    /**
     * 新增委外订单(草稿)
     */
    Long saveOrder(OutsourcingOrderDto dto);
 
    /**
     * 修改委外订单,仅草稿状态允许
     */
    boolean updateOrder(OutsourcingOrderDto dto);
 
    /**
     * 删除委外订单,仅草稿状态允许
     */
    boolean deleteOrders(List<Long> ids);
 
    /**
     * 提交:草稿 -> 已确认
     */
    boolean submit(Long id);
 
    /**
     * 完成:已确认 -> 已完成
     */
    boolean complete(Long id);
 
    /**
     * 作废:草稿/已确认 -> 已作废
     */
    boolean cancel(Long id, String cancelReason);
 
    /**
     * 委外订单导出
     */
    void exportOrders(HttpServletResponse response, OutsourcingOrderDto dto);
}