ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
package jnpf.flowable.service;
 
import jnpf.base.Pagination;
import jnpf.base.service.SuperService;
import jnpf.exception.WorkFlowException;
import jnpf.flowable.entity.OperatorEntity;
import jnpf.flowable.model.candidates.CandidateCheckVo;
import jnpf.flowable.model.candidates.CandidateUserVo;
import jnpf.flowable.model.operator.FlowBatchModel;
import jnpf.flowable.model.operator.OperatorVo;
import jnpf.flowable.model.task.FlowModel;
import jnpf.flowable.model.task.TaskPagination;
import jnpf.flowable.model.templatenode.BackNodeModel;
import jnpf.model.FlowWorkListVO;
import jnpf.permission.model.user.WorkHandoverModel;
 
import java.util.List;
import java.util.Map;
 
/**
 * 类的描述
 *
 * @author JNPF@YinMai Info. Co., Ltd
 * @version 5.0.x
 * @since 2024/4/18 15:29
 */
public interface OperatorService extends SuperService<OperatorEntity> {
 
    /**
     * 经办实体
     *
     * @param id 经办主键
     */
    OperatorEntity getInfo(String id) throws WorkFlowException;
 
    /**
     * 列表
     *
     * @param taskId 任务主键
     */
    List<OperatorEntity> getList(String taskId);
 
    /**
     * 列表
     *
     * @param pagination 参数
     */
    List<OperatorVo> getList(TaskPagination pagination);
 
    /**
     * 处理经办
     *
     * @param flowModel 参数
     */
    List<OperatorEntity> handleOperator(FlowModel flowModel) throws Exception;
 
    /**
     * 同意
     *
     * @param id        经办主键
     * @param flowModel 参数
     */
    void auditWithCheck(String id, FlowModel flowModel) throws Exception;
 
    /**
     * 同意
     *
     * @param id        经办主键
     * @param flowModel 参数
     */
    void audit(String id, FlowModel flowModel) throws Exception;
 
    /**
     * 同意(发起时自动通过)
     *
     * @param operator  经办实体
     * @param flowModel 参数
     */
    void audit(OperatorEntity operator, FlowModel flowModel) throws Exception;
 
    /**
     * 签收
     *
     * @param flowModel 参数,ids 、type 0 签收 1 退签
     */
    void sign(FlowModel flowModel) throws WorkFlowException;
 
    /**
     * 开始办理
     *
     * @param flowModel 参数,ids
     */
    void startHandle(FlowModel flowModel) throws WorkFlowException;
 
    /**
     * 暂存
     *
     * @param id        经办主键
     * @param flowModel 参数
     */
    void saveAudit(String id, FlowModel flowModel) throws WorkFlowException;
 
    /**
     * 加签
     *
     * @param id        经办主键
     * @param flowModel 参数
     */
    void addSign(String id, FlowModel flowModel) throws Exception;
 
    /**
     * 获取加签的人
     *
     * @param id         经办主键
     * @param pagination 参数
     */
    List<CandidateUserVo> getReduceList(String id, Pagination pagination) throws WorkFlowException;
 
    /**
     * 减签
     *
     * @param id        记录主键
     * @param flowModel 参数
     */
    void reduce(String id, FlowModel flowModel) throws WorkFlowException;
 
    /**
     * 获取退回的节点
     *
     * @param id 经办主键
     */
    List<BackNodeModel> getFallbacks(String id) throws WorkFlowException;
 
    /**
     * 退回
     *
     * @param id        经办主键
     * @param flowModel 参数
     */
    void back(String id, FlowModel flowModel) throws Exception;
 
    /**
     * 撤回
     *
     * @param id        记录主键
     * @param flowModel 参数
     */
    void recall(String id, FlowModel flowModel) throws WorkFlowException;
 
    /**
     * 转审
     *
     * @param id        经办主键
     * @param flowModel 参数
     */
    void transfer(String id, FlowModel flowModel) throws Exception;
 
    /**
     * 协办
     *
     * @param id        经办主键
     * @param flowModel 参数
     */
    void assist(String id, FlowModel flowModel) throws WorkFlowException;
 
    /**
     * 协办保存
     *
     * @param id        经办主键
     * @param flowModel 参数
     */
    void assistSave(String id, FlowModel flowModel) throws WorkFlowException;
 
    /**
     * 批量审批流程分类列表
     */
    List<FlowBatchModel> batchFlowSelector();
 
    /**
     * 批量审批流程版本列表
     *
     * @param templateId 流程定义主键
     */
    List<FlowBatchModel> batchVersionSelector(String templateId);
 
    /**
     * 批量审批节点列表
     *
     * @param flowId 流程定义版本主键
     */
    List<FlowBatchModel> batchNodeSelector(String flowId);
 
    /**
     * 批量审批节点属性
     *
     * @param flowModel 参数
     */
    Map<String, Object> batchNode(FlowModel flowModel) throws WorkFlowException;
 
    /**
     * 批量审批获取候选人
     *
     * @param flowId     版本主键
     * @param operatorId 经办主键
     * @param batchType  类型,0.同意  1.拒绝
     */
    CandidateCheckVo batchCandidates(String flowId, String operatorId, Integer batchType) throws WorkFlowException;
 
    /**
     * 批量审批
     *
     * @param flowModel 参数
     */
    void batch(FlowModel flowModel) throws Exception;
 
    /**
     * 流程交接
     *
     * @param fromId 移交人
     */
    FlowWorkListVO flowWork(String fromId);
 
    /**
     * 流程交接
     *
     * @param workHandoverModel 参数
     */
    boolean flowWork(WorkHandoverModel workHandoverModel);
 
}