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

---
 ltkj-admin/src/main/java/com/ltkj/web/config/timer/DefaultScheduled.java            |   19 +
 ltkj-hosp/src/main/resources/mapper/ApiJcycpdgjzMapper.xml                          |  106 ++++++++++
 ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java    |   47 ++++
 ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjXdPictureController.java  |   17 +
 ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/ApiJcycpdgjzMapper.java                |   70 +++++++
 ltkj-admin/src/main/java/com/ltkj/web/controller/system/ApiJcycpdgjzController.java |   92 +++++++++
 ltkj-hosp/src/main/java/com/ltkj/hosp/domain/ApiJcycpdgjz.java                      |   31 +++
 ltkj-hosp/src/main/java/com/ltkj/hosp/service/ApiJcycpdgjzService.java              |   66 ++++++
 ltkj-hosp/src/main/java/com/ltkj/hosp/service/impl/ApiJcycpdgjzServiceImpl.java     |   99 +++++++++
 9 files changed, 539 insertions(+), 8 deletions(-)

diff --git a/ltkj-admin/src/main/java/com/ltkj/web/config/timer/DefaultScheduled.java b/ltkj-admin/src/main/java/com/ltkj/web/config/timer/DefaultScheduled.java
index f3fdf6d..1cedef0 100644
--- a/ltkj-admin/src/main/java/com/ltkj/web/config/timer/DefaultScheduled.java
+++ b/ltkj-admin/src/main/java/com/ltkj/web/config/timer/DefaultScheduled.java
@@ -9,6 +9,7 @@
 import com.ltkj.hosp.service.*;
 import com.ltkj.hosp.sqlDomain.*;
 import com.ltkj.system.service.ISysConfigService;
+import com.ltkj.web.controller.system.SysConfigController;
 import com.ltkj.web.controller.system.TjXdPictureController;
 import jodd.util.StringUtil;
 import lombok.extern.slf4j.Slf4j;
@@ -66,6 +67,8 @@
     private TjXdtgmdjgService xdtgmdjgService;
     @Resource
     private TjXdPictureController pictureController;
+    @Autowired
+    private SysConfigController configController;
 
 
     private final ReentrantLock reentrantLock = new ReentrantLock();
@@ -150,7 +153,19 @@
                                             if(StringUtil.isNotBlank(jcsqd.getJgzt())){
                                                 String[] split = jcsqd.getJgzt().replaceAll("\n", "").split("銆倈锛泑;|,|锛�");
                                                 for (String jg : split) {
-                                                    if(StringUtil.isNotBlank(jg) && !jg.contains("鏈寮傚父")
+                                                    boolean b = configController.apiJcycpdgjz(jg);
+                                                    if(!b){
+                                                        TjJcycxm jcycxm=new TjJcycxm();
+                                                        jcycxm.setTjh(s);
+                                                        jcycxm.setYqid(dqyyyqbm);
+                                                        String[] split1 = jcsqd.getJcxmid().split(";");
+                                                        jcycxm.setProId(split1[0]);
+                                                        jcycxm.setProName(jcsqd.getJcxmmc());
+                                                        jcycxm.setCreateTime(new Date());
+                                                        jcycxm.setJcjg(jg);
+                                                        jcycxmService.save(jcycxm);
+                                                    }
+                                            /*        if(StringUtil.isNotBlank(jg) && !jg.contains("鏈寮傚父")
                                                             && !jg.contains("鏈鏄庢樉寮傚父") && !jg.contains("鏈鍗犱綅") && !jg.contains("鏈")
                                                             && !jg.contains("鏈鏄庢樉")&& !jg.contains("姝e父")&& !jg.contains("鍙屼晶妞庨棿瀛旀棤鐙獎")){
                                                         TjJcycxm jcycxm=new TjJcycxm();
@@ -162,7 +177,7 @@
                                                         jcycxm.setCreateTime(new Date());
                                                         jcycxm.setJcjg(jg);
                                                         jcycxmService.save(jcycxm);
-                                                    }
+                                                    }*/
                                                 }
                                             }
                                         }
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));
+    }
+}
diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java
index 87a916b..b1a246a 100644
--- a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java
+++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java
@@ -79,6 +79,8 @@
     private AwsService awsService;
     @Autowired
     private IdUtils idUtils;
