From 9597821e57d4bad1ea4e984241f363be956dda8c Mon Sep 17 00:00:00 2001
From: zjh <1084500556@qq.com>
Date: 星期四, 03 七月 2025 18:21:33 +0800
Subject: [PATCH] zjh20250703

---
 ltkj-admin/src/main/java/com/ltkj/web/controller/system/ApiJcycpdgjzController.java |   84 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 84 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..253f367
--- /dev/null
+++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/ApiJcycpdgjzController.java
@@ -0,0 +1,84 @@
+package com.ltkj.web.controller.system;
+
+import com.ltkj.common.annotation.Log;
+import com.ltkj.common.core.controller.BaseController;
+import com.ltkj.common.core.domain.AjaxResult;
+import com.ltkj.common.core.page.TableDataInfo;
+import com.ltkj.common.enums.BusinessType;
+import com.ltkj.common.utils.poi.ExcelUtil;
+import com.ltkj.hosp.domain.ApiJcycpdgjz;
+import com.ltkj.hosp.service.ApiJcycpdgjzService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+
+/**
+ * 鍏抽敭瀛桟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