hyingbo
6 天以前 cc0e9036de6e922e8fe254fef01d8de9996024b7
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
159
160
161
162
163
164
package org.jeecg.modules.dnc.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.dnc.entity.DocInfo;
import org.jeecg.modules.dnc.entity.ProcessStream;
import org.jeecg.modules.dnc.request.ProcessStreamRequest;
import org.jeecg.modules.dnc.request.TreeInfoRequest;
import org.jeecg.modules.system.entity.MdcProduction;
import org.jeecg.modules.system.entity.SysUser;
 
import java.util.Collection;
import java.util.List;
 
public interface IProcessStreamService extends IService<ProcessStream> {
    /**
     * 添加工序
     * @param stream
     * @return
     */
    boolean addProcessStream(ProcessStream stream);
 
    /**
     * 编辑工序信息
     * @param id
     * @param stream
     * @return
     */
    boolean editProcessStream(String id, ProcessStream stream);
 
    /**
     * 删除工序信息 逻辑删除
     * @param id
     * @return
     */
    boolean deleteProcessStream(String id);
 
    /**
     * 查询部件/零件节点下的工序列表
     * @param request
     * @return
     */
    List<ProcessStream> findByNodeParams(ProcessStreamRequest request);
 
    /**
     * 获取产品关联的工序信息(包含部件/零件)
     * @param productId
     * @return
     */
    List<ProcessStream> findByProductId(String productId);
 
    /**
     * 获取部件关联的工序信息(包含零件)
     * @param componentId
     * @return
     */
    List<ProcessStream> findByComponentId(String componentId);
 
    /**
     * 获取零件关联的工序信息
     * @param psvId
     * @return
     */
    List<ProcessStream> findBypsvId(String psvId);
 
    /**
     * 获取零件下的工序号
     * @param processNo
     * @param psvsId
     * @return
     */
    ProcessStream findByProcessNoAndPartsId(String processNo, String psvsId);
    /**
     * 获取部件下的工序号
     * @param processNo
     * @param componentId
     * @return
     */
    ProcessStream findByProcessNoAndComponentId(String processNo, String componentId);
 
    /**
     * 检查PN码对应的设备是否存在可加工工序
     * @param pnCode
     * @param deviceNo
     * @return
     */
    List<ProcessStream> validateDeviceProcessInfo(String pnCode, String deviceNo);
 
    /**
     * 根据用户id获取授权的工序信息
     * @param userId
     * @return
     */
    List<ProcessStream> getByuserPerms(String userId);
 
    /**
     * 根据用户id获取授权的工序信息
     * @param userId
     * @param queryParam 查询条件
     * @return
     */
    List<ProcessStream> getByuserPerms(String userId,String queryParam);
 
    /**
     * 分配部门权限
     * @param processStream
     * @param departmentList
     * @return
     */
    boolean assignAddDepart(ProcessStream processStream, Collection<MdcProduction> departmentList);
 
 
    /**
     * 根据一组部件和零件查找工序
     * @param productId
     * @param componentIds
     * @param partsIds
     * @return
     */
    List<ProcessStream> getByComponentIdList(String productId, List<String> componentIds,List<String> partsIds);
 
    /**
     * 分配部门权限
     * @param processStream
     * @param departmentList
     * @return
     */
    boolean assignRemoveDepart(ProcessStream processStream, Collection<MdcProduction> departmentList);
 
 
    /**
     * 分配用户权限
     * @param processStream
     * @param userList
     * @return
     */
    boolean assignAddUser(ProcessStream processStream, Collection<SysUser> userList);
 
    /**
     * 移除用户权限
     * @param processStream
     * @param userList
     * @return
     */
    boolean assignRemoveUser(ProcessStream processStream, Collection<SysUser> userList);
 
    /**
     * 通过工序号、工序名称等查询对应电子样板
     * @param treeInfoRequest
     * @return
     */
    List<DocInfo> getByProcessStreamOtherFile(TreeInfoRequest treeInfoRequest);
 
    /**
     * 通过工序号、工序名称等查询对应NC文件
     * NC文件存在设备类下面
     * @param treeInfoRequest
     * @return
     */
    List<DocInfo> getByProcessStreamNCFile(TreeInfoRequest treeInfoRequest);
 
    boolean assignPermission(Object entity, Collection<SysUser> userList, boolean isAdd);
 
    boolean assignDepartPermission(Object entity, Collection<MdcProduction> departments, boolean isAdd);
}