+    @Autowired
+    private ApiJcycpdgjzService apiJcycpdgjzService;
 
     /**
      * 鑾峰彇鍙傛暟閰嶇疆鍒楄〃
@@ -290,7 +292,19 @@
                         if(StringUtil.isNotBlank(jcsqd.getJgzt())){
                             String[] split = jcsqd.getJgzt().replaceAll("\n", "").split("銆倈锛泑;|,|锛�");
                             for (String jg : split) {
-                                if(StringUtil.isNotBlank(jg) && !jg.contains("鏈寮傚父")
+                                boolean b = apiJcycpdgjz(jg);
+                                if(!b){
+                                    TjJcycxm jcycxm=new TjJcycxm();
+                                    jcycxm.setTjh(s);
+                                    jcycxm.setYqid(dqyyyqbm);
+                                    String[] split1 = jcsqd.getJcxmid().split(";");
+                                    jcycxm.setProId(split1[0]);
+                                    jcycxm.setProName(jcsqd.getJcxmmc());
+                                    jcycxm.setCreateTime(new Date());
+                                    jcycxm.setJcjg(jg);
+                                    jcycxmService.save(jcycxm);
+                                }
+                         /*       if(StringUtil.isNotBlank(jg) && !jg.contains("鏈寮傚父")
                                         && !jg.contains("鏈鏄庢樉寮傚父") && !jg.contains("鏈鍗犱綅") && !jg.contains("鏈")
                                         && !jg.contains("鏈鏄庢樉")&& !jg.contains("姝e父")&& !jg.contains("鍙屼晶妞庨棿瀛旀棤鐙獎")){
                                     TjJcycxm jcycxm=new TjJcycxm();
@@ -302,7 +316,7 @@
                                     jcycxm.setCreateTime(new Date());
                                     jcycxm.setJcjg(jg);
                                     jcycxmService.save(jcycxm);
-                                }
+                                }*/
                             }
                         }
                     }
@@ -448,7 +462,20 @@
                     if(StringUtil.isNotBlank(jcsqd.getJgzt())){
                         String[] split = jcsqd.getJgzt().replaceAll("\n", "").split("銆倈锛泑;|,|锛�");
                         for (String jg : split) {
-                            if(StringUtil.isNotBlank(jg) && !jg.contains("鏈寮傚父")
+                            boolean b = apiJcycpdgjz(jg);
+                            if(!b){
+                                TjJcycxm jcycxm=new TjJcycxm();
+                                jcycxm.setTjh(s);
+                                jcycxm.setYqid(yqbm);
+                                String[] split1 = jcsqd.getJcxmid().split(";");
+                                jcycxm.setProId(split1[0]);
+                                jcycxm.setProName(jcsqd.getJcxmmc());
+                                jcycxm.setCreateTime(new Date());
+                                jcycxm.setJcjg(jg);
+                                jcycxmService.save(jcycxm);
+                            }
+
+                     /*       if(StringUtil.isNotBlank(jg) && !jg.contains("鏈寮傚父")
                                     && !jg.contains("鏈鏄庢樉寮傚父") && !jg.contains("鏈鍗犱綅")  && !jg.contains("鏃犲紓甯�")
                                     && !jg.contains("鏈鏄庢樉")&& !jg.contains("姝e父")&& !jg.contains("鍙屼晶妞庨棿瀛旀棤鐙獎")&& !jg.contains("鏃犳畩")){
                                 TjJcycxm jcycxm=new TjJcycxm();
@@ -460,7 +487,7 @@
                                 jcycxm.setCreateTime(new Date());
                                 jcycxm.setJcjg(jg);
                                 jcycxmService.save(jcycxm);
-                            }
+                            }*/
                         }
                     }
                 }
@@ -509,4 +536,16 @@
         return AjaxResult.success();
     }
 
