|
|
@@ -1710,7 +1710,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
1710
|
1710
|
sendMailRecord.setMailContent(sendContent);
|
|
1711
|
1711
|
sendMailRecord.setMailName(subject);
|
|
1712
|
1712
|
sendMailRecord.setSendTime(new Date());
|
|
1713
|
|
- sendMailRecord.setCreateBy(SecurityUtils.getUsername());
|
|
|
1713
|
+// sendMailRecord.setCreateBy(SecurityUtils.getUsername());
|
|
1714
|
1714
|
sendMailRecord.setCreateTime(new Date());
|
|
1715
|
1715
|
sendMailRecord.setMailSubject(subject);
|
|
1716
|
1716
|
sendMailRecord.setMailFromAddress(emailFrom);
|
|
|
@@ -2132,13 +2132,14 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
2132
|
2132
|
msCaseApplicationMapper.updateByPrimaryKeySelective(application);
|
|
2133
|
2133
|
// 根据案件id查询案件
|
|
2134
|
2134
|
MsCaseApplication caseApplication = msCaseApplicationMapper.selectByPrimaryKey(application.getId());
|
|
|
2135
|
+ caseApplication.setHearDate(application.getHearDate());
|
|
2135
|
2136
|
long l = System.currentTimeMillis();
|
|
2136
|
2137
|
ExecutorService executor = ThreadUtil.createThreadPool();
|
|
2137
|
2138
|
CompletableFuture.runAsync(() -> {
|
|
2138
|
2139
|
// 发送开庭短信
|
|
2139
|
2140
|
if (CollectionUtil.isNotEmpty(vo.getHerDates())) {
|
|
2140
|
|
- List<MsCaseAffiliate> affiliates = selectAffliatesByCaseId(application.getId());
|
|
2141
|
|
- caseApplication.setHearDate(application.getHearDate());
|
|
|
2141
|
+ List<MsCaseAffiliate> affiliates = selectAffliatesByCaseId(caseApplication.getId());
|
|
|
2142
|
+
|
|
2142
|
2143
|
// 申请人发送开庭日期短信
|
|
2143
|
2144
|
sendHearDateSms(caseApplication, affiliates);
|
|
2144
|
2145
|
|
|
|
@@ -2157,9 +2158,9 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
2157
|
2158
|
meditorAffliate.setEmail(sysUser.getEmail());
|
|
2158
|
2159
|
String roomUuid = null;
|
|
2159
|
2160
|
// 线上调解
|
|
2160
|
|
- if (StrUtil.isNotEmpty(application.getMediationMethod()) && application.getMediationMethod().equals("1")) {
|
|
|
2161
|
+ if (StrUtil.isNotEmpty(caseApplication.getMediationMethod()) && caseApplication.getMediationMethod().equals("1")) {
|
|
2161
|
2162
|
// 获取短信链接uuid
|
|
2162
|
|
- MeetingInfoVO meetingInfoVO = MeetingInfoVO.builder().userId(sysUser.getUserId()).userName(sysUser.getUserName()).caseId(application.getId()).roomId(application.getRoomId()).build();
|
|
|
2163
|
+ MeetingInfoVO meetingInfoVO = MeetingInfoVO.builder().userId(sysUser.getUserId()).userName(sysUser.getUserName()).caseId(caseApplication.getId()).roomId(caseApplication.getRoomId()).build();
|
|
2163
|
2164
|
roomUuid = shortMessageService.buildMeetingInfoRecord(meetingInfoVO);
|
|
2164
|
2165
|
// 短信模板:2130103 线上调解时间和会议通知 尊敬的用户,您的{2}线上开庭时间为{3},会议链接https://txroom.xayunmei.com/#/home?{4},请点击链接参加会议,如非本人操作,请忽略本短信.
|
|
2165
|
2166
|
|
|
|
@@ -3196,7 +3197,9 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
3196
|
3197
|
affiliateBase = new MsCaseAffiliateBase();
|
|
3197
|
3198
|
}
|
|
3198
|
3199
|
affiliateBase.setApplicant(affiliate);
|
|
3199
|
|
- applicantName.append(affiliate.getName()).append(Constants.CN_SPLIT_COMMA);
|
|
|
3200
|
+ if(!applicantName.toString().contains(affiliate.getName()+Constants.CN_SPLIT_COMMA)) {
|
|
|
3201
|
+ applicantName.append(affiliate.getName()).append(Constants.CN_SPLIT_COMMA);
|
|
|
3202
|
+ }
|
|
3200
|
3203
|
break;
|
|
3201
|
3204
|
case 2:
|
|
3202
|
3205
|
if(affiliateBase==null){
|