Commit 3b3692ab authored by luzhuang's avatar luzhuang

Ret<List<long>>

parent 0238e37f
......@@ -45,3 +45,5 @@ update b_lesson set value_consume = '0' where value_consume is null;
-- 改变考试详情表中 字段字符集支持表情 20-1-10 20:20
alter table tm_examdata modify column `e_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
------以上--预上线环境 已全部更新 2020/04/01 (正式环境未执行)
......@@ -5,6 +5,8 @@ import org.rcisoft.common.util.feignClient.MicroappFeignClient;
import org.rcisoft.common.util.feignDto.HaveJurisdictionReqDTO;
import org.rcisoft.core.result.Ret;
import java.util.List;
@Slf4j
public class MicroappFeignClientFallBack implements MicroappFeignClient {
@Override
......@@ -24,7 +26,7 @@ public class MicroappFeignClientFallBack implements MicroappFeignClient {
}
@Override
public Ret haveJurisdictionUserFast(HaveJurisdictionReqDTO haveJurisdictionReqDTO, String zxClientType, Long zxAccountId) {
public Ret<List<Long>> haveJurisdictionUserFast(HaveJurisdictionReqDTO haveJurisdictionReqDTO, String zxClientType, Long zxAccountId) {
log.error("---------------调智信接口 /micro_app/haveJurisdictionUserFast(筛选有通知权限的人-优化) 失败-------------------");
......
......@@ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
/**
* 智信消息客户端接口
*/
......@@ -47,7 +49,7 @@ public interface MicroappFeignClient {
* @return
*/
@RequestMapping(value = "/micro_app/haveJurisdictionUserFast",method = RequestMethod.POST)
Ret haveJurisdictionUserFast(@RequestBody HaveJurisdictionReqDTO haveJurisdictionReqDTO,
Ret<List<Long>> haveJurisdictionUserFast(@RequestBody HaveJurisdictionReqDTO haveJurisdictionReqDTO,
@RequestParam("zxClientType") String zxClientType,
@RequestParam("zxAccountId") Long zxAccountId);
......
......@@ -46,9 +46,9 @@ public class MTMicroappApiRequestClient {
return ret;
}
public Ret haveJurisdictionUserFast(HaveJurisdictionReqDTO haveJurisdictionReqDTO) {
public Ret<List<Long>> haveJurisdictionUserFast(HaveJurisdictionReqDTO haveJurisdictionReqDTO) {
haveJurisdictionReqDTO.setAppId(appId);
Ret ret = microappFeignClient.haveJurisdictionUserFast(haveJurisdictionReqDTO,zxClientType,zxAccountId);
Ret<List<Long>> ret = microappFeignClient.haveJurisdictionUserFast(haveJurisdictionReqDTO,zxClientType,zxAccountId);
return ret;
}
......
......@@ -132,14 +132,14 @@ public class MTNotificationApiRequestClient {
});
HaveJurisdictionReqDTO haveJurisdictionReqDTO = new HaveJurisdictionReqDTO(Long.parseLong(message.getCorpId()),recipientIdLongList);
log.debug("----------------------通知-权限验证---------------------");
Ret haveJurisList = microappApiRequestClient.haveJurisdictionUserFast(haveJurisdictionReqDTO);
Ret<List<Long>> haveJurisList = microappApiRequestClient.haveJurisdictionUserFast(haveJurisdictionReqDTO);
log.debug("----------------------通知-权限验证返回结果----------------------"+haveJurisList.getData());
if (haveJurisList.getData() == null){
return false;
}
List<String> haveJurisAccountIds = new ArrayList<>();
// List<String> getUserAccountList = new ArrayList<>();
List<Long> getUserAccountLongList = (List<Long>)haveJurisList.getData();
List<Long> getUserAccountLongList = haveJurisList.getData();
// getUserAccountLongList.forEach(getUserAccount ->{
// getUserAccountList.add(String.valueOf(getUserAccount));
// });
......
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