|
|
@@ -88,6 +88,12 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
88
|
88
|
@Override
|
|
89
|
89
|
@Transactional
|
|
90
|
90
|
public int editCaseApplication(CaseApplication caseApplication) {
|
|
|
91
|
+ //根据仲裁费用计费规则计算应缴费用
|
|
|
92
|
+ //暂时设置计费比率为0.01
|
|
|
93
|
+ BigDecimal feeRate = new BigDecimal(0.01);
|
|
|
94
|
+ BigDecimal feePayable = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
|
95
|
+ caseApplication.setFeePayable(feePayable);
|
|
|
96
|
+
|
|
91
|
97
|
int rows = caseApplicationMapper.updataCaseApplication(caseApplication);
|
|
92
|
98
|
List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
|
|
93
|
99
|
if(caseAffiliates!=null&&caseAffiliates.size()>0){
|
|
|
@@ -183,14 +189,20 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
183
|
189
|
@Override
|
|
184
|
190
|
@Transactional
|
|
185
|
191
|
public String importCaseApplication(List<CaseApplication> caseApplicationList, String operName) {
|
|
186
|
|
- StringBuilder successMsg = new StringBuilder();
|
|
187
|
192
|
StringBuilder failureMsg = new StringBuilder();
|
|
|
193
|
+ StringBuilder successMsg = new StringBuilder();
|
|
188
|
194
|
int successNum = 0;
|
|
189
|
195
|
int failureNum = 0;
|
|
190
|
196
|
if(caseApplicationList!=null&&caseApplicationList.size()>0){
|
|
191
|
197
|
List<CaseApplication> caseApplicationListinsert = new ArrayList<>();
|
|
192
|
198
|
for (int i = 0; i < caseApplicationList.size(); i++){
|
|
193
|
199
|
CaseApplication caseApplication = caseApplicationList.get(i);
|
|
|
200
|
+ //根据仲裁费用计费规则计算应缴费用
|
|
|
201
|
+ //暂时设置计费比率为0.01
|
|
|
202
|
+ BigDecimal feeRate = new BigDecimal(0.01);
|
|
|
203
|
+ BigDecimal feePayable = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
|
204
|
+ caseApplication.setFeePayable(feePayable);
|
|
|
205
|
+
|
|
194
|
206
|
//赋值CaseApplication的案件关联人信息
|
|
195
|
207
|
List<CaseAffiliate> caseAffiliatesnew = new ArrayList<>();
|
|
196
|
208
|
assignmentCaseAffiliates(caseApplication,caseAffiliatesnew);
|
|
|
@@ -203,10 +215,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
203
|
215
|
caseApplicationListinsert.add(caseApplication);
|
|
204
|
216
|
}
|
|
205
|
217
|
}
|
|
206
|
|
- // 编号存在不导入
|
|
207
|
|
- if(StringUtils.isNotEmpty(failureMsg)){
|
|
208
|
|
- return failureMsg.toString();
|
|
209
|
|
- }
|
|
|
218
|
+
|
|
210
|
219
|
if(caseApplicationListinsert!=null&&caseApplicationListinsert.size()>0){
|
|
211
|
220
|
List<CaseApplication> caseApplicationListinsertDiffer = caseApplicationListinsert.stream().collect(
|
|
212
|
221
|
collectingAndThen(
|
|
|
@@ -262,8 +271,13 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
262
|
271
|
}else {
|
|
263
|
272
|
throw new ServiceException("导入立案申请数据不能为空!");
|
|
264
|
273
|
}
|
|
|
274
|
+ // 编号存在不导入
|
|
|
275
|
+ if(StringUtils.isNotEmpty(failureMsg)){
|
|
|
276
|
+ return failureMsg.append(successMsg).toString();
|
|
|
277
|
+ }else {
|
|
265
|
278
|
|
|
266
|
|
- return successMsg.toString();
|
|
|
279
|
+ return successMsg.toString();
|
|
|
280
|
+ }
|
|
267
|
281
|
}
|
|
268
|
282
|
|
|
269
|
283
|
@Override
|
|
|
@@ -386,7 +400,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
386
|
400
|
|
|
387
|
401
|
//发送短信通知
|
|
388
|
402
|
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
|
389
|
|
- request.setTemplateId("1931000");
|
|
|
403
|
+ request.setTemplateId("1947342");
|
|
390
|
404
|
|
|
391
|
405
|
CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
|
|
392
|
406
|
String caseNum = caseApplicationselect.getCaseNum();
|
|
|
@@ -410,7 +424,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
410
|
424
|
Arbitrator arbitratorselect = arbitratorList.get(i);
|
|
411
|
425
|
//给仲裁员发送短信通知
|
|
412
|
426
|
request.setPhone(arbitratorselect.getTelephone());
|
|
413
|
|
- // 1931000 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
|
|
427
|
+ // 1947342 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
|
414
|
428
|
String name = arbitratorselect.getArbitratorName();
|
|
415
|
429
|
request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
|
|
416
|
430
|
SmsUtils.sendSms(request);
|
|
|
@@ -427,7 +441,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
427
|
441
|
int identityType = caseAffiliateselect.getIdentityType();
|
|
428
|
442
|
//给申请人、被申请人发送短信通知
|
|
429
|
443
|
request.setPhone(caseAffiliateselect.getContactTelphone());
|
|
430
|
|
- // 1931000 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
|
|
444
|
+ // 1947342 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
|
431
|
445
|
String name = caseAffiliateselect.getName();
|
|
432
|
446
|
request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
|
|
433
|
447
|
SmsUtils.sendSms(request);
|
|
|
@@ -490,6 +504,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
490
|
504
|
caseApplicationNew.setClaimInterestOwed(caseApplicationinsertDiffer.getClaimInterestOwed());
|
|
491
|
505
|
caseApplicationNew.setClaimPrinciOwed(caseApplicationinsertDiffer.getClaimPrinciOwed());
|
|
492
|
506
|
caseApplicationNew.setClaimLiquidDamag(caseApplicationinsertDiffer.getClaimLiquidDamag());
|
|
|
507
|
+ caseApplicationNew.setFeePayable(caseApplicationinsertDiffer.getFeePayable());
|
|
493
|
508
|
}
|
|
494
|
509
|
|
|
495
|
510
|
|