+
+
+    public boolean apiJcycpdgjz(String jg) {
+        if(StringUtil.isNotBlank(jg)){
+            List<String> gjzList = apiJcycpdgjzService.getGjzList();
+            if(null !=gjzList && !gjzList.isEmpty()){
+                return gjzList.stream().anyMatch(jg::contains);
+            }
+        }
+        return false;
+    }
+
 }
diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjXdPictureController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjXdPictureController.java
index af53c70..f1efa72 100644
--- a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjXdPictureController.java
+++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjXdPictureController.java
@@ -75,6 +75,8 @@
     private LtkjExamJcsqdService jcsqdService;
     @Autowired
     private TjJcycxmService jcycxmService;
+    @Autowired
+    private SysConfigController configController;
     /**
      * 鏌ヨ浣撴蹇冪數鍥剧鐞嗗垪琛�
      */
@@ -441,7 +443,18 @@
                 String s = "銆倈锛泑;|,|锛�";
                 String[] split = xdtgmdjg.getJcjl().replaceAll("\n", "銆�").split(s);
                 for (String jg : split) {
-                    if(StringUtil.isNotBlank(jg) && !jg.contains("鏈寮傚父")
+                    boolean b = configController.apiJcycpdgjz(jg);
+                    if(!b){
+                        TjJcycxm jcycxm=new TjJcycxm();
+                        jcycxm.setTjh(xdtgmdjg.getTjh());
+                        jcycxm.setYqid("");
+                        jcycxm.setProId(xdtgmdjg.getProId());
+                        jcycxm.setProName(xdtgmdjg.getProName());
+                        jcycxm.setCreateTime(new Date());
+                        jcycxm.setJcjg(jg);
+                        jcycxmService.save(jcycxm);
+                    }
+/*                    if(StringUtil.isNotBlank(jg) && !jg.contains("鏈寮傚父")
                             && !jg.contains("鏈鏄庢樉寮傚父") && !jg.contains("鏈鍗犱綅") && !jg.contains("鏈")
                             && !jg.contains("鏈鏄庢樉")&& !jg.contains("姝e父")&& !jg.contains("鍙屼晶妞庨棿瀛旀棤鐙獎")){
                         TjJcycxm jcycxm=new TjJcycxm();
@@ -452,7 +465,7 @@
                         jcycxm.setCreateTime(new Date());
                         jcycxm.setJcjg(jg);
                         jcycxmService.save(jcycxm);
-                    }
+                    }*/
                 }
             }
         } catch (Exception e) {
diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/domain/ApiJcycpdgjz.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/domain/ApiJcycpdgjz.java
new file mode 100644
index 0000000..f833e63
--- /dev/null
+++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/domain/ApiJcycpdgjz.java
@@ -0,0 +1,31 @@
+package com.ltkj.hosp.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.ltkj.common.annotation.Excel;
+import com.ltkj.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+ * ClassName: ApiJcycpdgjz <br/>
+ * Description: <br/>
+ * date: 2025/7/3 15:03<br/>
+ *
+ * @author zjh<br />
+ */
+@Data
+@ApiModel(value = "浣撴妫�鏌ュ紓甯稿垽鏂叧閿瓧琛�")
+public class ApiJcycpdgjz extends BaseEntity {
+
+    @TableId(type = IdType.ASSIGN_ID)
+    private String id;
+
+    /**
+     * 鍗曚綅id
+     */
+    @Excel(name = "鍏抽敭瀛�")
+    @ApiModelProperty(value = "鍏抽敭瀛�")
+    private String gjz;
+}
diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/ApiJcycpdgjzMapper.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/ApiJcycpdgjzMapper.java
new file mode 100644
index 0000000..5961431
--- /dev/null
+++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/ApiJcycpdgjzMapper.java
@@ -0,0 +1,70 @@
+package com.ltkj.hosp.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.ltkj.hosp.domain.ApiJcycpdgjz;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+/**
+ * ClassName: ApiJcycpdgjzMapper <br/>
+ * Description: <br/>
+ * date: 2025/7/3 15:05<br/>
+ *
+ * @author zjh<br />
+ */
+@Mapper
+public interface ApiJcycpdgjzMapper extends BaseMapper<ApiJcycpdgjz> {
+    /**
+     * 鏌ヨ鍏抽敭瀛�
+     *
+     * @param id 鍏抽敭瀛椾富閿�
+     * @return 鍏抽敭瀛�
+     */
+    public ApiJcycpdgjz selectApiJcycpdgjzById(Long id);
+
+    /**
+     * 鏌ヨ鍏抽敭瀛楀垪琛�
+     *
+     * @param apiJcycpdgjz 鍏抽敭瀛�
+     * @return 鍏抽敭瀛楅泦鍚�
+     */
+    public List<ApiJcycpdgjz> selectApiJcycpdgjzList(ApiJcycpdgjz apiJcycpdgjz);
+
+    /**
+     * 鏂板鍏抽敭瀛�
+     *
+     * @param apiJcycpdgjz 鍏抽敭瀛�
+     * @return 缁撴灉
+     */
+    public int insertApiJcycpdgjz(ApiJcycpdgjz apiJcycpdgjz);
+
+    /**
+     * 淇敼鍏抽敭瀛�
+     *
+     * @param apiJcycpdgjz 鍏抽敭瀛�
+     * @return 缁撴灉
+     */
+    public int updateApiJcycpdgjz(ApiJcycpdgjz apiJcycpdgjz);
+
+    /**
+     * 鍒犻櫎鍏抽敭瀛�
+     *
+     * @param id 鍏抽敭瀛椾富閿�
+     * @return 缁撴灉
+     */
+    public int deleteApiJcycpdgjzById(Long id);
+
+    /**
+     * 鎵归噺鍒犻櫎鍏抽敭瀛�
+     *
+     * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎
+     * @return 缁撴灉
+     */
+    public int deleteApiJcycpdgjzByIds(Long[] ids);
+
+
+    @Select("select  a.gjz from  api_jcycpdgjz a where  a.deleted=0")
+    List<String> getGjzList();
+}
diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/service/ApiJcycpdgjzService.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/service/ApiJcycpdgjzService.java
new file mode 100644
index 0000000..f2f41ad
--- /dev/null
+++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/service/ApiJcycpdgjzService.java
@@ -0,0 +1,66 @@
+package com.ltkj.hosp.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.ltkj.hosp.domain.ApiJcycpdgjz;
+
+import java.util.List;
+
+/**
+ * ClassName: ApiJcycpdgjzService <br/>
+ * Description: <br/>
+ * date: 2025/7/3 15:06<br/>
+ *
+ * @author zjh<br />
+ */
+public interface ApiJcycpdgjzService extends IService<ApiJcycpdgjz> {
+    /**
+     * 鏌ヨ鍏抽敭瀛�
+     *
+     * @param id 鍏抽敭瀛椾富閿�
+     * @return 鍏抽敭瀛�
+     */
+    public ApiJcycpdgjz selectApiJcycpdgjzById(Long id);
+
+    /**
+     * 鏌ヨ鍏抽敭瀛楀垪琛�
+     *
+     * @param apiJcycpdgjz 鍏抽敭瀛�
+     * @return 鍏抽敭瀛楅泦鍚�
+     */
+    public List<ApiJcycpdgjz> selectApiJcycpdgjzList(ApiJcycpdgjz apiJcycpdgjz);
+
+    /**
+     * 鏂板鍏抽敭瀛�
+     *
+     * @param apiJcycpdgjz 鍏抽敭瀛�
+     * @return 缁撴灉
+     */
+    public int insertApiJcycpdgjz(ApiJcycpdgjz apiJcycpdgjz);
+
+    /**
+     * 淇敼鍏抽敭瀛�
+     *
+     * @param apiJcycpdgjz 鍏抽敭瀛�
+     * @return 缁撴灉
+     */
+    public int updateApiJcycpdgjz(ApiJcycpdgjz apiJcycpdgjz);
+
+    /**
+     * 鎵归噺鍒犻櫎鍏抽敭瀛�
+     *
+     * @param ids 闇�瑕佸垹闄ょ殑鍏抽敭瀛椾富閿泦鍚�
+     * @return 缁撴灉
+     */
+    public int deleteApiJcycpdgjzByIds(Long[] ids);
+
+    /**
+     * 鍒犻櫎鍏抽敭瀛椾俊鎭�
+     *
+     * @param id 鍏抽敭瀛椾富閿�
+     * @return 缁撴灉
+     */
+    public int deleteApiJcycpdgjzById(Long id);
+
+
+    List<String> getGjzList();
+}
diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/service/impl/ApiJcycpdgjzServiceImpl.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/service/impl/ApiJcycpdgjzServiceImpl.java
new file mode 100644
index 0000000..8de0963
--- /dev/null
+++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/service/impl/ApiJcycpdgjzServiceImpl.java
@@ -0,0 +1,99 @@
+package com.ltkj.hosp.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ltkj.common.utils.DateUtils;
+import com.ltkj.hosp.domain.ApiJcycpdgjz;
+import com.ltkj.hosp.mapper.ApiJcycpdgjzMapper;
+import com.ltkj.hosp.service.ApiJcycpdgjzService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * ClassName: ApiJcycpdgjzServiceImpl <br/>
+ * Description: <br/>
+ * date: 2025/7/3 15:06<br/>
+ *
+ * @author zjh<br />
+ */
+
+@Service
+public class ApiJcycpdgjzServiceImpl extends ServiceImpl<ApiJcycpdgjzMapper, ApiJcycpdgjz> implements ApiJcycpdgjzService {
+    @Autowired
+    private ApiJcycpdgjzMapper apiJcycpdgjzMapper;
+
+    /**
+     * 鏌ヨ鍏抽敭瀛�
+     *
+     * @param id 鍏抽敭瀛椾富閿�
+     * @return 鍏抽敭瀛�
+     */
+    @Override
+    public ApiJcycpdgjz selectApiJcycpdgjzById(Long id) {
+        return apiJcycpdgjzMapper.selectApiJcycpdgjzById(id);
+    }
+
+    /**
+     * 鏌ヨ鍏抽敭瀛楀垪琛�
+     *
+     * @param apiJcycpdgjz 鍏抽敭瀛�
+     * @return 鍏抽敭瀛�
+     */
+    @Override
+    public List<ApiJcycpdgjz> selectApiJcycpdgjzList(ApiJcycpdgjz apiJcycpdgjz) {
+        return apiJcycpdgjzMapper.selectApiJcycpdgjzList(apiJcycpdgjz);
+    }
+
+    /**
+     * 鏂板鍏抽敭瀛�
+     *
+     * @param apiJcycpdgjz 鍏抽敭瀛�
+     * @return 缁撴灉
+     */
+    @Override
+    public int insertApiJcycpdgjz(ApiJcycpdgjz apiJcycpdgjz) {
+        apiJcycpdgjz.setCreateTime(DateUtils.getNowDate());
+        return apiJcycpdgjzMapper.insertApiJcycpdgjz(apiJcycpdgjz);
+    }
+
+    /**
+     * 淇敼鍏抽敭瀛�
+     *
+     * @param apiJcycpdgjz 鍏抽敭瀛�
+     * @return 缁撴灉
+     */
+    @Override
+    public int updateApiJcycpdgjz(ApiJcycpdgjz apiJcycpdgjz) {
+        apiJcycpdgjz.setUpdateTime(DateUtils.getNowDate());
+        return apiJcycpdgjzMapper.updateApiJcycpdgjz(apiJcycpdgjz);
+    }
+
+    /**
+     * 鎵归噺鍒犻櫎鍏抽敭瀛�
+     *
+     * @param ids 闇�瑕佸垹闄ょ殑鍏抽敭瀛椾富閿�
+     * @return 缁撴灉
+     */
+    @Override
+    public int deleteApiJcycpdgjzByIds(Long[] ids) {
+        return apiJcycpdgjzMapper.deleteApiJcycpdgjzByIds(ids);
+    }
+
+    /**
+     * 鍒犻櫎鍏抽敭瀛椾俊鎭�
+     *
+     * @param id 鍏抽敭瀛椾富閿�
+     * @return 缁撴灉
+     */
+    @Override
+    public int deleteApiJcycpdgjzById(Long id) {
+        return apiJcycpdgjzMapper.deleteApiJcycpdgjzById(id);
+    }
+
+    @Override
+    public List<String> getGjzList() {
+        return apiJcycpdgjzMapper.getGjzList();
+    }
+}
diff --git a/ltkj-hosp/src/main/resources/mapper/ApiJcycpdgjzMapper.xml b/ltkj-hosp/src/main/resources/mapper/ApiJcycpdgjzMapper.xml
new file mode 100644
index 0000000..23a9973
--- /dev/null
+++ b/ltkj-hosp/src/main/resources/mapper/ApiJcycpdgjzMapper.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ltkj.hosp.mapper.ApiJcycpdgjzMapper">
+
+    <resultMap type="ApiJcycpdgjz" id="ApiJcycpdgjzResult">
+            <result property="id" column="id"/>
+            <result property="gjz" column="gjz"/>
+            <result property="createTime" column="create_time"/>
+            <result property="createBy" column="create_by"/>
+            <result property="updateTime" column="update_time"/>
+            <result property="updateBy" column="update_by"/>
+            <result property="deleted" column="deleted"/>
+    </resultMap>
+
+    <sql id="selectApiJcycpdgjzVo">
+        select id, gjz, create_time, create_by, update_time, update_by, deleted
+        from api_jcycpdgjz
+    </sql>
+
+    <select id="selectApiJcycpdgjzList" parameterType="ApiJcycpdgjz" resultMap="ApiJcycpdgjzResult">
+        <include refid="selectApiJcycpdgjzVo"/>
+        <where>
+                        <if test="gjz != null  and gjz != ''">
+                            and gjz like concat('%', #{gjz}, '%')
+                        </if>
+        </where>
+    </select>
+
+    <select id="selectApiJcycpdgjzById" parameterType="Long"
+            resultMap="ApiJcycpdgjzResult">
+            <include refid="selectApiJcycpdgjzVo"/>
+            where id = #{id}
+    </select>
+
+    <insert id="insertApiJcycpdgjz" parameterType="ApiJcycpdgjz" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into api_jcycpdgjz
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test="gjz != null">gjz,
+                    </if>
+                    <if test="createTime != null">create_time,
+                    </if>
+                    <if test="createBy != null">create_by,
+                    </if>
+                    <if test="updateTime != null">update_time,
+                    </if>
+                    <if test="updateBy != null">update_by,
+                    </if>
+                    <if test="deleted != null">deleted,
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test="gjz != null">#{gjz},
+                    </if>
+                    <if test="createTime != null">#{createTime},
+                    </if>
+                    <if test="createBy != null">#{createBy},
+                    </if>
+                    <if test="updateTime != null">#{updateTime},
+                    </if>
+                    <if test="updateBy != null">#{updateBy},
+                    </if>
+                    <if test="deleted != null">#{deleted},
+                    </if>
+        </trim>
+    </insert>
+
+    <update id="updateApiJcycpdgjz" parameterType="ApiJcycpdgjz">
+        update api_jcycpdgjz
+        <trim prefix="SET" suffixOverrides=",">
+                    <if test="gjz != null">gjz =
+                        #{gjz},
+                    </if>
+                    <if test="createTime != null">create_time =
+                        #{createTime},
+                    </if>
+                    <if test="createBy != null">create_by =
+                        #{createBy},
+                    </if>
+                    <if test="updateTime != null">update_time =
+                        #{updateTime},
+                    </if>
+                    <if test="updateBy != null">update_by =
+                        #{updateBy},
+                    </if>
+                    <if test="deleted != null">deleted =
+                        #{deleted},
+                    </if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteApiJcycpdgjzById" parameterType="Long">
+        delete
+        from api_jcycpdgjz where id = #{id}
+    </delete>
+
+    <delete id="deleteApiJcycpdgjzByIds" parameterType="String">
+        delete from api_jcycpdgjz where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

--
Gitblit v1.8.0