|
|
@@ -22,19 +22,13 @@ import com.ruoyi.common.exception.EsignDemoException;
|
|
22
|
22
|
import com.ruoyi.common.exception.ServiceException;
|
|
23
|
23
|
import com.ruoyi.common.utils.*;
|
|
24
|
24
|
import com.ruoyi.common.utils.file.SaaSAPIFileUtils;
|
|
25
|
|
-
|
|
26
|
|
-
|
|
27
|
|
-
|
|
28
|
25
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
29
|
|
-import com.ruoyi.common.exception.EsignDemoException;
|
|
30
|
|
-import com.ruoyi.common.exception.ServiceException;
|
|
31
|
26
|
import com.ruoyi.system.domain.SysUserRole;
|
|
32
|
27
|
import com.ruoyi.system.mapper.SysRoleMapper;
|
|
33
|
28
|
import com.ruoyi.system.mapper.SysUserMapper;
|
|
34
|
29
|
import com.ruoyi.system.mapper.SysUserRoleMapper;
|
|
35
|
30
|
import com.ruoyi.wisdomarbitrate.domain.vo.ToDoCount;
|
|
36
|
31
|
import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
|
|
37
|
|
-import com.ruoyi.common.utils.bean.BeanUtils;
|
|
38
|
32
|
import com.ruoyi.system.mapper.SysDeptMapper;
|
|
39
|
33
|
import com.ruoyi.wisdomarbitrate.domain.*;
|
|
40
|
34
|
import com.ruoyi.wisdomarbitrate.domain.vo.SendRoomNoMessageVO;
|
|
|
@@ -44,7 +38,6 @@ import com.ruoyi.wisdomarbitrate.utils.SignAward;
|
|
44
|
38
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
45
|
39
|
import org.springframework.stereotype.Service;
|
|
46
|
40
|
import org.springframework.transaction.annotation.Transactional;
|
|
47
|
|
-
|
|
48
|
41
|
import java.io.File;
|
|
49
|
42
|
import java.io.IOException;
|
|
50
|
43
|
import java.math.BigDecimal;
|
|
|
@@ -71,8 +64,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
71
|
64
|
@Autowired
|
|
72
|
65
|
private CaseAffiliateMapper caseAffiliateMapper;
|
|
73
|
66
|
|
|
74
|
|
- @Autowired
|
|
75
|
|
- private CasePaymentRecordMapper casePaymentRecordMapper;
|
|
76
|
67
|
@Autowired
|
|
77
|
68
|
private ArbitrateRecordMapper arbitrateRecordMapper;
|
|
78
|
69
|
@Autowired
|
|
|
@@ -127,25 +118,25 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
127
|
118
|
){
|
|
128
|
119
|
return caseApplicationMapper.selectAdminCaseApplicationList(caseApplication);
|
|
129
|
120
|
}
|
|
130
|
|
-// if(role.getRoleName().equals("仲裁委")
|
|
131
|
|
-// ||role.getRoleName().equals("部门长")){
|
|
132
|
|
-// List<Integer> caseStatusList=new ArrayList<>();
|
|
133
|
|
-// caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
|
|
134
|
|
-// caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION);
|
|
135
|
|
-// caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
|
136
|
|
-// caseApplication.setDeptHeadStatus(caseStatusList);
|
|
137
|
|
-// }
|
|
138
|
|
-// if(role.getRoleName().equals("仲裁员")){
|
|
139
|
|
-// caseApplication.setUserId(String.valueOf(userId));
|
|
140
|
|
-// }
|
|
|
121
|
+ if(role.getRoleName().equals("仲裁委")
|
|
|
122
|
+ ||role.getRoleName().equals("部门长")){
|
|
|
123
|
+ List<Integer> caseStatusList=new ArrayList<>();
|
|
|
124
|
+ caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
|
|
|
125
|
+ caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION);
|
|
|
126
|
+ caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
|
|
127
|
+ caseApplication.setDeptHeadStatus(caseStatusList);
|
|
|
128
|
+ }
|
|
|
129
|
+ if(role.getRoleName().equals("仲裁员")){
|
|
|
130
|
+ caseApplication.setUserId(String.valueOf(userId));
|
|
|
131
|
+ }
|
|
141
|
132
|
if(role.getRoleName().equals("财务")){
|
|
142
|
133
|
caseApplication.setFinanceStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
|
|
143
|
134
|
}
|
|
144
|
|
-// if(role.getRoleName().equals("法律顾问")){
|
|
145
|
|
-// // 查询角色有关的用户部门
|
|
146
|
|
-// List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
|
|
147
|
|
-// caseApplication.setDeptIds(deptIds);
|
|
148
|
|
-// }
|
|
|
135
|
+ if(role.getRoleName().equals("法律顾问")){
|
|
|
136
|
+ // 查询角色有关的用户部门
|
|
|
137
|
+ List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
|
|
|
138
|
+ caseApplication.setDeptIds(deptIds);
|
|
|
139
|
+ }
|
|
149
|
140
|
if(StrUtil.isEmpty(caseApplication.getNameId())&&role.getRoleName().equals("申请人")){
|
|
150
|
141
|
// 查询角色有关的用户部门
|
|
151
|
142
|
caseApplication.setNameId(String.valueOf(sysUser.getDeptId()));
|
|
|
@@ -559,12 +550,12 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
559
|
550
|
List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
|
|
560
|
551
|
Map<String, Long> deptMap =new HashMap<>();
|
|
561
|
552
|
if (caseAffiliates != null && caseAffiliates.size() > 0) {
|
|
562
|
|
- // 查询所有的组织机构,组装成map
|
|
563
|
|
- List<SysDept> deptList = sysDeptMapper.selectDeptList(new SysDept());
|
|
564
|
|
- if (CollectionUtil.isEmpty(deptList)) {
|
|
565
|
|
- deptList = new ArrayList<>();
|
|
566
|
|
- }
|
|
567
|
|
- deptMap = deptList.stream().collect(Collectors.toMap(SysDept::getDeptName, SysDept::getDeptId,(oldV,newV)->newV));
|
|
|
553
|
+ // 查询所有的组织机构,组装成map
|
|
|
554
|
+ List<SysDept> deptList = sysDeptMapper.selectDeptList(new SysDept());
|
|
|
555
|
+ if (CollectionUtil.isEmpty(deptList)) {
|
|
|
556
|
+ deptList = new ArrayList<>();
|
|
|
557
|
+ }
|
|
|
558
|
+ deptMap = deptList.stream().collect(Collectors.toMap(SysDept::getDeptName, SysDept::getDeptId,(oldV,newV)->newV));
|
|
568
|
559
|
|
|
569
|
560
|
for (CaseAffiliate caseAffiliate : caseAffiliates) {
|
|
570
|
561
|
caseAffiliate.setCaseAppliId(caseApplication.getId());
|
|
|
@@ -623,7 +614,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
623
|
614
|
String currentDay = DateUtils.dateTime();
|
|
624
|
615
|
String caseNum = "zc"+ currentDay;
|
|
625
|
616
|
//查询出当天的案件编号的最大值
|
|
626
|
|
- Integer maxCaseNum = caseApplicationMapper.selectCaseNumLike(caseNum,caseNum.length());
|
|
|
617
|
+ Integer maxCaseNum = caseApplicationMapper.selectCaseNumLike(caseNum,caseNum.length());
|
|
627
|
618
|
if(null == maxCaseNum){
|
|
628
|
619
|
caseNum = caseNum + "001";
|
|
629
|
620
|
}else {
|
|
|
@@ -689,7 +680,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
689
|
680
|
|
|
690
|
681
|
}
|
|
691
|
682
|
|
|
692
|
|
- caseAffiliateMapper.updataCaseAffiliate(caseAffiliate);
|
|
|
683
|
+ caseAffiliateMapper.updataCaseAffiliate(caseAffiliate);
|
|
693
|
684
|
}
|
|
694
|
685
|
|
|
695
|
686
|
}
|
|
|
@@ -722,7 +713,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
722
|
713
|
agentUser.setNickName(caseAffiliate.getNameAgent());
|
|
723
|
714
|
agentUser.setUserName(caseAffiliate.getIdentityNumAgent());
|
|
724
|
715
|
agentUser.setPhonenumber(caseAffiliate.getContactTelphoneAgent());
|
|
725
|
|
- agentUser.setPassword(SecurityUtils.encryptPassword(Constants.DEFAULT_PASSWORD));
|
|
|
716
|
+ // agentUser.setPassword(SecurityUtils.encryptPassword(Constants.DEFAULT_PASSWORD));
|
|
726
|
717
|
agentUser.setDeptId(Long.valueOf(caseAffiliate.getApplicationOrganId()));
|
|
727
|
718
|
int insertUserRow = sysUserMapper.insertUser(agentUser);
|
|
728
|
719
|
// 新增角色为申请人
|
|
|
@@ -736,23 +727,28 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
736
|
727
|
}
|
|
737
|
728
|
if (insertUserRow > 0) {
|
|
738
|
729
|
caseAffiliate.setApplicantAgentUserId(String.valueOf(agentUser.getUserId()));
|
|
739
|
|
- // 发送短信 1955400 普通短信 导入后通知申请人认证注册 尊敬的{1},您的申请的仲裁案件已导入,复制访问https://miniapp-3gpama6l759911ef-1321289474.tcloudbaseapp.com/jump-mp.html 进入小程序进行认证注册。如非本人操作,请忽略本短信 已生效
|
|
|
730
|
+ // 明天改下模板id:1956159 普通短信 通知用户认证注册 尊敬的{1},您的代理的案件已接入仲裁系统,复制访问https://miniapp-3gpama6l759911ef-1321289474.tcloudbaseapp.com/jump-mp.html 进入小程序进行认证注册。如非本人操作,请忽略本短信
|
|
740
|
731
|
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
|
741
|
|
- request.setTemplateId("1955400");
|
|
|
732
|
+ request.setTemplateId("1956159");
|
|
742
|
733
|
request.setPhone(agentUser.getPhonenumber());
|
|
743
|
734
|
request.setTemplateParamSet(new String[]{agentUser.getNickName()});
|
|
744
|
735
|
SmsUtils.sendSms(request);
|
|
745
|
736
|
}
|
|
746
|
737
|
} else if (null != agentUser.getDeptId() && !String.valueOf(agentUser.getDeptId()).equals(caseAffiliate.getApplicationOrganId())) {
|
|
747
|
|
- return "申请机构与申请代理人不匹配";
|
|
|
738
|
+// return "该申请代理人已在"+agentUser.getDeptName()+"申请机构下存在,请检查填写信息是否正确";
|
|
|
739
|
+ if(null!=agentUser.getDept()&&StrUtil.isNotEmpty(agentUser.getDept().getDeptName())) {
|
|
|
740
|
+ return "该申请代理人已在【" + agentUser.getDept().getDeptName()+"】申请机构下存在,请检查填写信息是否正确";
|
|
|
741
|
+ }else {
|
|
|
742
|
+ return "该申请代理人已存在,与申请机构不匹配,请检查填写信息是否正确";
|
|
|
743
|
+ }
|
|
748
|
744
|
} else if (null != agentUser.getDeptId() && String.valueOf(agentUser.getDeptId()).equals(caseAffiliate.getApplicationOrganId())){
|
|
749
|
745
|
// 同步用户表和案件关联人表的手机号和名称
|
|
750
|
746
|
caseAffiliate.setContactTelphoneAgent(agentUser.getPhonenumber());
|
|
751
|
747
|
caseAffiliate.setNameAgent(agentUser.getNickName());
|
|
752
|
748
|
caseAffiliate.setApplicantAgentUserId(String.valueOf(agentUser.getUserId()));
|
|
753
|
749
|
// 新增角色为申请人
|
|
754
|
|
- if(agentUser.getRoleIds()!=null) {
|
|
755
|
|
- List<Long> longList = Arrays.asList(agentUser.getRoleIds());
|
|
|
750
|
+ if(CollectionUtil.isNotEmpty(agentUser.getRoles())) {
|
|
|
751
|
+ List<Long> longList = agentUser.getRoles().stream().map(SysRole::getRoleId).collect(Collectors.toList());
|
|
756
|
752
|
if(!longList.contains(roleId)) {
|
|
757
|
753
|
ArrayList<SysUserRole> sysUserRoles = new ArrayList<>();
|
|
758
|
754
|
SysUserRole sysUserRole = new SysUserRole();
|
|
|
@@ -918,48 +914,48 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
918
|
914
|
|
|
919
|
915
|
//对不重复的立案对象集合的立案对象重新组装对应的案件关联人信息
|
|
920
|
916
|
// if(caseApplicationListinsertDiffer!=null&&caseApplicationListinsertDiffer.size()>0){
|
|
921
|
|
- List<CaseApplication> caseApplicationNewList = null;
|
|
922
|
|
- for (int i = 0; i < caseApplicationListinsert.size(); i++){
|
|
923
|
|
- caseApplicationNewList = new ArrayList<>();
|
|
924
|
|
- CaseApplication caseApplicationinsertDiffer = caseApplicationListinsert.get(i);
|
|
925
|
|
- // 设置自动编码
|
|
926
|
|
- caseApplicationinsertDiffer.setCaseNum(generateCaseNum());
|
|
927
|
|
- List<CaseAffiliate> caseAffiliatesnew = new ArrayList<>();
|
|
928
|
|
- CaseApplication caseApplicationNew = new CaseApplication();
|
|
929
|
|
- copyCaseApplication(caseApplicationinsertDiffer,caseApplicationNew);
|
|
930
|
|
- if(caseApplicationListinsert!=null&&caseApplicationListinsert.size()>0){
|
|
931
|
|
- for (int j = 0; j < caseApplicationListinsert.size(); j++){
|
|
932
|
|
- CaseApplication caseApplicationinsert = caseApplicationListinsert.get(j);
|
|
933
|
|
-
|
|
934
|
|
- if(StringUtils.isNotEmpty(caseApplicationinsert.getCaseNum())&&
|
|
935
|
|
- caseApplicationinsert.getCaseNum().equals(caseApplicationinsertDiffer.getCaseNum())){
|
|
936
|
|
-
|
|
937
|
|
- caseAffiliatesnew.addAll(caseApplicationinsert.getCaseAffiliates());
|
|
938
|
|
- }
|
|
|
917
|
+ List<CaseApplication> caseApplicationNewList = null;
|
|
|
918
|
+ for (int i = 0; i < caseApplicationListinsert.size(); i++){
|
|
|
919
|
+ caseApplicationNewList = new ArrayList<>();
|
|
|
920
|
+ CaseApplication caseApplicationinsertDiffer = caseApplicationListinsert.get(i);
|
|
|
921
|
+ // 设置自动编码
|
|
|
922
|
+ caseApplicationinsertDiffer.setCaseNum(generateCaseNum());
|
|
|
923
|
+ List<CaseAffiliate> caseAffiliatesnew = new ArrayList<>();
|
|
|
924
|
+ CaseApplication caseApplicationNew = new CaseApplication();
|
|
|
925
|
+ copyCaseApplication(caseApplicationinsertDiffer,caseApplicationNew);
|
|
|
926
|
+ if(caseApplicationListinsert!=null&&caseApplicationListinsert.size()>0){
|
|
|
927
|
+ for (int j = 0; j < caseApplicationListinsert.size(); j++){
|
|
|
928
|
+ CaseApplication caseApplicationinsert = caseApplicationListinsert.get(j);
|
|
|
929
|
+
|
|
|
930
|
+ if(StringUtils.isNotEmpty(caseApplicationinsert.getCaseNum())&&
|
|
|
931
|
+ caseApplicationinsert.getCaseNum().equals(caseApplicationinsertDiffer.getCaseNum())){
|
|
|
932
|
+
|
|
|
933
|
+ caseAffiliatesnew.addAll(caseApplicationinsert.getCaseAffiliates());
|
|
939
|
934
|
}
|
|
940
|
|
- caseApplicationNew.setCaseAffiliates(caseAffiliatesnew);
|
|
941
|
|
- caseApplicationNewList.add(caseApplicationNew);
|
|
942
|
935
|
}
|
|
|
936
|
+ caseApplicationNew.setCaseAffiliates(caseAffiliatesnew);
|
|
|
937
|
+ caseApplicationNewList.add(caseApplicationNew);
|
|
|
938
|
+ }
|
|
943
|
939
|
|
|
944
|
|
- for (int k = 0; k < caseApplicationNewList.size(); k++){
|
|
945
|
|
- CaseApplication caseApplicationItera = caseApplicationNewList.get(k);
|
|
946
|
|
- // 新增立案信息
|
|
947
|
|
- caseApplicationItera.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
|
|
948
|
|
- caseApplicationItera.setCreateBy(getUsername());
|
|
949
|
|
- int rows = caseApplicationMapper.insertCaseApplication(caseApplicationItera);
|
|
950
|
|
- List<CaseAffiliate> caseAffiliates = caseApplicationItera.getCaseAffiliates();
|
|
951
|
|
- if(caseAffiliates!=null&&caseAffiliates.size()>0){
|
|
952
|
|
- for (CaseAffiliate caseAffiliate : caseAffiliates){
|
|
953
|
|
- caseAffiliate.setCaseAppliId(caseApplicationItera.getId());
|
|
|
940
|
+ for (int k = 0; k < caseApplicationNewList.size(); k++){
|
|
|
941
|
+ CaseApplication caseApplicationItera = caseApplicationNewList.get(k);
|
|
|
942
|
+ // 新增立案信息
|
|
|
943
|
+ caseApplicationItera.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
|
|
|
944
|
+ caseApplicationItera.setCreateBy(getUsername());
|
|
|
945
|
+ int rows = caseApplicationMapper.insertCaseApplication(caseApplicationItera);
|
|
|
946
|
+ List<CaseAffiliate> caseAffiliates = caseApplicationItera.getCaseAffiliates();
|
|
|
947
|
+ if(caseAffiliates!=null&&caseAffiliates.size()>0){
|
|
|
948
|
+ for (CaseAffiliate caseAffiliate : caseAffiliates){
|
|
|
949
|
+ caseAffiliate.setCaseAppliId(caseApplicationItera.getId());
|
|
954
|
950
|
|
|
955
|
|
- }
|
|
956
|
|
- caseAffiliateMapper.batchCaseAffiliate(caseAffiliates);
|
|
957
|
951
|
}
|
|
958
|
|
-
|
|
959
|
|
- successNum++;
|
|
960
|
|
- successMsg.append("<br/>" + successNum + "、立案编号 " + caseApplicationItera.getCaseNum() + " 导入成功");
|
|
|
952
|
+ caseAffiliateMapper.batchCaseAffiliate(caseAffiliates);
|
|
961
|
953
|
}
|
|
962
|
954
|
|
|
|
955
|
+ successNum++;
|
|
|
956
|
+ successMsg.append("<br/>" + successNum + "、立案编号 " + caseApplicationItera.getCaseNum() + " 导入成功");
|
|
|
957
|
+ }
|
|
|
958
|
+
|
|
963
|
959
|
// }
|
|
964
|
960
|
|
|
965
|
961
|
}
|
|
|
@@ -969,7 +965,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
969
|
965
|
}else {
|
|
970
|
966
|
throw new ServiceException("导入立案申请数据不能为空!");
|
|
971
|
967
|
}
|
|
972
|
|
- return successMsg.append(failureMsg.toString()).toString();
|
|
|
968
|
+ return successMsg.append(failureMsg.toString()).toString();
|
|
973
|
969
|
|
|
974
|
970
|
}
|
|
975
|
971
|
|
|
|
@@ -1439,8 +1435,25 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1439
|
1435
|
}
|
|
1440
|
1436
|
caseApplication.setAnnexType(8);
|
|
1441
|
1437
|
// 查询缴费凭证
|
|
1442
|
|
- List<CaseAttach> payOrderList = caseAttachMapper.queryCaseAttachList(caseApplication);
|
|
1443
|
|
- caseApplicationselect.setPayOrderList(payOrderList);
|
|
|
1438
|
+ List<CaseAttach> caseAttachList = caseAttachMapper.queryCaseAttachList(caseApplication);
|
|
|
1439
|
+ if (caseAttachList != null && caseAttachList.size() > 0) {
|
|
|
1440
|
+ for (CaseAttach caseAttach : caseAttachList) {
|
|
|
1441
|
+ String annexName = caseAttach.getAnnexName();
|
|
|
1442
|
+ String prefix = "/profile";
|
|
|
1443
|
+ int startIndex = annexName.indexOf(prefix);
|
|
|
1444
|
+ startIndex += prefix.length();
|
|
|
1445
|
+ String annexPath = "/uploadPath" + annexName.substring(startIndex);
|
|
|
1446
|
+ caseAttach.setAnnexPath(annexPath);
|
|
|
1447
|
+ int startIndexnew = annexName.lastIndexOf("/");
|
|
|
1448
|
+ if(startIndexnew!=-1){
|
|
|
1449
|
+ String annexNamenew = annexName.substring(startIndexnew+1);
|
|
|
1450
|
+ caseAttach.setAnnexName(annexNamenew);
|
|
|
1451
|
+ }
|
|
|
1452
|
+
|
|
|
1453
|
+
|
|
|
1454
|
+ }
|
|
|
1455
|
+ }
|
|
|
1456
|
+ caseApplicationselect.setPayOrderList(caseAttachList);
|
|
1444
|
1457
|
|
|
1445
|
1458
|
return caseApplicationselect;
|
|
1446
|
1459
|
}
|
|
|
@@ -1739,19 +1752,19 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1739
|
1752
|
for(int i = 0;i < idStrList.length;i ++ ){
|
|
1740
|
1753
|
idList.add(Long.parseLong(idStrList[i]));
|
|
1741
|
1754
|
}
|
|
1742
|
|
- // 查询仲裁员电话号
|
|
1743
|
|
- List<SysUser> userList= sysUserMapper.selectUserListByIds(idList);
|
|
1744
|
|
- if(CollectionUtil.isNotEmpty(userList)) {
|
|
1745
|
|
- for (SysUser user : userList) {
|
|
1746
|
|
- //给仲裁员发送短信通知
|
|
1747
|
|
- request.setPhone(user.getPhonenumber());
|
|
1748
|
|
- // 1947342 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
|
1749
|
|
- String name = user.getNickName();
|
|
1750
|
|
- request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
|
|
1751
|
|
- SmsUtils.sendSms(request);
|
|
1752
|
|
-
|
|
1753
|
|
- }
|
|
1754
|
|
- }
|
|
|
1755
|
+ // 查询仲裁员电话号
|
|
|
1756
|
+ List<SysUser> userList= sysUserMapper.selectUserListByIds(idList);
|
|
|
1757
|
+ if(CollectionUtil.isNotEmpty(userList)) {
|
|
|
1758
|
+ for (SysUser user : userList) {
|
|
|
1759
|
+ //给仲裁员发送短信通知
|
|
|
1760
|
+ request.setPhone(user.getPhonenumber());
|
|
|
1761
|
+ // 1947342 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
|
|
1762
|
+ String name = user.getNickName();
|
|
|
1763
|
+ request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
|
|
|
1764
|
+ SmsUtils.sendSms(request);
|
|
|
1765
|
+
|
|
|
1766
|
+ }
|
|
|
1767
|
+ }
|
|
1755
|
1768
|
|
|
1756
|
1769
|
}
|
|
1757
|
1770
|
|
|
|
@@ -1764,7 +1777,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1764
|
1777
|
CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(j);
|
|
1765
|
1778
|
int identityType = caseAffiliateselect.getIdentityType();
|
|
1766
|
1779
|
if(identityType==1){
|
|
1767
|
|
- caseAffiliateselect.setName(caseAffiliateselect.getApplicationOrganName());
|
|
|
1780
|
+ caseAffiliateselect.setName(caseAffiliateselect.getApplicationOrganName());
|
|
1768
|
1781
|
|
|
1769
|
1782
|
}
|
|
1770
|
1783
|
//给申请人、被申请人发送短信通知
|
|
|
@@ -1817,7 +1830,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1817
|
1830
|
|
|
1818
|
1831
|
|
|
1819
|
1832
|
private void assignmentCaseAffiliates(CaseApplication caseApplication, List<CaseAffiliate> caseAffiliatesnew, Map<String, Long> deptMap) {
|
|
1820
|
|
- // 申请人信息
|
|
|
1833
|
+ // 申请人信息
|
|
1821
|
1834
|
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
|
1822
|
1835
|
|
|
1823
|
1836
|
// BeanUtils.copyBeanProp(caseApplication,caseAffiliate);
|
|
|
@@ -1832,7 +1845,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1832
|
1845
|
if(StrUtil.isNotEmpty(s)){
|
|
1833
|
1846
|
StringBuilder errorMsg = caseApplication.getErrorMsg();
|
|
1834
|
1847
|
if(StrUtil.isEmpty(errorMsg)){
|
|
1835
|
|
- errorMsg=new StringBuilder();
|
|
|
1848
|
+ errorMsg=new StringBuilder();
|
|
1836
|
1849
|
}
|
|
1837
|
1850
|
errorMsg.append(s);
|
|
1838
|
1851
|
caseApplication.setErrorMsg(errorMsg);
|
|
|
@@ -1879,27 +1892,27 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1879
|
1892
|
|
|
1880
|
1893
|
|
|
1881
|
1894
|
|
|
1882
|
|
- // 将组织机构id设为申请人名称
|
|
1883
|
|
- if(deptMap.containsKey(caseApplication.getName())){
|
|
1884
|
|
- caseAffiliate.setApplicationOrganId(String.valueOf(deptMap.get(caseApplication.getName())));
|
|
1885
|
|
- caseAffiliate.setApplicationOrganName(caseApplication.getName());
|
|
1886
|
|
- }else {
|
|
1887
|
|
- // 如果不存在则新增
|
|
1888
|
|
- SysDept dept = new SysDept();
|
|
1889
|
|
- dept.setParentId(0L);
|
|
1890
|
|
- dept.setDeptName(caseApplication.getName());
|
|
1891
|
|
- dept.setAncestors("0");
|
|
1892
|
|
- dept.setOrderNum(1);
|
|
1893
|
|
- dept.setStatus("0");
|
|
1894
|
|
- dept.setDelFlag("0");
|
|
1895
|
|
- dept.setCreateBy(getUsername());
|
|
1896
|
|
- dept.setUpdateBy(getUsername());
|
|
1897
|
|
- sysDeptMapper.insertDept(dept);
|
|
1898
|
|
- deptMap.put(dept.getDeptName(),dept.getDeptId());
|
|
1899
|
|
- caseAffiliate.setApplicationOrganId(String.valueOf(dept.getDeptId()));
|
|
1900
|
|
- caseAffiliate.setApplicationOrganName(caseApplication.getName());
|
|
|
1895
|
+ // 将组织机构id设为申请人名称
|
|
|
1896
|
+ if(deptMap.containsKey(caseApplication.getName())){
|
|
|
1897
|
+ caseAffiliate.setApplicationOrganId(String.valueOf(deptMap.get(caseApplication.getName())));
|
|
|
1898
|
+ caseAffiliate.setApplicationOrganName(caseApplication.getName());
|
|
|
1899
|
+ }else {
|
|
|
1900
|
+ // 如果不存在则新增
|
|
|
1901
|
+ SysDept dept = new SysDept();
|
|
|
1902
|
+ dept.setParentId(0L);
|
|
|
1903
|
+ dept.setDeptName(caseApplication.getName());
|
|
|
1904
|
+ dept.setAncestors("0");
|
|
|
1905
|
+ dept.setOrderNum(1);
|
|
|
1906
|
+ dept.setStatus("0");
|
|
|
1907
|
+ dept.setDelFlag("0");
|
|
|
1908
|
+ dept.setCreateBy(getUsername());
|
|
|
1909
|
+ dept.setUpdateBy(getUsername());
|
|
|
1910
|
+ sysDeptMapper.insertDept(dept);
|
|
|
1911
|
+ deptMap.put(dept.getDeptName(),dept.getDeptId());
|
|
|
1912
|
+ caseAffiliate.setApplicationOrganId(String.valueOf(dept.getDeptId()));
|
|
|
1913
|
+ caseAffiliate.setApplicationOrganName(caseApplication.getName());
|
|
1901
|
1914
|
|
|
1902
|
|
- }
|
|
|
1915
|
+ }
|
|
1903
|
1916
|
|
|
1904
|
1917
|
}
|
|
1905
|
1918
|
|