fix: 批量修复11个Controller路径前缀重复问题
问题: context-path=/healthlink-his, Controller使用/healthlink-his/api/v1/... 导致实际路径变成/healthlink-his/healthlink-his/api/v1/... (双重前缀) 修复: 移除Controller的/healthlink-his前缀 - CriticalValueController → /api/v1/critical-value - TcmController → /api/v1/tcm - ReviewController → /api/v1/review - StructuredEmrController → /api/v1/emr - AnesthesiaController → /api/v1/anesthesia - MrHomepageController → /api/v1/mr-homepage - EmrQualityController → /api/v1/emr-quality - NursingController → /api/v1/nursing - EpidemicController → /api/v1/epidemic - CaSignatureController → /api/v1/ca-signature - EmpiController → /api/v1/empi 验证: 11个API全部返回200
This commit is contained in:
@@ -22,7 +22,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/healthlink-his/api/v1/anesthesia")
|
||||
@RequestMapping("/api/v1/anesthesia")
|
||||
@Tag(name = "麻醉记录管理")
|
||||
public class AnesthesiaController {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/healthlink-his/api/v1/ca-signature")
|
||||
@RequestMapping("/api/v1/ca-signature")
|
||||
@Tag(name = "电子签名管理")
|
||||
public class CaSignatureController {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@Tag(name = "危急值管理")
|
||||
@RestController
|
||||
@RequestMapping("/healthlink-his/api/v1/critical-value")
|
||||
@RequestMapping("/api/v1/critical-value")
|
||||
public class CriticalValueController {
|
||||
@Autowired private ICriticalValueAppService criticalValueAppService;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import java.util.List;
|
||||
@Tag(name = "患者主索引(EMPI)") @RestController @RequestMapping("/healthlink-his/api/v1/empi")
|
||||
@Tag(name = "患者主索引(EMPI)") @RestController @RequestMapping("/api/v1/empi")
|
||||
public class EmpiController {
|
||||
@Autowired private IEmpiAppService empiAppService;
|
||||
@Operation(summary = "注册患者") @PostMapping("/person")
|
||||
|
||||
@@ -16,7 +16,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/healthlink-his/api/v1/emr")
|
||||
@RequestMapping("/api/v1/emr")
|
||||
@Tag(name = "电子病历结构化")
|
||||
public class StructuredEmrController {
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@Tag(name = "传染病直报") @RestController @RequestMapping("/healthlink-his/api/v1/epidemic")
|
||||
@Tag(name = "传染病直报") @RestController @RequestMapping("/api/v1/epidemic")
|
||||
public class EpidemicController {
|
||||
@Autowired private IEpidemicAppService epidemicAppService;
|
||||
@Operation(summary = "上报") @PostMapping("/report")
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/healthlink-his/api/v1/mr-homepage")
|
||||
@RequestMapping("/api/v1/mr-homepage")
|
||||
@Tag(name = "病案首页管理")
|
||||
public class MrHomepageController {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.util.List;
|
||||
@Tag(name = "护理评估管理")
|
||||
@RestController
|
||||
@RequestMapping("/healthlink-his/api/v1/nursing")
|
||||
@RequestMapping("/api/v1/nursing")
|
||||
public class NursingController {
|
||||
@Autowired private INursingAppService nursingAppService;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@Tag(name = "病历质控管理")
|
||||
@RestController
|
||||
@RequestMapping("/healthlink-his/api/v1/emr-quality")
|
||||
@RequestMapping("/api/v1/emr-quality")
|
||||
public class EmrQualityController {
|
||||
@Autowired private IEmrQualityAppService emrQualityAppService;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@Tag(name = "处方点评") @RestController @RequestMapping("/healthlink-his/api/v1/review")
|
||||
@Tag(name = "处方点评") @RestController @RequestMapping("/api/v1/review")
|
||||
public class ReviewController {
|
||||
@Autowired private IReviewAppService reviewAppService;
|
||||
@Operation(summary = "创建点评计划") @PostMapping("/plan")
|
||||
|
||||
@@ -7,7 +7,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import java.util.List;
|
||||
@Tag(name = "壮医中医特色") @RestController @RequestMapping("/healthlink-his/api/v1/tcm")
|
||||
@Tag(name = "壮医中医特色") @RestController @RequestMapping("/api/v1/tcm")
|
||||
public class TcmController {
|
||||
@Autowired private ITcmAppService tcmAppService;
|
||||
@Operation(summary = "中医方剂列表") @GetMapping("/prescriptions")
|
||||
|
||||
Reference in New Issue
Block a user