fix: expose ERP controllers under admin API prefix

This commit is contained in:
zhouz
2026-09-09 09:47:51 +08:00
parent a468e55ddd
commit c65afea545
2 changed files with 5 additions and 2 deletions

View File

@@ -20,7 +20,9 @@ import org.springframework.web.bind.annotation.RestController;
@ErpApi
@TenantIgnore
@RestController
@RequestMapping("/lms")
// ERP Controller 不在 controller.admin 包下,不会被框架自动追加 /admin-api 前缀,
// 因此这里显式声明完整的外部访问前缀。
@RequestMapping("/admin-api/lms")
public class ErpInboundController {
@Resource private ErpAccessService erpAccessService;
@Resource private ErpInboundService erpInboundService;

View File

@@ -16,7 +16,8 @@ import org.springframework.web.bind.annotation.RestController;
@ErpApi
@TenantIgnore
@RestController
@RequestMapping("/wms/erp")
// ERP Controller 不在 controller.admin 包下,不会被框架自动追加 /admin-api 前缀。
@RequestMapping("/admin-api/wms/erp")
public class ErpInboundController {
@Resource private ErpAccessService erpAccessService;
@Resource private ErpInboundService erpInboundService;