zouyu
2025-10-23 0e5bddf6084d3dfb7bcad7217d4320898416eba3
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
package com.ruoyi.inspect.service;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.basic.dto.*;
import com.ruoyi.basic.pojo.IfsInventoryQuantity;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.inspect.dto.OrderSplitDTO;
import com.ruoyi.inspect.dto.SampleProductDto;
import com.ruoyi.inspect.pojo.InsOrder;
import com.ruoyi.inspect.dto.CopperInsOrderDto;
import com.ruoyi.inspect.dto.RawMaterialStandardTreeDto;
import org.springframework.web.multipart.MultipartFile;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;
 
/**
 * @Author zhuo
 * @Date 2024/7/31
 */
public interface RawMaterialOrderService {
 
    Result selectStandardTreeListByPartNo(String partNo);
 
    /**
     * 报检查询
     * @param page
     * @param ifsInventoryQuantity
     * @return
     */
    IPage<IfsInventoryQuantity> getWarehouseSubmit(IPage<IfsInventoryQuantity> page, IfsInventoryQuantity ifsInventoryQuantity);
 
    /**
     * 查询检验值
     * @param page
     * @param ifsInventoryQuantityDto
     * @return
     */
    IPage<IfsInventoryQuantityDto> getIfsByStateOne(IPage<IfsInventoryQuantityDto> page, IfsInventoryQuantityDto ifsInventoryQuantityDto);
 
    int inspectionReport(List<Long> ids,String orderType);
 
    int revokeInspectionReport(Long id);
 
    List<IfsInventoryQuantityDto> printLabel(List<Integer> ids);
 
    int inspectionReportOne(IfsInventoryQuantity ifsInventoryQuantity);
 
    String getIndustryChain(Integer id);
 
    /**
     * 原材料撤销下单
     * @param ifsInventoryId
     * @return
     */
    boolean repealRawOrder(Long ifsInventoryId);
 
    /**
     * 添加免检订单
     * @param list
     * @param insOrder
     * @return
     */
    int addExemptionOrder(List<SampleProductDto> list, InsOrder insOrder);
 
    IPage<IfsInventoryQuantityCheckDto> selectIfsInventoryQuantity(Page<IfsInventoryQuantityCheckDto> page, IfsInventoryQuantityCheckDto ifsInventoryQuantity);
 
    /**
     * 查询已检验
     * @param page
     * @param ifsInventoryQuantityDto
     * @return
     */
    IPage<IfsInventoryQuantitySupplierDto>  getIfsByOver(Page<IfsInventoryQuantitySupplierDto> page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto);
 
    int delIfsInventory(Integer id);
 
    /**
     * 原材料放行免检
     * @param ifsInventoryId
     * @return
     */
    boolean rawOrderRelease(Long ifsInventoryId, String partDetail);
 
    /**
     * 原材料下单通知免检或者多次检验
     * @param ifsInventoryId
     * @return
     */
    int notificationRawOrder(Long ifsInventoryId);
 
    /**
     * 手动添加原材信息
     * @param ifsInventoryQuantity
     */
    void addIfsInventoryQuantity(IfsInventoryQuantity ifsInventoryQuantity);
 
 
    /**
     * 铜单丝下单免检
     * @param list
     * @param copperInsOrder
     */
    int addRawCopperOrderExemptionOrder(List<SampleProductDto> list, CopperInsOrderDto copperInsOrder);
 
    /**
     * 让步u放行
     * @param ifsInventoryId
     * @return
     */
    boolean concessionRelease(Long ifsInventoryId);
 
    /**
     * 原材料进厂撤销下单
     * @param enterOrderId
     * @return
     */
    boolean repealEnterRawOrder(Integer enterOrderId);
 
    /**
     * 原材料季度撤销下单
     * @param quarterOrderId
     * @return
     */
    boolean repealQuarterRawOrder(Integer quarterOrderId);
 
    /**
     * 原材料报检全部信息导出
     * @param dto
     * @param response
     */
    void rawAllExport(IfsInventoryQuantitySupplierDto dto, HttpServletResponse response) throws UnsupportedEncodingException;
 
    /**
     * 原材料查询可以季度检验的内容
     * @param page
     * @param ifsInventoryQuantityDto
     * @return
     */
    IPage<IfsInventoryQuantitySupplierDto> getIfsByQuarter(Page page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto);
 
    /**
     * advancedGodown
     * @param ifsInventoryId
     * @return
     */
    boolean advancedGodown(Long ifsInventoryId);
 
    void downloadTemplate(HttpServletResponse response);
 
    Result importSplitOrderData(MultipartFile file,Long ifsId, HttpServletRequest request);
 
    boolean confirmSplitOrder(OrderSplitDTO orderSplitDTO);
}