qitz пре 2 година
родитељ
комит
7fe8e9c1e4

+ 420
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/mscase/CaseApplicationVO.java Прегледај датотеку

@@ -0,0 +1,420 @@
1
+package com.ruoyi.wisdomarbitrate.domain.vo.mscase;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import com.ruoyi.common.annotation.Excel;
5
+import com.ruoyi.common.core.domain.BaseEntity;
6
+import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliate;
7
+import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAttach;
8
+import lombok.Data;
9
+
10
+import java.math.BigDecimal;
11
+import java.util.Date;
12
+import java.util.List;
13
+
14
+@Data
15
+public class CaseApplicationVO {
16
+    private static final long serialVersionUID = 1L;
17
+    /**
18
+     * 查询案件时区分是否待办案件,0待办案件,1已办案件
19
+     */
20
+    private String selectCaseStatus;
21
+
22
+    /** ID */
23
+    private Long id;
24
+    /** 案件名称 */
25
+    @Excel(name = "案件名称")
26
+    private String caseName;
27
+    /** 案件编号 */
28
+//    @Excel(name = "案件编号")
29
+    private String caseNum;
30
+    /** 案件标的 */
31
+    @Excel(name = "案件标的")
32
+    private BigDecimal caseSubjectAmount;
33
+    /**
34
+     * 模板id
35
+     */
36
+    private Long templateId;
37
+
38
+
39
+
40
+    /** 立案日期 */
41
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
42
+    private Date registerDate;
43
+    /** 仲裁方式 */
44
+    private Integer arbitratMethod;
45
+    /**
46
+     * 是否导入,0手动录入,1导入,默认0
47
+     */
48
+    private Integer importFlag;
49
+    /** 仲裁方式名称 */
50
+    private String arbitratMethodName;
51
+
52
+    /** 案件状态 */
53
+    private Integer caseStatus;
54
+    private String caseStatusstr;
55
+
56
+    /** 申请人是否书面审理 */
57
+    private Integer applicantIsWrittenHear;
58
+
59
+    /** 被申请人是否书面审理 */
60
+    private Integer respondentIsWrittenHear;
61
+    /** 开庭方式是否一致 */
62
+    private Integer arbitraMethodIssame;
63
+    /** 仲裁方式说明 */
64
+    private String arbitratMethodIllustrate;
65
+
66
+
67
+    /** 案件申请表ID */
68
+    private Long caseAppliId;
69
+
70
+    /** 开庭日期 */
71
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
72
+    private Date hearDate;
73
+
74
+    /** 借款开始日期 */
75
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
76
+    @Excel(name = "借款开始日期")
77
+    private Date loanStartDate;
78
+    /** 借款结束日期 */
79
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
80
+    @Excel(name = "借款结束日期")
81
+    private Date loanEndDate;
82
+    /** 合同编号 */
83
+    @Excel(name = "合同编号")
84
+    private String contractNumber;
85
+    /** 申请人主张欠本金 */
86
+    @Excel(name = "申请人主张欠本金")
87
+    private BigDecimal claimPrinciOwed;
88
+    /** 申请人主张欠利息 */
89
+    @Excel(name = "申请人主张欠利息")
90
+    private BigDecimal claimInterestOwed;
91
+    /** 申请人主张违约金 */
92
+    @Excel(name = "申请人主张违约金")
93
+    private BigDecimal claimLiquidDamag;
94
+    /** 申请人请求仲裁庭裁决 */
95
+    @Excel(name = "申请人请求仲裁庭裁决",width = 36)
96
+    private String requestRule;
97
+
98
+    /** 是否财产保全申请 */
99
+    @Excel(name = "是否财产保全申请",width = 26,combo= {"是","否"},readConverterExp = "0=否,1=是")
100
+    private Integer properPreser;
101
+    /** 申请人仲裁请求及事实和理由 */
102
+    @Excel(name = "申请人仲裁请求及事实和理由",width = 36)
103
+    private String arbitratClaims;
104
+    /** 仲裁应缴费用 */
105
+    private BigDecimal feePayable;
106
+
107
+    /** 开始在线视频时间 */
108
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
109
+    private Date beginVideoDate;
110
+    /** 在线视频人员 */
111
+    private String onlineVideoPerson;
112
+
113
+    /** 仲裁员id */
114
+    private String arbitratorId;
115
+    /** 仲裁员名称 */
116
+    private String arbitratorName;
117
+
118
+    /** 案件描述 */
119
+    private String caseDescribe;
120
+    /** 裁决书URL */
121
+    private String  filearbitraUrl;
122
+
123
+    /** 是否同意组庭 */
124
+    private Integer isAgreePendTral;
125
+
126
+    /** 是否有异议需要举证 */
127
+    private Integer objectionAddEviden;
128
+    /** 是否需要开庭审理 */
129
+    private Integer openCourtHear;
130
+
131
+    /** 是否仲裁反请求 */
132
+    private Integer adjudicaCounter;
133
+    /**
134
+     * 仲裁反请求原因
135
+     */
136
+    private String adjudicaCounterReason;
137
+
138
+    /** 被申请人是否缺席 */
139
+    private Integer isAbsence;
140
+    /** 是否管辖异议申请 */
141
+    private Integer objectiJuris;
142
+    /** 被申请人质证意见 */
143
+    private String responCrossOpin;
144
+    /** 被申请人的答辩意见 */
145
+    private String responDefenOpini;
146
+    /** 申请人是否缺席 */
147
+    private Integer appliIsAbsen;
148
+
149
+    /** 申请人质证意见 */
150
+    private String applicaCrossOpin;
151
+
152
+    /** 支付状态 */
153
+    private Integer paymentStatus;
154
+
155
+    /** 支付状态描述 */
156
+    private String paymentStatusName;
157
+    /**
158
+     * 支付方式code,0线上支付,1线下支付
159
+     */
160
+    private Integer payTypeCode;
161
+    /**
162
+     * 支付方式name,0线上支付,1线下支付
163
+     */
164
+    private String payTypeName;
165
+
166
+
167
+
168
+    // 导入校验失败信息
169
+    private StringBuilder errorMsg;
170
+    /**
171
+     * 是否锁定,0-否,1-是
172
+     */
173
+    private Integer lockStatus;
174
+    /** 案件状态名称 */
175
+    private String caseStatusName;
176
+    /** 是否同意审核 */
177
+    private Integer agreeOrNotCheck;
178
+    /** 申请人名称 */
179
+    private String applicantName;
180
+    /** 被申请人名称 */
181
+    private String respondentName;
182
+    /**
183
+     * 用户身份证号
184
+     */
185
+    private String idCard;
186
+    /**
187
+     * 用户id
188
+     */
189
+    private String userId;
190
+    /**
191
+     * 登录用户用户名
192
+     */
193
+    private String loginUserName;
194
+    private List<Long> deptIds;
195
+    /**
196
+     * 部门长状态
197
+     */
198
+    private List<Integer> deptHeadStatus;
199
+    /**
200
+     * 代理人角色有关部门
201
+     */
202
+    private List<Long> agentDeptIds;
203
+    /**
204
+     * 财务状态
205
+     */
206
+    private Integer financeStatus;
207
+    /**
208
+     * 是否是被申请人,仲裁员,部门长,财务,代理人,0-否,1-是
209
+     */
210
+    private Integer isOtherRole;
211
+    /**
212
+     * 案件日志id
213
+     */
214
+    private Long caseLogId;
215
+    /** 仲裁结果 */
216
+    private String caseResult;
217
+
218
+    /** 案件关联人信息 */
219
+    private List<MsCaseAffiliate> caseAffiliates;
220
+
221
+
222
+
223
+    private List<Integer> caseStatusList;
224
+
225
+    private List<Integer> annexTypeList;
226
+
227
+    private Integer annexType;
228
+    /**
229
+     * 案件附件列表
230
+     */
231
+    private List<MsCaseAttach> caseAttachList;
232
+
233
+
234
+
235
+
236
+    /**
237
+     * 申请人主体信息
238
+     */
239
+    /** 姓名 */
240
+    @Excel(name = "申请人主体信息-申请人(机构)",width = 26)
241
+    private String name;
242
+    /** 身份证号 */
243
+    @Excel(name = "申请人主体信息-代码",width = 26)
244
+    private String identityNum;
245
+    /** 申请人主体信息-法定代表人 */
246
+    @Excel(name = "申请人主体信息-法定代表人",width = 26)
247
+    private String compLegalPerson;
248
+    /** 申请人主体信息-法定代表人 */
249
+    @Excel(name = "申请人主体信息-法定代表人职位",width = 26)
250
+    private String compLegalperPost;
251
+    /**
252
+     * 申请人主体信息-申请人(机构)id
253
+     */
254
+    private String nameId;
255
+
256
+    /** 联系电话 */
257
+    @Excel(name = "申请人主体信息-联系电话",width = 26)
258
+    private String contactTelphone;
259
+    /** 联系地址 */
260
+    @Excel(name = "申请人主体信息-联系地址",width = 26)
261
+    private String contactAddress;
262
+    /** 单位电话 */
263
+    @Excel(name = "申请人主体信息-单位电话",width = 26)
264
+    private String workTelphone;
265
+    /** 单位地址 */
266
+    @Excel(name = "申请人主体信息-单位地址",width = 26)
267
+    private String workAddress;
268
+
269
+    /** 申请人住所 */
270
+    @Excel(name = "申请人主体信息-住所",width = 26)
271
+    private String residenAffiliAppli;
272
+
273
+    /** 申请人邮箱 */
274
+    @Excel(name = "申请人主体信息-邮箱",width = 26)
275
+    private String email;
276
+    /** 代理人姓名 */
277
+    @Excel(name = "申请人主体信息-代理人姓名",width = 26)
278
+    private String nameAgent;
279
+    /** 身份证号 */
280
+    @Excel(name = "申请人主体信息-代理人身份证号",width = 26)
281
+    private String identityNumAgent;
282
+
283
+    /** 联系电话 */
284
+    @Excel(name = "申请人主体信息-代理人联系电话",width = 26)
285
+    private String contactTelphoneAgent;
286
+    /** 联系地址 */
287
+    @Excel(name = "申请人主体信息-代理人联系地址",width = 26)
288
+    private String contactAddressAgent;
289
+    /** 申请人代理人职称 */
290
+    @Excel(name = "申请人主体信息-代理人职称",width = 26)
291
+    private String appliAgentTitle;
292
+    /**
293
+     * 被申请人主体信息
294
+     */
295
+    /** 姓名 */
296
+    @Excel(name = "被申请人主体信息-申请人姓名",width = 26)
297
+    private String debtorName;
298
+    /** 身份证号 */
299
+    @Excel(name = "被申请人主体信息-身份证号",width = 26)
300
+    private String debtorIdentityNum;
301
+    /** 被申请人主体信息-性别 */
302
+    @Excel(name = "被申请人主体信息-性别",width = 26,combo= {"男","女"},readConverterExp = "0=男,1=女")
303
+    private String responSex;
304
+    /** 被申请人主体信息-出生年月日 */
305
+    @Excel(name = "被申请人主体信息-出生年月日",width = 26)
306
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
307
+    private Date responBirth;
308
+    /** 联系电话 */
309
+    @Excel(name = "被申请人主体信息-联系电话",width = 26)
310
+    private String debtorContactTelphone;
311
+    /** 联系地址 */
312
+    @Excel(name = "被申请人主体信息-联系地址",width = 26)
313
+    private String debtorContactAddress;
314
+    /** 被申请人住所 */
315
+    @Excel(name = "被申请人主体信息-住所",width = 26)
316
+    private String residenAffiliRespon;
317
+    /** 单位电话 */
318
+    @Excel(name = "被申请人主体信息-单位电话",width = 26)
319
+    private String debtorWorkTelphone;
320
+    /** 单位地址 */
321
+    @Excel(name = "被申请人主体信息-单位地址",width = 26)
322
+    private String debtorWorkAddress;
323
+    /** 邮箱 */
324
+    @Excel(name = "被申请人主体信息-邮箱",width = 26)
325
+    private String debtorEmail;
326
+
327
+    /** 代理人姓名 */
328
+    @Excel(name = "被申请人主体信息-代理人姓名",width = 26)
329
+    private String debtorNameAgent;
330
+    /** 身份证号 */
331
+    @Excel(name = "被申请人主体信息-代理人身份证号",width = 26)
332
+    private String debtorIdentityNumAgent;
333
+    /** 联系电话 */
334
+    @Excel(name = "被申请人主体信息-代理人联系电话",width = 26)
335
+    private String debtorContactTelphoneAgent;
336
+    /** 联系地址 */
337
+    @Excel(name = "被申请人主体信息-代理人联系地址",width = 26)
338
+    private String debtorContactAddressAgent;
339
+    /**
340
+     * 申请机构id
341
+     */
342
+    private String applicationOrganId;
343
+    /**
344
+     * 版本号
345
+     */
346
+    private Integer version;
347
+    /**
348
+     * 修改案件的提交状态,0-未提交,1-已提交,2-同意,3-拒绝,4-撤销
349
+     */
350
+    private Integer updateSubmitStatus;
351
+    /** 合同名称 */
352
+    private String contractName;
353
+    /**
354
+     * 事实和理由
355
+     */
356
+    private String facts;
357
+    /**
358
+     * 合同甲方
359
+     */
360
+    private String partyA;
361
+    /**
362
+     * 利率
363
+     */
364
+    private String interestRate;
365
+    /**
366
+     * 待还金额
367
+     */
368
+    private String outstandingMoney;
369
+    /**
370
+     * 调解达成协议内容
371
+     */
372
+    private String mediationAgreement;
373
+    /**
374
+     * 金融消费纠纷基本情况
375
+     */
376
+    private String disputes;
377
+    /**
378
+     * 贷款类型
379
+     */
380
+    private String loanType;
381
+    /**
382
+     * 贷款期限
383
+     */
384
+    private String loanTerm;
385
+    /**
386
+     * 本案争议焦点
387
+     */
388
+    private String caseFocus;
389
+    /**
390
+     * 本案事实
391
+     */
392
+    private String caseFacts;
393
+    /**
394
+     * 被申请人对上述材料的质证意见
395
+     */
396
+    private String respondentOpinion;
397
+    /**
398
+     * 申请人对上述材料的质证意见
399
+     */
400
+    private String applicantOpinion;
401
+    /**
402
+     * 批号
403
+     */
404
+    private Integer batchNumber;
405
+
406
+    /**
407
+     * 待办状态,0待办,1已办
408
+     */
409
+    private Integer pendingStatus;
410
+    /** e签宝流程id */
411
+    private String signFlowId;
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+}

