李林
2023-10-07 658d4927d468c47208fd012d9128b09249c07eff
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
package com.chinaztt.mes.production.service;
 
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chinaztt.mes.basic.entity.Location;
import com.chinaztt.mes.production.dto.FeedingDTO;
import com.chinaztt.mes.production.dto.FeedingInDTO;
import com.chinaztt.mes.production.entity.Feeding;
import com.chinaztt.mes.warehouse.dto.FeedingStockDTO;
 
import java.util.List;
 
/**
 * 投料登记
 *
 * @author cxf
 * @date 2020-11-12 10:48:37
 */
public interface FeedingService extends IService<Feeding> {
    /**
     * 查询投料信息
     *
     * @param gen
     * @return
     */
    List<FeedingDTO> getFeedingByWorkstationId(QueryWrapper<FeedingDTO> gen);
 
    /**
     * 旧版本投料,将物料从线边仓或者预留投入到 投料登记中 再从投料登记中扣除数量 该方法暂停使用中
     *
     * @param feedingInDTO
     * @return
     */
    boolean saveList(FeedingInDTO feedingInDTO);
 
    /**
     * 投料,将物料从线边仓或者预留 移库到已投料库位置中
     *
     * @param feedingInDTO
     * @return
     */
    boolean feeding(FeedingInDTO feedingInDTO);
 
    /**
     * 退料 旧版本投料,将物料从线边仓或者预留投入到 投料登记中
     *
     * @param feedingList
     * @return
     */
    boolean updateList(List<FeedingDTO> feedingList);
 
    /**
     * 退料 旧版本投料,将物料从线边仓或者预留投入到 投料登记中
     *
     * @param feedingList
     * @return
     */
    boolean rejectFeeding(List<FeedingDTO> feedingList);
 
    /**
     * PDA查询所有
     *
     * @param gen
     * @return
     */
    List<JSONObject> pdaList(QueryWrapper<FeedingDTO> gen);
 
    /**
     * PDA投料
     *
     * @param feedingDTO
     * @return
     */
    void pdaAdd(FeedingDTO feedingDTO);
 
    /**
     * PDA退料
     *
     * @param feedingDTO
     * @return
     */
    void pdaReturn(FeedingDTO feedingDTO);
 
 
    /**
     * PDA投料新
     *
     * @param feedingStockDTO
     * @return
     */
    void pdaAdd(FeedingStockDTO feedingStockDTO);
 
    /**
     * PDA退料新
     *
     * @param feedingStockDTO
     * @return
     */
    void pdaReturn(FeedingStockDTO feedingStockDTO);
 
    /**
     * 根据工作站获取退料库位(线边仓,待处理物料库位)
     * @param workstationId
     * @return
     */
    List<Location> getReturnLocations(Long workstationId);
}