Browse Source

推送取消的会议到信创

tags/24080901
CMM 6 months ago
parent
commit
965ce41c1c
2 changed files with 17 additions and 4 deletions
  1. +15
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/external/MhApiClient.java
  2. +2
    -3
      hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java

+ 15
- 1
hz-pm-api/src/main/java/com/hz/pm/api/external/MhApiClient.java View File

@@ -58,6 +58,7 @@ public class MhApiClient {
private static final String PURCHASE_NOTICE = "/buy_notice/saveBuyNoticeList";
private static final String PURCHASE_NOTICE_GET = "/buy_notice/getBuyIdeaList";
private static final String PUSH_MEETING_EXPERTS_DATA = "/meeting/saveData";
private static final String CANCEL_MEETING_DATA = "/meeting/cancel";

/**
* 信创符合性测评报告相关接口
@@ -202,7 +203,20 @@ public class MhApiClient {
}, false);
if (!retObj.isOk()) {
log.error("会议专家信息推送失败:{}", retBody);
throw BizException.wrap("会议专家信息推送失败");
}
}

public void cancelMeetingToMh(Long meetingId) {
if (environmentUtil.isDevEnv()) {
return;
}
String requestUrl = mhApiHost + CANCEL_MEETING_DATA;
String retBody = HttpUtil.post(requestUrl, JSONUtil.toJsonStr(meetingId));
MhRetDTO<Object> retObj = JSONUtil.toBean(retBody,
new TypeReference<MhRetDTO<Object>>() {
}, false);
if (!retObj.isOk()) {
log.error("取消会议信息推送失败:{}", retBody);
}
}
}

+ 2
- 3
hz-pm-api/src/main/java/com/hz/pm/api/meeting/manage/MeetingManage.java View File

@@ -3,7 +3,6 @@ package com.hz.pm.api.meeting.manage;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.map.MapUtil;
import cn.hutool.core.util.ObjUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.SecureUtil;
@@ -14,7 +13,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.google.common.collect.Sets;
import com.hz.pm.api.common.helper.RegionCacheHelper;
import com.hz.pm.api.common.model.constant.BizConst;
import com.hz.pm.api.expert.entity.ExpertUserFullInfo;
@@ -47,7 +45,6 @@ import com.hz.pm.api.projectlib.model.enumeration.status.ProjectStatus;
import com.hz.pm.api.projectlib.service.IProjectService;
import com.hz.pm.api.sys.model.dto.RegionDTO;
import com.hz.pm.api.user.model.entity.UserInfo;
import com.hz.pm.api.user.security.model.UserFullInfoDTO;
import com.hz.pm.api.user.security.model.UserInfoDetails;
import com.hz.pm.api.user.service.IUserInfoService;
import com.hz.pm.api.user.util.LoginUserUtil;
@@ -708,6 +705,8 @@ public class MeetingManage {
} finally {
distributedLock.releaseLock(key);
}
// 将取消的会议推送给MH
mhApiClient.cancelMeetingToMh(meetingId);
}

public ExpertInvitationDetailVO expertInvitationDetail(Long meetingId, Long expertId) {


Loading…
Cancel
Save