Browse Source

技术文档补充

hsh 1 year ago
parent
commit
4f567a8f61

+ 48 - 0
src/main/java/thyyxxk/webserver/controller/technologyArchives/TechnologyArchivesController.java

@@ -11,15 +11,18 @@ import org.springframework.web.bind.annotation.RestController;
 import thyyxxk.webserver.entity.ResultVo;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives1;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives10;
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives11;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives12;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives13;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives14;
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives15;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives2;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives3;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives4;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives5;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives6;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives7;
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives8;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives9;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchivesMain;
 import thyyxxk.webserver.service.technologyArchives.TechnologyArchivesService;
@@ -240,4 +243,49 @@ public class TechnologyArchivesController {
         return service.delTechnologyArchives14ByCode(socialNo, id);
     }
 
+    @GetMapping("/selectTechnologyArchives8")
+    public ResultVo<List<TechnologyArchives8>> selectTechnologyArchives8(){
+        return service.selectTechnologyArchives8();
+    }
+
+    @PostMapping("/saveTechnologyArchives8")
+    public ResultVo<Map<String, Object>> saveTechnologyArchives8(@RequestBody @Validated TechnologyArchives8 eighth){
+        return service.saveTechnologyArchives8(eighth);
+    }
+
+    @GetMapping("/delTechnologyArchives8ByCode")
+    public ResultVo<Map<String, Object>> delTechnologyArchives8ByCode(@RequestParam("socialNo") String socialNo, @RequestParam("id") Integer id){
+        return service.delTechnologyArchives8ByCode(socialNo, id);
+    }
+
+    @GetMapping("/selectTechnologyArchives11")
+    public ResultVo<List<TechnologyArchives11>> selectTechnologyArchives11(){
+        return service.selectTechnologyArchives11();
+    }
+
+    @PostMapping("/saveTechnologyArchives11")
+    public ResultVo<Map<String, Object>> saveTechnologyArchives11(@RequestBody @Validated TechnologyArchives11 eleventh){
+        return service.saveTechnologyArchives11(eleventh);
+    }
+
+    @GetMapping("/delTechnologyArchives11ByCode")
+    public ResultVo<Map<String, Object>> delTechnologyArchives11ByCode(@RequestParam("socialNo") String socialNo, @RequestParam("id") Integer id){
+        return service.delTechnologyArchives11ByCode(socialNo, id);
+    }
+
+    @GetMapping("/selectTechnologyArchives15")
+    public ResultVo<List<TechnologyArchives15>> selectTechnologyArchives15(){
+        return service.selectTechnologyArchives15();
+    }
+
+    @PostMapping("/saveTechnologyArchives15")
+    public ResultVo<Map<String, Object>> saveTechnologyArchives15(@RequestBody @Validated TechnologyArchives15 fifteenth){
+        return service.saveTechnologyArchives15(fifteenth);
+    }
+
+    @GetMapping("/delTechnologyArchives15ByCode")
+    public ResultVo<Map<String, Object>> delTechnologyArchives15ByCode(@RequestParam("socialNo") String socialNo, @RequestParam("id") Integer id){
+        return service.delTechnologyArchives15ByCode(socialNo, id);
+    }
+
 }

+ 61 - 0
src/main/java/thyyxxk/webserver/dao/his/technologyArchives/TechnologyArchives11Dao.java

@@ -0,0 +1,61 @@
+package thyyxxk.webserver.dao.his.technologyArchives;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives11;
+
+import java.util.List;
+
+@Mapper
+public interface TechnologyArchives11Dao extends BaseMapper<TechnologyArchives11> {
+
+    @Select("<script> " +
+            " select * from technology_archives11 where 1 = 1 " +
+            " <if test=\"socialNo != null and socialNo != '' \"> " +
+            " and social_no = #{socialNo} " +
+            " </if> " +
+            " <if test=\"account != null and account != '' \"> " +
+            " and account = #{account} " +
+            " </if> " +
+            "</script> ")
+    List<TechnologyArchives11> selectEleventhListByCode(@Param("socialNo") String socialNo, @Param("account") String account);
+
+    @Select(" select * from technology_archives11 where social_no = #{socialNo} and id = #{id} ")
+    TechnologyArchives11 selectTechnologyArchives11ById(@Param("socialNo") String socialNo, @Param("id") Integer id);
+
+    @Update("<script>" +
+            "update technology_archives11 " +
+            "<trim prefix=\"set\" suffixOverrides=\",\">" +
+            "<if test=\"socialNo != null and socialNo != '' \">" +
+            "social_no = #{socialNo}, " +
+            "</if>" +
+            "<if test=\"id != null and id != '' \">" +
+            "id = #{id}, " +
+            "</if>" +
+            "<if test=\"time != null and time != '' \">" +
+            "time = #{time}, " +
+            "</if>" +
+            "<if test=\"record != null and record != '' \">" +
+            "record = #{record}, " +
+            "</if>" +
+            "<if test=\"comment != null and comment != '' \">" +
+            "comment = #{comment}, " +
+            "</if>" +
+            "<if test=\"account != null and account != '' \">" +
+            "account = #{account}, " +
+            "</if>" +
+            "</trim>" +
+            "where social_no = #{socialNo} and id = #{id} " +
+            "</script>")
+    int updateTechnologyArchives11ById(TechnologyArchives11 eleventh);
+
+    @Select(" select isnull(max(id), 0) as id from technology_archives11 where social_no = #{socialNo} ")
+    int selectTechnologyArchives11MaxId(@Param("socialNo") String socialNo);
+
+    @Update(" delete from technology_archives11 where social_no = #{socialNo} and id = #{id} ")
+    int delTechnologyArchives11ByCode(@Param("socialNo") String socialNo, @Param("id") Integer id);
+
+}

+ 0 - 1
src/main/java/thyyxxk/webserver/dao/his/technologyArchives/TechnologyArchives14Dao.java

@@ -5,7 +5,6 @@ import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;
 import org.apache.ibatis.annotations.Update;
-import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives13;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives14;
 
 import java.util.List;

+ 68 - 0
src/main/java/thyyxxk/webserver/dao/his/technologyArchives/TechnologyArchives15Dao.java

@@ -0,0 +1,68 @@
+package thyyxxk.webserver.dao.his.technologyArchives;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives11;
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives15;
+
+import java.util.List;
+
+@Mapper
+public interface TechnologyArchives15Dao extends BaseMapper<TechnologyArchives15> {
+
+    @Select("<script> " +
+            " select * from technology_archives15 where 1 = 1 " +
+            " <if test=\"socialNo != null and socialNo != '' \"> " +
+            " and social_no = #{socialNo} " +
+            " </if> " +
+            " <if test=\"account != null and account != '' \"> " +
+            " and account = #{account} " +
+            " </if> " +
+            "</script> ")
+    List<TechnologyArchives15> selectFifteenthListByCode(@Param("socialNo") String socialNo, @Param("account") String account);
+
+    @Select(" select * from technology_archives15 where social_no = #{socialNo} and id = #{id} ")
+    TechnologyArchives15 selectTechnologyArchives15ById(@Param("socialNo") String socialNo, @Param("id") Integer id);
+
+    @Update("<script>" +
+            "update technology_archives15 " +
+            "<trim prefix=\"set\" suffixOverrides=\",\">" +
+            "<if test=\"socialNo != null and socialNo != '' \">" +
+            "social_no = #{socialNo}, " +
+            "</if>" +
+            "<if test=\"id != null and id != '' \">" +
+            "id = #{id}, " +
+            "</if>" +
+            "<if test=\"time != null and time != '' \">" +
+            "time = #{time}, " +
+            "</if>" +
+            "<if test=\"name != null and name != '' \">" +
+            "name = #{name}, " +
+            "</if>" +
+            "<if test=\"content != null and content != '' \">" +
+            "content = #{content}, " +
+            "</if>" +
+            "<if test=\"delFlag != null and delFlag != '' \">" +
+            "del_flag = #{delFlag}, " +
+            "</if>" +
+            "<if test=\"comment != null and comment != '' \">" +
+            "comment = #{comment}, " +
+            "</if>" +
+            "<if test=\"account != null and account != '' \">" +
+            "account = #{account}, " +
+            "</if>" +
+            "</trim>" +
+            "where social_no = #{socialNo} and id = #{id} " +
+            "</script>")
+    int updateTechnologyArchives15ById(TechnologyArchives15 fifteenth);
+
+    @Select(" select isnull(max(id), 0) as id from technology_archives15 where social_no = #{socialNo} ")
+    int selectTechnologyArchives15MaxId(@Param("socialNo") String socialNo);
+
+    @Update(" delete from technology_archives15 where social_no = #{socialNo} and id = #{id} ")
+    int delTechnologyArchives15ByCode(@Param("socialNo") String socialNo, @Param("id") Integer id);
+
+}

