Commit c830505b authored by luzhuang's avatar luzhuang

去除通知判断

parent deaed4f3
...@@ -31,20 +31,7 @@ public class MTMicroappApiRequestClient { ...@@ -31,20 +31,7 @@ public class MTMicroappApiRequestClient {
@Autowired @Autowired
private MicroappFeignClient microappFeignClient; private MicroappFeignClient microappFeignClient;
//
// public boolean isHaveApps(long userId, long corpId) {
// Ret ret = microappFeignClient.isHaveApps(userId,corpId,appId,zxClientType,zxAccountId);
// if(ret != null && "M0000".equals(ret.getCode())){
// return (boolean) ret.getData();
// }
// return false;
// }
//
// public Ret haveJurisdictionUser(HaveJurisdictionReqDTO haveJurisdictionReqDTO) {
// haveJurisdictionReqDTO.setAppId(appId);
// Ret ret = microappFeignClient.haveJurisdictionUser(haveJurisdictionReqDTO,zxClientType,zxAccountId);
// return ret;
// }
public Ret<List<String>> haveJurisdictionUserFast(HaveJurisdictionReqDTO haveJurisdictionReqDTO) { public Ret<List<String>> haveJurisdictionUserFast(HaveJurisdictionReqDTO haveJurisdictionReqDTO) {
haveJurisdictionReqDTO.setAppId(appId); haveJurisdictionReqDTO.setAppId(appId);
......
...@@ -127,22 +127,22 @@ public class MTNotificationApiRequestClient { ...@@ -127,22 +127,22 @@ public class MTNotificationApiRequestClient {
message.getRecipientIds().forEach(recipientId -> { message.getRecipientIds().forEach(recipientId -> {
recipientIdList.add(recipientId); recipientIdList.add(recipientId);
}); });
HaveJurisdictionReqDTO haveJurisdictionReqDTO = new HaveJurisdictionReqDTO(message.getCorpId(),recipientIdList);
log.debug("----------------------通知-开始进行权限验证---接口传参haveJurisdictionReqDTO--------》》"+haveJurisdictionReqDTO); // HaveJurisdictionReqDTO haveJurisdictionReqDTO = new HaveJurisdictionReqDTO(message.getCorpId(),recipientIdList);
Ret<List<String>> haveJurisList = microappApiRequestClient.haveJurisdictionUserFast(haveJurisdictionReqDTO); // log.debug("----------------------通知-开始进行权限验证---接口传参haveJurisdictionReqDTO--------》》"+haveJurisdictionReqDTO);
log.debug("----------------------通知-权限验证返回结果----------------------"+haveJurisList.getData()); // Ret<List<String>> haveJurisList = microappApiRequestClient.haveJurisdictionUserFast(haveJurisdictionReqDTO);
if (haveJurisList.getData() == null || haveJurisList.getData().size() < 1){ // log.debug("----------------------通知-权限验证返回结果----------------------"+haveJurisList.getData());
// if (haveJurisList.getData() == null || haveJurisList.getData().size() < 1){
// log.error("-----通知权限验证结果为空,通知接口调用失败-----");
// return false;
// }
if(recipientIdList ==null || recipientIdList.size() < 1){
log.error("-----通知权限验证结果为空,通知接口调用失败-----"); log.error("-----通知权限验证结果为空,通知接口调用失败-----");
return false; return false;
} }
List<String> haveJurisAccountIds = new ArrayList<>(); List<String> haveJurisAccountIds = new ArrayList<>();
// List<String> getUserAccountList = new ArrayList<>(); log.debug("----------------------通知dto-userIds----------------------"+recipientIdList);
List<String> getUserAccountLongList = haveJurisList.getData(); MTUserGetsAccountReqDTO mtUserGetsReqDTO = new MTUserGetsAccountReqDTO(message.getCorpId(),recipientIdList);
// getUserAccountLongList.forEach(getUserAccount ->{
// getUserAccountList.add(String.valueOf(getUserAccount));
// });
log.debug("----------------------通知dto-userIds----------------------"+getUserAccountLongList);
MTUserGetsAccountReqDTO mtUserGetsReqDTO = new MTUserGetsAccountReqDTO(message.getCorpId(),getUserAccountLongList);
log.debug("----------------------通知-调用accountGetUserHead接口----------------------"+mtUserGetsReqDTO); log.debug("----------------------通知-调用accountGetUserHead接口----------------------"+mtUserGetsReqDTO);
List<MTAccountIdRspDTO> mtAccountIdRspDTOList = mtCotactApiRequestClient.accountGetUserHead(mtUserGetsReqDTO); List<MTAccountIdRspDTO> mtAccountIdRspDTOList = mtCotactApiRequestClient.accountGetUserHead(mtUserGetsReqDTO);
log.debug("----------------------通知-获取用户头像结果----------------------"+mtAccountIdRspDTOList); log.debug("----------------------通知-获取用户头像结果----------------------"+mtAccountIdRspDTOList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment