|
|
@ -3,11 +3,13 @@ package com.glxp.api.controller.basic;
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
|
|
|
import com.github.pagehelper.Page;
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
import com.glxp.api.annotation.AuthRuleAnnotation;
|
|
|
|
import com.glxp.api.annotation.AuthRuleAnnotation;
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
import com.glxp.api.constant.AsyncDiDlHelper;
|
|
|
|
import com.glxp.api.constant.AsyncDiDlHelper;
|
|
|
|
|
|
|
|
import com.glxp.api.dto.DictDto;
|
|
|
|
import com.glxp.api.entity.basic.*;
|
|
|
|
import com.glxp.api.entity.basic.*;
|
|
|
|
import com.glxp.api.req.basic.*;
|
|
|
|
import com.glxp.api.req.basic.*;
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
@ -21,6 +23,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 国家库产品信息相关接口
|
|
|
|
* 国家库产品信息相关接口
|
|
|
@ -114,6 +117,27 @@ public class UdiSyncController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取同步库医疗器械注册人信息
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
|
|
|
@GetMapping("udiwms/udiinfo/filterCompanyOptimize")
|
|
|
|
|
|
|
|
public BaseResponse filterCompanyOptimize(UdiCompanyRequest udiCompanyRequest) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
BaseResponse<Page<UdiCompanyEntity>> udiDlDeviceResponse = syncUdiService.filterCompany(udiCompanyRequest);
|
|
|
|
|
|
|
|
List<DictDto> reList = udiDlDeviceResponse.getData().getResult().stream().map(s-> {
|
|
|
|
|
|
|
|
DictDto dictDto = new DictDto(s.getYlqxzcrbarmc(),s.getYlqxzcrbarmc());
|
|
|
|
|
|
|
|
return dictDto;
|
|
|
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|
|
|
PageSimpleResponse<DictDto> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
|
|
|
pageSimpleResponse.setTotal(udiDlDeviceResponse.getData().getTotal());
|
|
|
|
|
|
|
|
pageSimpleResponse.setList(reList);
|
|
|
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
return ResultVOUtils.error(500, "连接UDI数据下载服务出错!");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
@GetMapping("udiwms/udiinfo/superSearch")
|
|
|
|
@GetMapping("udiwms/udiinfo/superSearch")
|
|
|
|
public BaseResponse superSearch(FilterUdiInfoRequest filterUdiInfoRequest) {
|
|
|
|
public BaseResponse superSearch(FilterUdiInfoRequest filterUdiInfoRequest) {
|
|
|
|