+ 0 - 1
src/main/java/thyyxxk/webserver/dao/his/technologyArchives/TechnologyArchives6Dao.java

@@ -5,7 +5,6 @@ import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;
 import org.apache.ibatis.annotations.Update;
-import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives3;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives6;
 
 import java.util.List;

+ 70 - 0
src/main/java/thyyxxk/webserver/dao/his/technologyArchives/TechnologyArchives8Dao.java

@@ -0,0 +1,70 @@
+package thyyxxk.webserver.dao.his.technologyArchives;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives8;
+
+import java.util.List;
+
+@Mapper
+public interface TechnologyArchives8Dao extends BaseMapper<TechnologyArchives8> {
+
+    @Select("<script> " +
+            " select * from technology_archives8 where 1 = 1 " +
+            " <if test=\"socialNo != null and socialNo != '' \"> " +
+            " and social_no = #{socialNo} " +
+            " </if> " +
+            " <if test=\"account != null and account != '' \"> " +
+            " and account = #{account} " +
+            " </if> " +
+            "</script> ")
+    List<TechnologyArchives8> selectEighthListByCode(@Param("socialNo") String socialNo, @Param("account") String account);
+
+    @Select(" select * from technology_archives8 where social_no = #{socialNo} and id = #{id} ")
+    TechnologyArchives8 selectTechnologyArchives8ById(@Param("socialNo") String socialNo, @Param("id") Integer id);
+
+    @Update("<script>" +
+            "update technology_archives8 " +
+            "<trim prefix=\"set\" suffixOverrides=\",\">" +
+            "<if test=\"socialNo != null and socialNo != '' \">" +
+            "social_no = #{socialNo}, " +
+            "</if>" +
+            "<if test=\"id != null and id != '' \">" +
+            "id = #{id}, " +
+            "</if>" +
+            "<if test=\"time != null and time != '' \">" +
+            "time = #{time}, " +
+            "</if>" +
+            "<if test=\"name != null and name != '' \">" +
+            "name = #{name}, " +
+            "</if>" +
+            "<if test=\"opName != null and opName != '' \">" +
+            "op_name = #{opName}, " +
+            "</if>" +
+            "<if test=\"opCode != null and opCode != '' \">" +
+            "op_code = #{opCode}, " +
+            "</if>" +
+            "<if test=\"delFlag != null and delFlag != '' \">" +
+            "del_flag = #{delFlag}, " +
+            "</if>" +
+            "<if test=\"comment != null and comment != '' \">" +
+            "comment = #{comment}, " +
+            "</if>" +
+            "<if test=\"account != null and account != '' \">" +
+            "account = #{account}, " +
+            "</if>" +
+            "</trim>" +
+            "where social_no = #{socialNo} and id = #{id} " +
+            "</script>")
+    int updateTechnologyArchives8ById(TechnologyArchives8 eighth);
+
+    @Select(" select isnull(max(id), 0) as id from technology_archives8 where social_no = #{socialNo} ")
+    int selectTechnologyArchives8MaxId(@Param("socialNo") String socialNo);
+
+    @Update(" delete from technology_archives8 where social_no = #{socialNo} and id = #{id} ")
+    int delTechnologyArchives8ByCode(@Param("socialNo") String socialNo, @Param("id") Integer id);
+
+}

