|
|
@@ -184,7 +184,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
184
|
184
|
|| "部门长".equals(role.getRoleName())) {
|
|
185
|
185
|
List<Integer> caseStatusList = new ArrayList<>();
|
|
186
|
186
|
caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
|
|
187
|
|
- caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
|
|
187
|
+ // caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
|
188
|
188
|
caseApplication.setDeptHeadStatus(caseStatusList);
|
|
189
|
189
|
caseApplication.setIsOtherRole(1);
|
|
190
|
190
|
}
|
|
|
@@ -260,7 +260,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
260
|
260
|
|| "部门长".equals(role.getRoleName())) {
|
|
261
|
261
|
caseApplication.setIsOtherRole(1);
|
|
262
|
262
|
caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
|
|
263
|
|
- caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
|
|
263
|
+ // caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
|
264
|
264
|
caseApplication.setDeptHeadStatus(caseStatusList);
|
|
265
|
265
|
}
|
|
266
|
266
|
if ("仲裁员".equals(role.getRoleName())) {
|
|
|
@@ -279,7 +279,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
279
|
279
|
caseApplication.setDeptIds(deptIds);
|
|
280
|
280
|
}
|
|
281
|
281
|
if ("申请人".equals(role.getRoleName())) {
|
|
282
|
|
- // caseApplication.setIsOtherRole(1);
|
|
|
282
|
+ caseApplication.setIsOtherRole(1);
|
|
283
|
283
|
// 查询角色有关的用户部门
|
|
284
|
284
|
caseApplication.setApplicationOrganId(String.valueOf(sysUser.getDeptId()));
|
|
285
|
285
|
}
|
|
|
@@ -2127,14 +2127,11 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2127
|
2127
|
caseApplication.setId(messageVO.getId());
|
|
2128
|
2128
|
CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
|
|
2129
|
2129
|
String returnResult = "短信发送成功";
|
|
2130
|
|
- //todo 需要申请模板,申请人,被申请人发送短信通知
|
|
|
2130
|
+ // 需要申请模板,申请人,被申请人发送短信通知
|
|
2131
|
2131
|
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
|
2132
|
2132
|
String startFormat = "";
|
|
2133
|
2133
|
String endFormat = "";
|
|
2134
|
2134
|
// 创建房间短信通知
|
|
2135
|
|
- if (messageVO.getScheduleStartTime() == null) {
|
|
2136
|
|
- request.setTemplateId("1983692");
|
|
2137
|
|
- } else {
|
|
2138
|
2135
|
String format = "yyyy/MM/dd HH:mm:ss"; // 目标格式
|
|
2139
|
2136
|
Date startDate = messageVO.getScheduleStartTime();
|
|
2140
|
2137
|
Date endDate = messageVO.getScheduleEndTime();
|
|
|
@@ -2143,20 +2140,15 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2143
|
2140
|
endFormat = sdf.format(endDate);
|
|
2144
|
2141
|
// 预约会议短信模板
|
|
2145
|
2142
|
request.setTemplateId("1983711");
|
|
2146
|
|
- }
|
|
|
2143
|
+
|
|
2147
|
2144
|
|
|
2148
|
2145
|
for (CaseAffiliate caseAffiliate : caseAffiliates) {
|
|
2149
|
2146
|
request.setPhone(caseAffiliate.getContactTelphone());
|
|
2150
|
2147
|
request.setTemplateParamSet(new String[]{caseAffiliate.getName(), caseApplicationselect.getCaseNum(), messageVO.getRoomNo() + caseAffiliate.getUserId()});
|
|
2151
|
|
- // 1952136 普通短信 尊敬的{1}用户,您的{2}仲裁案件,开庭审理房间号为{3},请在浏览器打开https://miniapp-3gpama6l759911ef-1321289474.tcloudbaseapp.com/jump-mp.html 请知晓,如非本人操作,请忽略本短信。
|
|
2152
|
2148
|
String userId = (null == caseAffiliate.getUserId() ? "" : caseAffiliate.getUserId());
|
|
2153
|
|
- if (messageVO.getScheduleStartTime() == null) {
|
|
2154
|
|
- // 1983692 开庭审理创建会议通知 尊敬的{1}用户,您的{2}仲裁案件,开庭审理房间号为{3},请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。
|
|
2155
|
|
- request.setTemplateParamSet(new String[]{caseAffiliate.getName(), caseApplicationselect.getCaseNum(), messageVO.getRoomNo() + userId});
|
|
2156
|
|
- } else {
|
|
2157
|
|
- // 1983711 开庭审理预约会议短信通知 尊敬的{1}用户,您的{2}仲裁案件,开庭审理房间号为{3},会议时间为{4},请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。
|
|
2158
|
|
- request.setTemplateParamSet(new String[]{caseAffiliate.getName(), caseApplicationselect.getCaseNum(), messageVO.getRoomNo() + userId, startFormat + "-" + endFormat});
|
|
2159
|
|
- }
|
|
|
2149
|
+ // 1983711 开庭审理预约会议短信通知 尊敬的{1}用户,您的{2}仲裁案件,开庭审理房间号为{3},会议时间为{4},请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。
|
|
|
2150
|
+ request.setTemplateParamSet(new String[]{caseAffiliate.getName(), caseApplicationselect.getCaseNum(), messageVO.getRoomNo() , startFormat + "-" + endFormat});
|
|
|
2151
|
+
|
|
2160
|
2152
|
Boolean aBoolean = SmsUtils.sendSms(request);
|
|
2161
|
2153
|
//保存短信发送记录
|
|
2162
|
2154
|
SmsSendRecord smsSendRecord = new SmsSendRecord();
|
|
|
@@ -2164,13 +2156,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2164
|
2156
|
smsSendRecord.setCaseNum(caseApplicationselect.getCaseNum());
|
|
2165
|
2157
|
smsSendRecord.setPhone(request.getPhone());
|
|
2166
|
2158
|
smsSendRecord.setSendTime(new Date());
|
|
2167
|
|
- String content = "";
|
|
2168
|
|
- if (messageVO.getScheduleStartTime() == null) {
|
|
2169
|
|
- content = "尊敬的" + caseAffiliate.getName() + "用户,您的" + caseApplicationselect.getCaseNum() + "仲裁案件,开庭审理房间号为" + messageVO.getRoomNo() + userId + ",请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。";
|
|
2170
|
|
- } else {
|
|
2171
|
|
- content = "尊敬的" + caseAffiliate.getName() + "用户,您的" + caseApplicationselect.getCaseNum() + "仲裁案件,开庭审理房间号为" + messageVO.getRoomNo() + userId + "会议时间为" + startFormat + "-" + endFormat + ",请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。";
|
|
2172
|
|
-
|
|
2173
|
|
- }
|
|
|
2159
|
+ String content = "尊敬的" + caseAffiliate.getName() + "用户,您的" + caseApplicationselect.getCaseNum() + "仲裁案件,开庭审理房间号为" + messageVO.getRoomNo() + "会议时间为" + startFormat + "-" + endFormat + ",请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。";
|
|
2174
|
2160
|
smsSendRecord.setSendContent(content);
|
|
2175
|
2161
|
|
|
2176
|
2162
|
String userName;
|
|
|
@@ -2972,6 +2958,17 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2972
|
2958
|
return null;
|
|
2973
|
2959
|
}
|
|
2974
|
2960
|
|
|
|
2961
|
+ /**
|
|
|
2962
|
+ * 根据附件id修改案件id
|
|
|
2963
|
+ * @param caseAttach
|
|
|
2964
|
+ * @return
|
|
|
2965
|
+ */
|
|
|
2966
|
+ @Override
|
|
|
2967
|
+ public AjaxResult updateCaseIdByAnnexId(CaseAttach caseAttach) {
|
|
|
2968
|
+ caseAttachMapper.updateCaseAttach(caseAttach);
|
|
|
2969
|
+ return success();
|
|
|
2970
|
+ }
|
|
|
2971
|
+
|
|
2975
|
2972
|
public static List<String> findAndConvertPDF(File directory) {
|
|
2976
|
2973
|
List<String> pdfPaths = new ArrayList<>();
|
|
2977
|
2974
|
if (directory.isFile()) {
|