From 44c1a5542cb3323b748389e9acc18e670f76e836 Mon Sep 17 00:00:00 2001
From: zhaowenxuan <chacca165@163.com>
Date: 星期四, 03 七月 2025 18:41:28 +0800
Subject: [PATCH] 2025-07-03

---
 ltkj-admin/src/main/java/com/ltkj/web/controller/system/ApiJcycpdgjzController.java |   92 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 92 insertions(+), 0 deletions(-)

diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/ApiJcycpdgjzController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/ApiJcycpdgjzController.java
new file mode 100644
index 0000000..7a0f426
--- /dev/null
+++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/ApiJcycpdgjzController.java
@@ -0,0 +1,92 @@
+package com.ltkj.web.controller.system;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.ltkj.hosp.domain.ApiJcycpdgjz;
+import com.ltkj.hosp.service.ApiJcycpdgjzService;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ltkj.common.annotation.Log;
+import com.ltkj.common.core.controller.BaseController;
+import com.ltkj.common.core.domain.AjaxResult;
+import com.ltkj.common.enums.BusinessType;
+import com.ltkj.common.utils.poi.ExcelUtil;
+import com.ltkj.common.core.page.TableDataInfo;
+
+/**
+ * 鍏抽敭瀛桟ontroller
+ *
+ * @author ltkj_璧典匠璞�&鏉庢牸
+ * @date 2025-07-03
+ */
+@RestController
+@RequestMapping("/system/jcycpdgjz")
+public class ApiJcycpdgjzController extends BaseController {
+    @Autowired
+    private ApiJcycpdgjzService apiJcycpdgjzService;
+
+/**
+ * 鏌ヨ鍏抽敭瀛楀垪琛�
+ */
+    @GetMapping("/list")
+    public TableDataInfo list(ApiJcycpdgjz apiJcycpdgjz) {
+        startPage();
+        List<ApiJcycpdgjz> list = apiJcycpdgjzService.selectApiJcycpdgjzList(apiJcycpdgjz);
+        return getDataTable(list);
+    }
+
+    /**
+     * 瀵煎嚭鍏抽敭瀛楀垪琛�
+     */
+    @Log(title = "鍏抽敭瀛�", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, ApiJcycpdgjz apiJcycpdgjz) {
+        List<ApiJcycpdgjz> list = apiJcycpdgjzService.selectApiJcycpdgjzList(apiJcycpdgjz);
+        ExcelUtil<ApiJcycpdgjz> util = new ExcelUtil<ApiJcycpdgjz>(ApiJcycpdgjz. class);
+        util.exportExcel(response, list, "鍏抽敭瀛楁暟鎹�");
+    }
+
+    /**
+     * 鑾峰彇鍏抽敭瀛楄缁嗕俊鎭�
+     */
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
+        return success(apiJcycpdgjzService.selectApiJcycpdgjzById(id));
+    }
+
+    /**
+     * 鏂板鍏抽敭瀛�
+     */
+    @Log(title = "鍏抽敭瀛�", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody ApiJcycpdgjz apiJcycpdgjz) {
+        return toAjax(apiJcycpdgjzService.save(apiJcycpdgjz));
+    }
+
+    /**
+     * 淇敼鍏抽敭瀛�
+     */
+    @Log(title = "鍏抽敭瀛�", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody ApiJcycpdgjz apiJcycpdgjz) {
+        return toAjax(apiJcycpdgjzService.updateById(apiJcycpdgjz));
+    }
+
+    /**
+     * 鍒犻櫎鍏抽敭瀛�
+     */
+    @Log(title = "鍏抽敭瀛�", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids) {
+        return toAjax(apiJcycpdgjzService.deleteApiJcycpdgjzByIds(ids));
+    }
+}

--
Gitblit v1.8.0