+ 27 - 0
src/main/java/thyyxxk/webserver/entity/technologyArchives/TechnologyArchives11.java

@@ -0,0 +1,27 @@
+package thyyxxk.webserver.entity.technologyArchives;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+/**
+ * @ClassName TechnologyArchives11
+ * @Author hsh
+ * @Date 2024/7/18 11:14
+ * @Version 1.0
+ * @Description 医疗安全行为记录
+ **/
+@Data
+@TableName("technology_archives11")
+public class TechnologyArchives11 {
+
+    @TableId(value = "social_no", type = IdType.NONE)
+    private String socialNo; // 身份证号
+    private Integer id; // id
+    private String time; // 时间
+    private String record; // 事件性质
+    private String comment; // 情况摘要
+    private String account; // 工号
+
+}

+ 29 - 0
src/main/java/thyyxxk/webserver/entity/technologyArchives/TechnologyArchives15.java

@@ -0,0 +1,29 @@
+package thyyxxk.webserver.entity.technologyArchives;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+/**
+ * @ClassName TechnologyArchives15
+ * @Author hsh
+ * @Date 2024/7/18 15:19
+ * @Version 1.0
+ * @Description 应用医疗技术权限记录
+ **/
+@Data
+@TableName("technology_archives15")
+public class TechnologyArchives15 {
+
+    @TableId(value = "social_no", type = IdType.NONE)
+    private String socialNo; // 身份证号
+    private Integer id; // id
+    private String time; // 时间
+    private String name; // 权限名称(1、临床技能|2、病历书写与审核|3、处方权限|4、值班|5、会诊|6、门诊|7、分级麻醉|8、分级手术/操作授权|9、精麻处方|10、抗菌素处方分级)
+    private String content; // 权限内容
+    private String delFlag; // 权限资格(0: 授予  1: 除去)
+    private String comment; // 备注
+    private String account; // 工号
+
+}

+ 30 - 0
src/main/java/thyyxxk/webserver/entity/technologyArchives/TechnologyArchives8.java

@@ -0,0 +1,30 @@
+package thyyxxk.webserver.entity.technologyArchives;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+/**
+ * @ClassName TechnologyArchives8
+ * @Author hsh
+ * @Date 2024/7/18 9:35
+ * @Version 1.0
+ * @Description 限制类医疗技术档案
+ **/
+@Data
+@TableName("technology_archives8")
+public class TechnologyArchives8 {
+
+    @TableId(value = "social_no", type = IdType.NONE)
+    private String socialNo; // 身份证号
+    private Integer id; // id
+    private String time; // 开展时间
+    private String name;  // 限制类技术项目名称
+    private String opCode; // 手术编码
+    private String opName; // 手术名称
+    private String delFlag; // 权限资格(0: 授予  1: 除去)
+    private String comment; // 备注
+    private String account; // 工号
+
+}

+ 245 - 2
src/main/java/thyyxxk/webserver/service/technologyArchives/TechnologyArchivesService.java

@@ -5,9 +5,11 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import thyyxxk.webserver.config.exception.ExceptionEnum;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives10Dao;
+import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives11Dao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives12Dao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives13Dao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives14Dao;
+import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives15Dao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives1Dao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives2Dao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives3Dao;
@@ -15,6 +17,7 @@ import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives4Dao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives5Dao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives6Dao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives7Dao;
+import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives8Dao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchives9Dao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchivesDao;
 import thyyxxk.webserver.dao.his.technologyArchives.TechnologyArchivesMainDao;
