Commit d8685a8d authored by zhangqingle's avatar zhangqingle

优化通知获取人员accountId

parent d912829b
...@@ -66,7 +66,7 @@ public interface ContactFeignClient { ...@@ -66,7 +66,7 @@ public interface ContactFeignClient {
* 根据用户id获取用户信息(多个) * 根据用户id获取用户信息(多个)
*/ */
@RequestMapping(value = "/account/get_user_head",method = RequestMethod.POST) @RequestMapping(value = "/account/get_user_head",method = RequestMethod.POST)
Ret<List<MTAccountIdRspDTO>> accountGetUserHead(@RequestBody MTUserGetsReqDTO mtUserGetsReqDTO, Ret<List<MTAccountIdRspDTO>> accountGetUserHead(@RequestBody MTUserGetsAccountReqDTO mtUserGetsReqDTO,
@RequestParam("zxClientType") String zxClientType, @RequestParam("zxClientType") String zxClientType,
@RequestParam("zxAccountId") Long zxAccountId); @RequestParam("zxAccountId") Long zxAccountId);
/** /**
......
package org.rcisoft.common.util.feignDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MTUserGetsAccountReqDTO {
private String corpId;
private List<String> userIds;
}
...@@ -188,7 +188,7 @@ public class MTCotactApiRequestClient { ...@@ -188,7 +188,7 @@ public class MTCotactApiRequestClient {
* *
* @return * @return
*/ */
public List<MTAccountIdRspDTO> accountGetUserHead(MTUserGetsReqDTO mtUserGetsReqDTO) { public List<MTAccountIdRspDTO> accountGetUserHead(MTUserGetsAccountReqDTO mtUserGetsReqDTO) {
if("dev".equalsIgnoreCase(serverType)){ if("dev".equalsIgnoreCase(serverType)){
login(); login();
Map<String, String> headerParams = new HashMap<>(2); Map<String, String> headerParams = new HashMap<>(2);
......
...@@ -141,10 +141,10 @@ public class MTNotificationApiRequestClient { ...@@ -141,10 +141,10 @@ public class MTNotificationApiRequestClient {
getUserAccountList.add(String.valueOf(getUserAccount)); getUserAccountList.add(String.valueOf(getUserAccount));
}); });
MTUserGetsReqDTO mtUserGetsReqDTO = new MTUserGetsReqDTO(message.getCorpId(),getUserAccountList); MTUserGetsAccountReqDTO mtUserGetsReqDTO = new MTUserGetsAccountReqDTO(message.getCorpId(),getUserAccountList);
// MTUserGetsReqDTO mtUserGetsReqDTO = new MTUserGetsReqDTO(message.getCorpId(),Arrays.asList(new String[]{"1042237477358641154"})); // MTUserGetsReqDTO mtUserGetsReqDTO = new MTUserGetsReqDTO(message.getCorpId(),Arrays.asList(new String[]{"1042237477358641154"}));
// List<MTAccountIdRspDTO> mtAccountIdRspDTOList = mtCotactApiRequestClient.accountGetUserHead(mtUserGetsReqDTO); // List<MTAccountIdRspDTO> mtAccountIdRspDTOList = mtCotactApiRequestClient.accountGetUserHead(mtUserGetsReqDTO);
List<MTUserInfoRspDTO> mtAccountIdRspDTOList = mtCotactApiRequestClient.userGets(mtUserGetsReqDTO); List<MTAccountIdRspDTO> mtAccountIdRspDTOList = mtCotactApiRequestClient.accountGetUserHead(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