From 28407987700ab62540ff61c12098ab50f31ca546 Mon Sep 17 00:00:00 2001
From: shinnosuke <tantao@1hoper.com>
Date: 星期四, 13 八月 2026 16:15:23 +0800
Subject: [PATCH] fix(family-card): 修正管理页面并支持解绑
---
talent-card-server/src/main/java/com/talentcard/server/business/admin/DependentCardApplyAdminController.java | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/talent-card-server/src/main/java/com/talentcard/server/business/admin/DependentCardApplyAdminController.java b/talent-card-server/src/main/java/com/talentcard/server/business/admin/DependentCardApplyAdminController.java
index d4f4222..0685728 100644
--- a/talent-card-server/src/main/java/com/talentcard/server/business/admin/DependentCardApplyAdminController.java
+++ b/talent-card-server/src/main/java/com/talentcard/server/business/admin/DependentCardApplyAdminController.java
@@ -45,10 +45,11 @@
@Parameter(description = "状态:0待审核、1已通过、2已驳回、3已取消") @RequestParam(required = false) Integer status,
@Parameter(description = "申请开始日期") @RequestParam(required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate applyStart,
@Parameter(description = "申请结束日期") @RequestParam(required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate applyEnd,
+ @Parameter(description = "是否按家属卡管理范围查询(仅已绑定和已解绑)") @RequestParam(defaultValue = "false") boolean management,
@Parameter(description = "页码") @RequestParam(defaultValue = "1") int page,
@Parameter(description = "每页数量,最大100") @RequestParam(defaultValue = "10") int size
) {
- return ApiResponse.success(service.page(talentCardId, familyKeyword, talentKeyword, cardLevel, status, applyStart, applyEnd, page, size));
+ return ApiResponse.success(service.page(talentCardId, familyKeyword, talentKeyword, cardLevel, status, applyStart, applyEnd, management, page, size));
}
@Operation(summary = "查询家属附属卡申请详情")
@@ -71,9 +72,18 @@
return ApiResponse.success(service.audit(id, request, operatorId));
}
+ @Operation(summary = "解除家属卡绑定", description = "仅正常状态的家属卡可以解除绑定")
+ @PatchMapping("/{id}/unbind")
+ public ApiResponse<DependentCardApplyAdminResponse> unbind(
+ @PathVariable Long id,
+ @RequestAttribute(AdminAuthInterceptor.OPERATOR_ID_ATTRIBUTE) Long operatorId
+ ) {
+ return ApiResponse.success(service.unbind(id, operatorId));
+ }
+
@Operation(summary = "查询家属附属卡申请状态记录")
@GetMapping("/{id}/status-logs")
public ApiResponse<List<DependentCardApplyStatusLogResponse>> statusLogs(@PathVariable Long id) {
return ApiResponse.success(service.statusLogs(id));
}
-}
\ No newline at end of file
+}
--
Gitblit v1.7.1