|
|
@@ -131,7 +131,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
131
|
131
|
* @param caseApplication
|
|
132
|
132
|
* @return
|
|
133
|
133
|
*/
|
|
134
|
|
-// @Override
|
|
|
134
|
+ @Override
|
|
135
|
135
|
public List<CaseApplication> selectCaseApplicationListByRole(CaseApplication caseApplication) {
|
|
136
|
136
|
// 获取登录用户
|
|
137
|
137
|
LoginUser loginUser = getLoginUser();
|
|
|
@@ -1773,7 +1773,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1773
|
1773
|
sealIds.add(sealId);
|
|
1774
|
1774
|
}
|
|
1775
|
1775
|
}
|
|
1776
|
|
- EsignHttpResponse response3 = SignAward.createByFile(sealSignRecord,sealIds);
|
|
|
1776
|
+ EsignHttpResponse response3 = SignAward.createByFile(sealSignRecord, sealIds);
|
|
1777
|
1777
|
JSONObject jsonObject3 = JSONObject.parseObject(response3.getBody());
|
|
1778
|
1778
|
if (jsonObject3.getIntValue("code") == 0) {
|
|
1779
|
1779
|
//获取签署流程ID
|
|
|
@@ -1905,14 +1905,14 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1905
|
1905
|
String returnResult = "短信发送成功";
|
|
1906
|
1906
|
//todo 需要申请模板,申请人,被申请人发送短信通知
|
|
1907
|
1907
|
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
|
1908
|
|
- String startFormat="";
|
|
1909
|
|
- String endFormat="";
|
|
|
1908
|
+ String startFormat = "";
|
|
|
1909
|
+ String endFormat = "";
|
|
1910
|
1910
|
// 创建房间短信通知
|
|
1911
|
1911
|
if (messageVO.getScheduleStartTime() == null) {
|
|
1912
|
1912
|
request.setTemplateId("1983692");
|
|
1913
|
1913
|
} else {
|
|
1914
|
1914
|
String format = "yyyy/MM/dd HH:mm:ss"; // 目标格式
|
|
1915
|
|
- Date startDate =messageVO.getScheduleStartTime();
|
|
|
1915
|
+ Date startDate = messageVO.getScheduleStartTime();
|
|
1916
|
1916
|
Date endDate = messageVO.getScheduleEndTime();
|
|
1917
|
1917
|
SimpleDateFormat sdf = new SimpleDateFormat(format);
|
|
1918
|
1918
|
startFormat = sdf.format(startDate);
|
|
|
@@ -1925,13 +1925,13 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1925
|
1925
|
request.setPhone(caseAffiliate.getContactTelphone());
|
|
1926
|
1926
|
request.setTemplateParamSet(new String[]{caseAffiliate.getName(), caseApplicationselect.getCaseNum(), messageVO.getRoomNo() + caseAffiliate.getUserId()});
|
|
1927
|
1927
|
// 1952136 普通短信 尊敬的{1}用户,您的{2}仲裁案件,开庭审理房间号为{3},请在浏览器打开https://miniapp-3gpama6l759911ef-1321289474.tcloudbaseapp.com/jump-mp.html 请知晓,如非本人操作,请忽略本短信。
|
|
1928
|
|
- String userId = (null==caseAffiliate.getUserId()?"" : caseAffiliate.getUserId());
|
|
1929
|
|
- if(messageVO.getScheduleStartTime()==null) {
|
|
|
1928
|
+ String userId = (null == caseAffiliate.getUserId() ? "" : caseAffiliate.getUserId());
|
|
|
1929
|
+ if (messageVO.getScheduleStartTime() == null) {
|
|
1930
|
1930
|
// 1983692 开庭审理创建会议通知 尊敬的{1}用户,您的{2}仲裁案件,开庭审理房间号为{3},请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。
|
|
1931
|
1931
|
request.setTemplateParamSet(new String[]{caseAffiliate.getName(), caseApplicationselect.getCaseNum(), messageVO.getRoomNo() + userId});
|
|
1932
|
|
- }else {
|
|
|
1932
|
+ } else {
|
|
1933
|
1933
|
// 1983711 开庭审理预约会议短信通知 尊敬的{1}用户,您的{2}仲裁案件,开庭审理房间号为{3},会议时间为{4},请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。
|
|
1934
|
|
- request.setTemplateParamSet(new String[]{caseAffiliate.getName(), caseApplicationselect.getCaseNum(), messageVO.getRoomNo() + userId,startFormat+"-"+endFormat});
|
|
|
1934
|
+ request.setTemplateParamSet(new String[]{caseAffiliate.getName(), caseApplicationselect.getCaseNum(), messageVO.getRoomNo() + userId, startFormat + "-" + endFormat});
|
|
1935
|
1935
|
}
|
|
1936
|
1936
|
Boolean aBoolean = SmsUtils.sendSms(request);
|
|
1937
|
1937
|
//保存短信发送记录
|
|
|
@@ -1941,10 +1941,10 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1941
|
1941
|
smsSendRecord.setPhone(request.getPhone());
|
|
1942
|
1942
|
smsSendRecord.setSendTime(new Date());
|
|
1943
|
1943
|
String content = "";
|
|
1944
|
|
- if(messageVO.getScheduleStartTime()==null) {
|
|
1945
|
|
- content = "尊敬的" + caseAffiliate.getName() + "用户,您的" + caseApplicationselect.getCaseNum() + "仲裁案件,开庭审理房间号为" + messageVO.getRoomNo() + userId + ",请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。";
|
|
1946
|
|
- }else {
|
|
1947
|
|
- content = "尊敬的" + caseAffiliate.getName() + "用户,您的" + caseApplicationselect.getCaseNum() + "仲裁案件,开庭审理房间号为" + messageVO.getRoomNo() + userId +"会议时间为"+startFormat+"-"+endFormat+ ",请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。";
|
|
|
1944
|
+ if (messageVO.getScheduleStartTime() == null) {
|
|
|
1945
|
+ content = "尊敬的" + caseAffiliate.getName() + "用户,您的" + caseApplicationselect.getCaseNum() + "仲裁案件,开庭审理房间号为" + messageVO.getRoomNo() + userId + ",请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。";
|
|
|
1946
|
+ } else {
|
|
|
1947
|
+ content = "尊敬的" + caseAffiliate.getName() + "用户,您的" + caseApplicationselect.getCaseNum() + "仲裁案件,开庭审理房间号为" + messageVO.getRoomNo() + userId + "会议时间为" + startFormat + "-" + endFormat + ",请点击https://txroom.xayunmei.com/#/home, 请知晓,如非本人操作,请忽略本短信。";
|
|
1948
|
1948
|
|
|
1949
|
1949
|
}
|
|
1950
|
1950
|
smsSendRecord.setSendContent(content);
|
|
|
@@ -2550,8 +2550,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2550
|
2550
|
bodyParams.put("scheduleStartTime", startTime);
|
|
2551
|
2551
|
bodyParams.put("scheduleEndTime", endTime);
|
|
2552
|
2552
|
|
|
2553
|
|
- bodyParams.put("scheduleStartTime",startTime.getTime()/1000 );
|
|
2554
|
|
- bodyParams.put("scheduleEndTime",endTime.getTime()/1000);
|
|
|
2553
|
+ bodyParams.put("scheduleStartTime", startTime.getTime() / 1000);
|
|
|
2554
|
+ bodyParams.put("scheduleEndTime", endTime.getTime() / 1000);
|
|
2555
|
2555
|
roomParams.put("roomType", 1);
|
|
2556
|
2556
|
bodyParams.put("roomInfo", roomParams);
|
|
2557
|
2557
|
StringEntity postingString = new StringEntity(bodyParams.toString());
|
|
|
@@ -2600,7 +2600,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2600
|
2600
|
@Override
|
|
2601
|
2601
|
public void destroyRoomBack(String body, HttpServletRequest request) {
|
|
2602
|
2602
|
// todo 测试回调
|
|
2603
|
|
- reservedConferenceMapper.insert(new ReservedConference(999888L,body,null,null));
|
|
|
2603
|
+ reservedConferenceMapper.insert(new ReservedConference(999888L, body, null, null));
|
|
2604
|
2604
|
JSONObject jsonObject = (JSONObject) JSON.parse(body);
|
|
2605
|
2605
|
// 事件类型
|
|
2606
|
2606
|
Integer eventType = jsonObject.getInteger("EventType");
|
|
|
@@ -2617,6 +2617,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2617
|
2617
|
|
|
2618
|
2618
|
/**
|
|
2619
|
2619
|
* 根据案件id查询已预约的会议
|
|
|
2620
|
+ *
|
|
2620
|
2621
|
* @param caseId
|
|
2621
|
2622
|
* @return
|
|
2622
|
2623
|
*/
|