|
|
|
@ -19,6 +19,8 @@ import com.glxp.api.res.basic.BasicUdiRelResponse;
|
|
|
|
|
import com.glxp.api.res.basic.UdiRelevanceResponse;
|
|
|
|
|
import com.glxp.api.service.auth.CustomerService;
|
|
|
|
|
import com.glxp.api.service.basic.BasicUdiRelService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
@ -39,10 +41,12 @@ import com.glxp.api.util.udi.FilterUdiUtils;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 国家库产品信息相关接口
|
|
|
|
|
*/
|
|
|
|
|
@Api(tags = "注册企业医疗器械信息绑定接口")
|
|
|
|
|
@Slf4j
|
|
|
|
|
@RestController
|
|
|
|
|
public class UdiSyncController extends BaseController {
|
|
|
|
@ -58,8 +62,8 @@ public class UdiSyncController extends BaseController {
|
|
|
|
|
@Resource
|
|
|
|
|
CustomerService customerService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取同步库UDI信息
|
|
|
|
|
@ApiIgnore
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("udiwms/udiinfo/filterUdi")
|
|
|
|
|
public BaseResponse filterUdi(FilterUdiRelRequest filterUdiRelRequest) {
|
|
|
|
@ -106,6 +110,7 @@ public class UdiSyncController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取同步库医疗器械注册人信息
|
|
|
|
|
@ApiIgnore
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("udiwms/udiinfo/filterCompany")
|
|
|
|
|
public BaseResponse filterCompany(UdiCompanyRequest udiCompanyRequest) {
|
|
|
|
@ -122,6 +127,7 @@ public class UdiSyncController extends BaseController {
|
|
|
|
|
|
|
|
|
|
//获取同步库UDI信息
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@ApiIgnore
|
|
|
|
|
@GetMapping("udi/basic/rel/filter")
|
|
|
|
|
public BaseResponse filterRel(FilterUdiRelRequest filterUdiRelRequest) {
|
|
|
|
|
String nameCode;
|
|
|
|
@ -149,6 +155,7 @@ public class UdiSyncController extends BaseController {
|
|
|
|
|
|
|
|
|
|
//产品信息关联新增
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@ApiOperation(value = "注册企业新增医疗器械信息", response = BaseResponse.class)
|
|
|
|
|
@PostMapping("udi/basic/rel/save")
|
|
|
|
|
public BaseResponse saveRel(@RequestBody BasicUdiReRequest basicUdiReRequest) {
|
|
|
|
|
BasicUdiRelEntity basicUdiRelEntity = new BasicUdiRelEntity();
|
|
|
|
@ -163,6 +170,7 @@ public class UdiSyncController extends BaseController {
|
|
|
|
|
|
|
|
|
|
//产品信息关联新增
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@ApiOperation(value = "注册企业批量新增医疗器械信息", response = BaseResponse.class)
|
|
|
|
|
@PostMapping("udi/basic/rel/batch/save")
|
|
|
|
|
public BaseResponse batchSaveRel(@RequestBody UdiSelectRequest udiSelectRequest) {
|
|
|
|
|
String userId = customerService.getUserId() + "";
|
|
|
|
@ -182,7 +190,7 @@ public class UdiSyncController extends BaseController {
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@PostMapping("udi/basic/rel/delete")
|
|
|
|
|
public BaseResponse saveRel(@RequestBody DeleteRequest deleteRequest) {
|
|
|
|
|
public BaseResponse deletRel(@RequestBody DeleteRequest deleteRequest) {
|
|
|
|
|
basicUdiRelService.removeById(deleteRequest.getId());
|
|
|
|
|
return ResultVOUtils.success("删除成功!");
|
|
|
|
|
}
|
|
|
|
@ -217,6 +225,7 @@ public class UdiSyncController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 耗材字典信息获取同一产品对应DI信息
|
|
|
|
|
*/
|
|
|
|
|
@ApiIgnore
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("udiwms/udiinfo/local/filterByUuid")
|
|
|
|
|
public BaseResponse filterLocalByUuid(FilterUdiRelRequest filterUdiRelRequest) {
|
|
|
|
|