Commit bfe4233b authored by zhangqingle's avatar zhangqingle

修改获取通知权限

parent 00ebe2b9
...@@ -29,9 +29,13 @@ public interface MicroappFeignClient { ...@@ -29,9 +29,13 @@ public interface MicroappFeignClient {
/** /**
* 批量查询 * 批量查询
* @param haveJurisdictionReqDTO * @param haveJurisdictionReqDTO
* @param zxClientType
* @param zxAccountId
* @return * @return
*/ */
@RequestMapping(value = "/micro_app/haveJurisdictionUser",method = RequestMethod.POST) @RequestMapping(value = "/micro_app/haveJurisdictionUser",method = RequestMethod.POST)
Ret haveJurisdictionUser(@RequestParam("haveJurisdictionReqDTO") HaveJurisdictionReqDTO haveJurisdictionReqDTO); Ret haveJurisdictionUser(@RequestBody HaveJurisdictionReqDTO haveJurisdictionReqDTO,
@RequestParam("zxClientType") String zxClientType,
@RequestParam("zxAccountId") Long zxAccountId);
} }
...@@ -40,7 +40,7 @@ public class MTMicroappApiRequestClient { ...@@ -40,7 +40,7 @@ public class MTMicroappApiRequestClient {
public Ret haveJurisdictionUser(HaveJurisdictionReqDTO haveJurisdictionReqDTO) { public Ret haveJurisdictionUser(HaveJurisdictionReqDTO haveJurisdictionReqDTO) {
haveJurisdictionReqDTO.setAppId((long)2); haveJurisdictionReqDTO.setAppId((long)2);
Ret ret = microappFeignClient.haveJurisdictionUser(haveJurisdictionReqDTO); Ret ret = microappFeignClient.haveJurisdictionUser(haveJurisdictionReqDTO,zxClientType,zxAccountId);
return ret; return ret;
} }
......
...@@ -84,9 +84,9 @@ public class MTNotificationApiRequestClient { ...@@ -84,9 +84,9 @@ public class MTNotificationApiRequestClient {
* @return * @return
*/ */
public boolean send(BNotice message, String noticeTitle, String type, String urlType) { public boolean send(BNotice message, String noticeTitle, String type, String urlType) {
if(true) { // if(true) {
return true; // return true;
} // }
NotiRet ret = new NotiRet(); NotiRet ret = new NotiRet();
// List<BNotice> bNoticeList = new ArrayList<>(); // List<BNotice> bNoticeList = new ArrayList<>();
...@@ -135,7 +135,9 @@ public class MTNotificationApiRequestClient { ...@@ -135,7 +135,9 @@ public class MTNotificationApiRequestClient {
Ret haveJurisList = microappApiRequestClient.haveJurisdictionUser(haveJurisdictionReqDTO); Ret haveJurisList = microappApiRequestClient.haveJurisdictionUser(haveJurisdictionReqDTO);
List<String> haveJurisAccountIds = new ArrayList<>(); List<String> haveJurisAccountIds = new ArrayList<>();
MTUserGetsReqDTO mtUserGetsReqDTO = new MTUserGetsReqDTO(message.getCorpId(),(List<String>)haveJurisList.getData()); MTUserGetsReqDTO mtUserGetsReqDTO = new MTUserGetsReqDTO(message.getCorpId(),(List<String>)haveJurisList.getData());
List<MTAccountIdRspDTO> mtAccountIdRspDTOList = mtCotactApiRequestClient.accountGetUserHead(mtUserGetsReqDTO); // MTUserGetsReqDTO mtUserGetsReqDTO = new MTUserGetsReqDTO(message.getCorpId(),Arrays.asList(new String[]{"1042237477358641154"}));
// List<MTAccountIdRspDTO> mtAccountIdRspDTOList = mtCotactApiRequestClient.accountGetUserHead(mtUserGetsReqDTO);
List<MTUserInfoRspDTO> mtAccountIdRspDTOList = mtCotactApiRequestClient.userGets(mtUserGetsReqDTO);
mtAccountIdRspDTOList.forEach(mtAccountIdRspDTO -> { mtAccountIdRspDTOList.forEach(mtAccountIdRspDTO -> {
haveJurisAccountIds.add(mtAccountIdRspDTO.getAccountId()); haveJurisAccountIds.add(mtAccountIdRspDTO.getAccountId());
}); });
......
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