zjk
2026-09-24 4c4b36e7337385ff15ff66a0ad487cdffaf9c86b
tcm-training-admin-backend/src/main/java/com/tcm/training/admin/agent/controller/ProvincialAgentController.java
@@ -11,6 +11,8 @@
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@Validated
@RestController
@@ -28,6 +30,16 @@
        return ApiResponse.ok(service.page(page, pageSize, regionCode, clinicName, contactInfo, status));
    }
    @GetMapping("/provincial-agents/export")
    @SaCheckPermission("member:agent:view")
    public void export(@RequestParam(required = false) String regionCode,
                       @RequestParam(required = false) String clinicName,
                       @RequestParam(required = false) String contactInfo,
                       @RequestParam(required = false) Integer status,
                       HttpServletResponse response) throws IOException {
        service.export(regionCode, clinicName, contactInfo, status, response);
    }
    @GetMapping("/provincial-agents/{id}")
    @SaCheckPermission("member:agent:detail")
    public ApiResponse<ProvincialAgentDetailVO> detail(@PathVariable Long id) {