@@ -23,15 +26,18 @@ import thyyxxk.webserver.entity.dictionary.CodeName;
 import thyyxxk.webserver.entity.login.UserInfo;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives1;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives10;
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives11;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives12;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives13;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives14;
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives15;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives2;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives3;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives4;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives5;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives6;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives7;
+import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives8;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchives9;
 import thyyxxk.webserver.entity.technologyArchives.TechnologyArchivesMain;
 import thyyxxk.webserver.service.redislike.RedisLikeService;
@@ -83,12 +89,19 @@ public class TechnologyArchivesService {
 
     private final TechnologyArchives14Dao fourteenthDao;
 
+    private final TechnologyArchives8Dao eighthDao;
+
+    private final TechnologyArchives11Dao eleventhDao;
+
+    private final TechnologyArchives15Dao fifteenthDao;
+
     @Autowired
     public TechnologyArchivesService(TechnologyArchivesDao dao, TechnologyArchivesMainDao mainDao, RedisLikeService redisLikeService,
                                      TechnologyArchives1Dao firstDao, TechnologyArchives2Dao secondDao, TechnologyArchives3Dao thirdDao,
                                      TechnologyArchives4Dao fourthDao, TechnologyArchives5Dao fifthDao, TechnologyArchives6Dao sixthDao,
                                      TechnologyArchives7Dao seventhDao, TechnologyArchives9Dao ninthDao, TechnologyArchives10Dao tenthDao,
-                                     TechnologyArchives12Dao twelfthDao, TechnologyArchives13Dao thirteenthDao, TechnologyArchives14Dao fourteenthDao) {
+                                     TechnologyArchives12Dao twelfthDao, TechnologyArchives13Dao thirteenthDao, TechnologyArchives14Dao fourteenthDao,
+                                     TechnologyArchives8Dao eighthDao, TechnologyArchives11Dao eleventhDao, TechnologyArchives15Dao fifteenthDao) {
         this.dao = dao;
         this.mainDao = mainDao;
         this.redisLikeService = redisLikeService;
@@ -104,6 +117,9 @@ public class TechnologyArchivesService {
         this.twelfthDao = twelfthDao;
         this.thirteenthDao = thirteenthDao;
         this.fourteenthDao = fourteenthDao;
+        this.eighthDao = eighthDao;
+        this.eleventhDao = eleventhDao;
+        this.fifteenthDao = fifteenthDao;
     }
 
     /**
@@ -1073,7 +1089,6 @@ public class TechnologyArchivesService {
             resultMap.put("cg", "保存继续教育学分获得情况成功!");
             return ResultVoUtil.success(resultMap);
         } catch(Exception e){
-            e.printStackTrace();
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存继续教育学分获得情况失败!");
         }
     }
@@ -1102,4 +1117,232 @@ public class TechnologyArchivesService {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除继续教育学分获得情况失败!");
         }
     }
+
+    /**
+     * @Description 查询限制类医疗技术档案
+     * @Author hsh
+     * @return TechnologyArchives8 限制类医疗技术档案
+     * @Date 2024/7/18 9:59
+     */
+    public ResultVo<List<TechnologyArchives8>> selectTechnologyArchives8() {
+        UserInfo user = redisLikeService.getUserInfoByToken();
+        List<TechnologyArchives8> list = eighthDao.selectEighthListByCode(null, user.getCode());
+        return ResultVoUtil.success(list);
+    }
+
+    /**
+     * @Description 根据身份证号更新限制类医疗技术档案
+     * @Author hsh
+     * @param eighth 限制类医疗技术档案
+     * @return map
+     * @Date 2024/7/18 10:05
+     */
+    public ResultVo<Map<String, Object>> saveTechnologyArchives8(TechnologyArchives8 eighth){
+
+        if(null == eighth || eighth.getSocialNo() == null){
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "限制类医疗技术档案信息不全,请检查!");
+        }
+
+        Map<String, Object> resultMap = new HashMap<>();
+        String socialNo = eighth.getSocialNo();
+        Integer id = eighth.getId();
+        TechnologyArchives8 ta8 = eighthDao.selectTechnologyArchives8ById(socialNo, id);
+
+        int num;
+        try{
+            if(null != ta8){
+                num = eighthDao.updateTechnologyArchives8ById(eighth);
+            } else {
+                UserInfo user = redisLikeService.getUserInfoByToken();
+                int maxId = eighthDao.selectTechnologyArchives8MaxId(socialNo);
+                eighth.setAccount(user.getCode());
+                eighth.setId(maxId + 1);
+                num = eighthDao.insert(eighth);
+            }
+            if(num == 0){
+                return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存限制类医疗技术档案失败!");
+            }
+            resultMap.put("cg", "保存限制类医疗技术档案成功!");
+            return ResultVoUtil.success(resultMap);
+        } catch(Exception e){
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存限制类医疗技术档案失败!");
+        }
+    }
+
+    /**
+     * @Description 根据身份证号,id删除限制类医疗技术档案
+     * @Author hsh
+     * @param socialNo 身份证号  id
+     * @return map
+     * @Date 2024/7/18 10:06
+     */
+    public ResultVo<Map<String, Object>> delTechnologyArchives8ByCode(String socialNo, Integer id) {
+        if (StringUtil.isBlank(socialNo)) {
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
+        }
+
+        Map<String, Object> resultMap = new HashMap<>();
+        try{
+            int num = eighthDao.delTechnologyArchives8ByCode(socialNo, id);
+            if(num == 0){
+                return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除限制类医疗技术档案失败!");
+            }
+            resultMap.put("cg", "删除限制类医疗技术档案成功!");
+            return ResultVoUtil.success(resultMap);
+        } catch(Exception e){
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除限制类医疗技术档案失败!");
+        }
+    }
+
+    /**
+     * @Description 查询医疗安全行为记录
+     * @Author hsh
+     * @return TechnologyArchives11 医疗安全行为记录
+     * @Date 2024/7/18 11:31
+     */
+    public ResultVo<List<TechnologyArchives11>> selectTechnologyArchives11() {
+        UserInfo user = redisLikeService.getUserInfoByToken();
+        List<TechnologyArchives11> list = eleventhDao.selectEleventhListByCode(null, user.getCode());
+        return ResultVoUtil.success(list);
+    }
+
+    /**
+     * @Description 根据身份证号更新医疗安全行为记录
+     * @Author hsh
+     * @param eleventh 医疗安全行为记录
+     * @return map
+     * @Date 2024/7/18 11:32
+     */
+    public ResultVo<Map<String, Object>> saveTechnologyArchives11(TechnologyArchives11 eleventh){
+
+        if(null == eleventh || eleventh.getSocialNo() == null){
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "医疗安全行为记录信息不全,请检查!");
+        }
+
+        Map<String, Object> resultMap = new HashMap<>();
+        String socialNo = eleventh.getSocialNo();
+        Integer id = eleventh.getId();
+        TechnologyArchives11 ta11 = eleventhDao.selectTechnologyArchives11ById(socialNo, id);
+
+        int num;
+        try{
+            if(null != ta11){
+                num = eleventhDao.updateTechnologyArchives11ById(eleventh);
+            } else {
+                UserInfo user = redisLikeService.getUserInfoByToken();
+                int maxId = eleventhDao.selectTechnologyArchives11MaxId(socialNo);
+                eleventh.setAccount(user.getCode());
+                eleventh.setId(maxId + 1);
+                num = eleventhDao.insert(eleventh);
+            }
+            if(num == 0){
+                return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存医疗安全行为记录失败!");
+            }
+            resultMap.put("cg", "保存医疗安全行为记录成功!");
+            return ResultVoUtil.success(resultMap);
+        } catch(Exception e){
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存医疗安全行为记录失败!");
+        }
+    }
+
+    /**
+     * @Description 根据身份证号,id删除医疗安全行为记录
+     * @Author hsh
+     * @param socialNo 身份证号  id
+     * @return map
+     * @Date 2024/7/18 11:34
+     */
+    public ResultVo<Map<String, Object>> delTechnologyArchives11ByCode(String socialNo, Integer id) {
+        if (StringUtil.isBlank(socialNo)) {
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
+        }
+
+        Map<String, Object> resultMap = new HashMap<>();
+        try{
+            int num = eleventhDao.delTechnologyArchives11ByCode(socialNo, id);
+            if(num == 0){
+                return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除医疗安全行为记录失败!");
+            }
+            resultMap.put("cg", "删除医疗安全行为记录成功!");
+            return ResultVoUtil.success(resultMap);
+        } catch(Exception e){
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除医疗安全行为记录失败!");
+        }
+    }
+
+    /**
+     * @Description 查询应用医疗技术权限记录
+     * @Author hsh
+     * @return TechnologyArchives15 应用医疗技术权限记录
+     * @Date 2024/7/18 15:42
+     */
+    public ResultVo<List<TechnologyArchives15>> selectTechnologyArchives15() {
+        UserInfo user = redisLikeService.getUserInfoByToken();
+        List<TechnologyArchives15> list = fifteenthDao.selectFifteenthListByCode(null, user.getCode());
+        return ResultVoUtil.success(list);
+    }
+
+    /**
+     * @Description 根据身份证号更新应用医疗技术权限记录
+     * @Author hsh
+     * @param fifteenth 应用医疗技术权限记录
+     * @return map
+     * @Date 2024/7/18 15:46
+     */
+    public ResultVo<Map<String, Object>> saveTechnologyArchives15(TechnologyArchives15 fifteenth){
+
+        if(null == fifteenth || fifteenth.getSocialNo() == null){
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "应用医疗技术权限记录信息不全,请检查!");
+        }
+
+        Map<String, Object> resultMap = new HashMap<>();
+        String socialNo = fifteenth.getSocialNo();
+        Integer id = fifteenth.getId();
+        TechnologyArchives15 ta15 = fifteenthDao.selectTechnologyArchives15ById(socialNo, id);
+
+        int num;
+        try{
+            if(null != ta15){
+                num = fifteenthDao.updateTechnologyArchives15ById(fifteenth);
+            } else {
+                UserInfo user = redisLikeService.getUserInfoByToken();
+                int maxId = fifteenthDao.selectTechnologyArchives15MaxId(socialNo);
+                fifteenth.setAccount(user.getCode());
+                fifteenth.setId(maxId + 1);
+                num = fifteenthDao.insert(fifteenth);
+            }
+            if(num == 0){
+                return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存应用医疗技术权限记录失败!");
+            }
+            resultMap.put("cg", "保存应用医疗技术权限记录成功!");
+            return ResultVoUtil.success(resultMap);
+        } catch(Exception e){
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "保存应用医疗技术权限记录失败!");
+        }
+    }
+
+    /**
+     * @Description 根据身份证号,id删除应用医疗技术权限记录
+     * @Author hsh
+     * @param socialNo 身份证号  id
+     * @return map
+     * @Date 2024/7/18 15:48
+     */
+    public ResultVo<Map<String, Object>> delTechnologyArchives15ByCode(String socialNo, Integer id) {
+        if (StringUtil.isBlank(socialNo)) {
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有身份证号,请检查!");
+        }
+
+        Map<String, Object> resultMap = new HashMap<>();
+        try{
+            int num = fifteenthDao.delTechnologyArchives15ByCode(socialNo, id);
+            if(num == 0){
+                return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除医疗安全行为记录失败!");
+            }
+            resultMap.put("cg", "删除医疗安全行为记录成功!");
+            return ResultVoUtil.success(resultMap);
+        } catch(Exception e){
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "删除医疗安全行为记录失败!");
+        }
+    }
 }