|
|
@@ -112,7 +112,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
112
|
112
|
caseAffiliate.setCaseAppliId(caseApplication.getId());
|
|
113
|
113
|
if(caseAffiliate.getIdentityType()==1&&StrUtil.isNotEmpty(caseAffiliate.getName())) {
|
|
114
|
114
|
// 将组织机构id设为申请人名称
|
|
115
|
|
- if (deptMap.containsKey(caseApplication.getName())) {
|
|
|
115
|
+ if (deptMap.containsKey(caseAffiliate.getName())) {
|
|
116
|
116
|
caseAffiliate.setName(String.valueOf(deptMap.get(caseAffiliate.getName())));
|
|
117
|
117
|
} else {
|
|
118
|
118
|
// 如果不存在则新增
|
|
|
@@ -195,7 +195,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
195
|
195
|
caseAffiliate.setCaseAppliId(caseApplication.getId());
|
|
196
|
196
|
if(caseAffiliate.getIdentityType()==1&&StrUtil.isNotEmpty(caseAffiliate.getName())) {
|
|
197
|
197
|
// 将组织机构id设为申请人名称
|
|
198
|
|
- if (deptMap.containsKey(caseApplication.getName())) {
|
|
|
198
|
+ if (deptMap.containsKey(caseAffiliate.getName())) {
|
|
199
|
199
|
caseAffiliate.setName(String.valueOf(deptMap.get(caseAffiliate.getName())));
|
|
200
|
200
|
} else {
|
|
201
|
201
|
// 如果不存在则新增
|
|
|
@@ -679,6 +679,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
679
|
679
|
rows = caseApplicationMapper.submitCaseApplication(caseApplication);
|
|
680
|
680
|
}else {
|
|
681
|
681
|
List<Arbitrator> arbitrators = caseApplication.getArbitrators();
|
|
|
682
|
+ // 仲裁员信息
|
|
682
|
683
|
if(arbitrators!=null&&arbitrators.size()>0){
|
|
683
|
684
|
List<Long> ids = arbitrators.stream().map(Arbitrator::getId).collect(Collectors.toList());
|
|
684
|
685
|
List<String> arbitratorNames = arbitrators.stream().map(Arbitrator::getArbitratorName).collect(Collectors.toList());
|
|
|
@@ -942,27 +943,32 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
942
|
943
|
String hearDatestr = dateFormat.format(hearDate);
|
|
943
|
944
|
|
|
944
|
945
|
String arbitratorId = caseApplicationselect.getArbitratorId();
|
|
945
|
|
- List<Arbitrator> arbitratorList = new ArrayList<>();
|
|
|
946
|
+// List<Arbitrator> arbitratorList = new ArrayList<>();
|
|
946
|
947
|
if(StringUtils.isNotEmpty(arbitratorId)){
|
|
947
|
948
|
String[] idStrList = arbitratorId.split(",");
|
|
948
|
949
|
List<Long> idList = new ArrayList<>();
|
|
949
|
950
|
for(int i = 0;i < idStrList.length;i ++ ){
|
|
950
|
951
|
idList.add(Long.parseLong(idStrList[i]));
|
|
951
|
952
|
}
|
|
952
|
|
- Arbitrator arbitrator = new Arbitrator();
|
|
953
|
|
- arbitrator.setIdList(idList);
|
|
954
|
|
- arbitratorList = arbitratorMapper.selectArbitratorList(arbitrator);
|
|
955
|
|
- if(arbitratorList!=null) {
|
|
956
|
|
- for (int i = 0; i < arbitratorList.size(); i++) {
|
|
957
|
|
- Arbitrator arbitratorselect = arbitratorList.get(i);
|
|
958
|
|
- //给仲裁员发送短信通知
|
|
959
|
|
- request.setPhone(arbitratorselect.getTelephone());
|
|
960
|
|
- // 1947342 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
|
961
|
|
- String name = arbitratorselect.getArbitratorName();
|
|
962
|
|
- request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
|
|
963
|
|
- SmsUtils.sendSms(request);
|
|
964
|
|
- }
|
|
965
|
|
- }
|
|
|
953
|
+//
|
|
|
954
|
+
|
|
|
955
|
+ // 查询仲裁员电话号
|
|
|
956
|
+ List<SysUser> userList= sysUserMapper.selectUserListByIds(idList);
|
|
|
957
|
+ if(CollectionUtil.isNotEmpty(userList)) {
|
|
|
958
|
+ for (SysUser user : userList) {
|
|
|
959
|
+
|
|
|
960
|
+
|
|
|
961
|
+ //给仲裁员发送短信通知
|
|
|
962
|
+ request.setPhone(user.getPhonenumber());
|
|
|
963
|
+ // 1947342 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
|
|
964
|
+ String name = user.getNickName();
|
|
|
965
|
+ request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
|
|
|
966
|
+ SmsUtils.sendSms(request);
|
|
|
967
|
+
|
|
|
968
|
+ }
|
|
|
969
|
+ }
|
|
|
970
|
+
|
|
|
971
|
+
|
|
966
|
972
|
}
|
|
967
|
973
|
|
|
968
|
974
|
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
|
|
@@ -984,7 +990,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
984
|
990
|
if(StrUtil.isNotEmpty(caseAffiliateselect.getName())&&deptMap.containsKey(caseAffiliateselect.getName())){
|
|
985
|
991
|
caseAffiliateselect.setName(deptMap.get(caseAffiliateselect.getName()));
|
|
986
|
992
|
}
|
|
987
|
|
- caseAffiliateselect.setName(caseAffiliateselect.getName());;
|
|
|
993
|
+
|
|
988
|
994
|
}
|
|
989
|
995
|
//给申请人、被申请人发送短信通知
|
|
990
|
996
|
request.setPhone(caseAffiliateselect.getContactTelphone());
|