+ 1
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/mscase/MsCaseApplicationVO.java Прегледај датотеку

@@ -66,4 +66,5 @@ public class MsCaseApplicationVO extends MsCaseApplication {
66 66
      */
67 67
     private String rejectReason;
68 68
 
69
+
69 70
 }

+ 72
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/SignCheckUtils.java Прегледај датотеку

@@ -0,0 +1,72 @@
1
+package com.ruoyi.wisdomarbitrate.utils;
2
+
3
+import cn.hutool.core.util.StrUtil;
4
+import cn.hutool.crypto.digest.HMac;
5
+import cn.hutool.crypto.digest.HmacAlgorithm;
6
+import cn.hutool.http.HttpRequest;
7
+import cn.hutool.json.JSONUtil;
8
+import com.ruoyi.common.utils.StringUtils;
9
+import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication;
10
+import com.ruoyi.wisdomarbitrate.domain.vo.mscase.CaseApplicationVO;
11
+import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseApplicationVO;
12
+import org.apache.http.HttpResponse;
13
+import org.springframework.beans.BeanUtils;
14
+
15
+import java.nio.charset.StandardCharsets;
16
+
17
+public class SignCheckUtils {
18
+    public static String getSign(String paramsbody, String accessSec, long timestamp) {
19
+        String paramsStr = getParamsStr(paramsbody,  timestamp);
20
+        return generateSign(paramsStr, accessSec);
21
+    }
22
+
23
+    public static String getParamsStr(String paramsbody,long timestamp) {
24
+        StringBuilder strbuild = new StringBuilder();
25
+        if (StringUtils.isNotBlank(paramsbody)) {
26
+            strbuild.append(paramsbody).append('#');
27
+        }
28
+        strbuild.append("#timestamp=").append(timestamp);
29
+        return strbuild.toString();
30
+    }
31
+
32
+    public static String generateSign(String paramsStr, String accessSec) {
33
+        HMac hMac = new HMac(HmacAlgorithm.HmacSHA256, accessSec.getBytes(StandardCharsets.UTF_8));
34
+        return hMac.digestHex(paramsStr);
35
+    }
36
+
37
+    public static void main(String[] args) {
38
+        String accessSec = "mCFMA6ffe938v79m";
39
+        MsCaseApplicationVO application = new MsCaseApplicationVO();
40
+        application.setArbitratClaims("1111");
41
+        application.setCaseStatusName("222");
42
+        application.setCaseNum("234566");
43
+
44
+        CaseApplicationVO caseApplicationVO = new CaseApplicationVO();
45
+        BeanUtils.copyProperties(application,caseApplicationVO);
46
+        boolean importFlag = application.isImportFlag();
47
+        if(importFlag==true){
48
+            caseApplicationVO.setImportFlag(1);
49
+        }else {
50
+            caseApplicationVO.setImportFlag(0);
51
+        }
52
+
53
+
54
+        String paramsbody = JSONUtil.toJsonStr(caseApplicationVO);
55
+        long timestamp = System.currentTimeMillis();
56
+        String signStr = getSign(paramsbody, accessSec, timestamp);
57
+        String urlstr = "http://localhost:8001/callArbitrateCaseApplication/generateCaseApplication";
58
+        HttpResponse httpResponse = (HttpResponse) HttpRequest.post(urlstr)
59
+                .header("timestampstr", String.valueOf(timestamp))
60
+                .header("signstr", signStr)
61
+                .body(paramsbody)
62
+                .execute();
63
+        System.out.println(httpResponse);
64
+
65
+
66
+    }
67
+
68
+
69
+
70
+
71
+
72
+}