ltkj-admin/src/main/java/com/ltkj/web/config/timer/DefaultScheduled.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ltkj-admin/src/main/java/com/ltkj/web/controller/system/ApiJcycpdgjzController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ltkj-admin/src/main/java/com/ltkj/web/controller/system/SysConfigController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjXdPictureController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ltkj-hosp/src/main/java/com/ltkj/hosp/domain/ApiJcycpdgjz.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/ApiJcycpdgjzMapper.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ltkj-hosp/src/main/java/com/ltkj/hosp/service/ApiJcycpdgjzService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ltkj-hosp/src/main/java/com/ltkj/hosp/service/impl/ApiJcycpdgjzServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ltkj-hosp/src/main/resources/mapper/ApiJcycpdgjzMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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("正常")&& !jg.contains("双侧椎间孔无狭窄")){ TjJcycxm jcycxm=new TjJcycxm(); @@ -162,7 +177,7 @@ jcycxm.setCreateTime(new Date()); jcycxm.setJcjg(jg); jcycxmService.save(jcycxm); } }*/ } } } ltkj-admin/src/main/java/com/ltkj/web/controller/system/ApiJcycpdgjzController.java
New file @@ -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; /** * 关键字Controller * * @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)); } } 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("正常")&& !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("正常")&& !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; } } 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("正常")&& !jg.contains("双侧椎间孔无狭窄")){ TjJcycxm jcycxm=new TjJcycxm(); @@ -452,7 +465,7 @@ jcycxm.setCreateTime(new Date()); jcycxm.setJcjg(jg); jcycxmService.save(jcycxm); } }*/ } } } catch (Exception e) { ltkj-hosp/src/main/java/com/ltkj/hosp/domain/ApiJcycpdgjz.java
New file @@ -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; } ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/ApiJcycpdgjzMapper.java
New file @@ -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(); } ltkj-hosp/src/main/java/com/ltkj/hosp/service/ApiJcycpdgjzService.java
New file @@ -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(); } ltkj-hosp/src/main/java/com/ltkj/hosp/service/impl/ApiJcycpdgjzServiceImpl.java
New file @@ -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(); } } ltkj-hosp/src/main/resources/mapper/ApiJcycpdgjzMapper.xml
New file @@ -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>