From 0ff7a8f69570b3fc7418c35f3d6e273ef4f73f20 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 26 七月 2024 10:35:10 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/Icd10AssociationMapper.xml | 147 ++++++++++++++++++++++++++++++++++++-------------
1 files changed, 108 insertions(+), 39 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/Icd10AssociationMapper.xml b/smartor/src/main/resources/mapper/smartor/Icd10AssociationMapper.xml
index f4da9d9..1a941e4 100644
--- a/smartor/src/main/resources/mapper/smartor/Icd10AssociationMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/Icd10AssociationMapper.xml
@@ -1,69 +1,138 @@
<?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">
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.smartor.mapper.Icd10AssociationMapper">
-
+
<resultMap type="com.smartor.domain.Icd10Association" id="Icd10AssociationResult">
- <result property="icd10code" column="icd10code" />
- <result property="icd10name" column="icd10name" />
- <result property="svyid" column="svyid" />
- <result property="updatetime" column="updatetime" />
+ <result property="id" column="id"/>
+ <result property="icd10id" column="icd10id"/>
+ <result property="icd10code" column="icd10code"/>
+ <result property="icd10name" column="icd10name"/>
+ <result property="orgid" column="orgid"/>
+ <result property="delFlag" column="del_flag"/>
+ <result property="updateBy" column="update_by"/>
+ <result property="updateTime" column="update_time"/>
+ <result property="createBy" column="create_by"/>
+ <result property="createTime" column="create_time"/>
+ <result property="isupload" column="isupload"/>
+ <result property="uploadTime" column="upload_time"/>
+ <result property="outid" column="outid"/>
+ <result property="pid" column="pid"/>
+ <result property="guid" column="guid"/>
</resultMap>
<sql id="selectIcd10AssociationVo">
- select icd10code, icd10name, svyid, updatetime from icd10_association
+ select id,
+ icd10id,
+ icd10code,
+ icd10name,
+ orgid,
+ del_flag,
+ update_by,
+ update_time,
+ create_by,
+ create_time,
+ isupload,
+ upload_time,
+ type,
+ outid,
+ pid,
+ guid
+ from icd10_association
</sql>
- <select id="selectIcd10AssociationList" parameterType="com.smartor.domain.Icd10Association" resultMap="Icd10AssociationResult">
+ <select id="selectIcd10AssociationList" parameterType="com.smartor.domain.Icd10Association"
+ resultMap="Icd10AssociationResult">
<include refid="selectIcd10AssociationVo"/>
- <where>
- <if test="icd10code != null and icd10code != ''"> and icd10code = #{icd10code}</if>
- <if test="icd10name != null and icd10name != ''"> and icd10name like concat('%', #{icd10name}, '%')</if>
- <if test="svyid != null "> and svyid = #{svyid}</if>
- <if test="updatetime != null "> and updatetime = #{updatetime}</if>
+ <where>
+ <if test="icd10id != null ">and icd10id = #{icd10id}</if>
+ <if test="icd10code != null and icd10code != ''">and icd10code = #{icd10code}</if>
+ <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
+ <if test="isupload != null ">and isupload = #{isupload}</if>
+ <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
+ <if test="outid != null ">and outid = #{outid}</if>
+ <if test="type != null ">and type = #{type}</if>
+ <if test="pid != null ">and pid = #{pid}</if>
+ <if test="guid != null and guid != ''">and guid = #{guid}</if>
</where>
</select>
-
- <select id="selectIcd10AssociationByIcd10code" parameterType="String" resultMap="Icd10AssociationResult">
+
+ <select id="selectIcd10AssociationById" parameterType="Long" resultMap="Icd10AssociationResult">
<include refid="selectIcd10AssociationVo"/>
- where icd10code = #{icd10code}
+ where id = #{id}
</select>
-
- <insert id="insertIcd10Association" parameterType="com.smartor.domain.Icd10Association">
+
+ <insert id="insertIcd10Association" parameterType="com.smartor.domain.Icd10Association" useGeneratedKeys="true"
+ keyProperty="id">
insert into icd10_association
<trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="icd10code != null and icd10code != ''">icd10code,</if>
+ <if test="icd10id != null">icd10id,</if>
+ <if test="icd10code != null">icd10code,</if>
<if test="icd10name != null">icd10name,</if>
- <if test="svyid != null">svyid,</if>
- <if test="updatetime != null">updatetime,</if>
- </trim>
+ <if test="orgid != null">orgid,</if>
+ <if test="delFlag != null and delFlag != ''">del_flag,</if>
+ <if test="updateBy != null">update_by,</if>
+ <if test="updateTime != null">update_time,</if>
+ <if test="createBy != null">create_by,</if>
+ <if test="createTime != null">create_time,</if>
+ <if test="isupload != null">isupload,</if>
+ <if test="uploadTime != null">upload_time,</if>
+ <if test="outid != null">outid,</if>
+ <if test="type != null">type,</if>
+ <if test="pid != null">pid,</if>
+ <if test="guid != null">guid,</if>
+ </trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="icd10code != null and icd10code != ''">#{icd10code},</if>
+ <if test="icd10id != null">#{icd10id},</if>
+ <if test="icd10code != null">#{icd10code},</if>
<if test="icd10name != null">#{icd10name},</if>
- <if test="svyid != null">#{svyid},</if>
- <if test="updatetime != null">#{updatetime},</if>
- </trim>
+ <if test="orgid != null">#{orgid},</if>
+ <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
+ <if test="updateBy != null">#{updateBy},</if>
+ <if test="updateTime != null">#{updateTime},</if>
+ <if test="createBy != null">#{createBy},</if>
+ <if test="createTime != null">#{createTime},</if>
+ <if test="isupload != null">#{isupload},</if>
+ <if test="uploadTime != null">#{uploadTime},</if>
+ <if test="outid != null">#{outid},</if>
+ <if test="type != null">#{type},</if>
+ <if test="pid != null">#{pid},</if>
+ <if test="guid != null">#{guid},</if>
+ </trim>
</insert>
- <update id="updateIcd10Association" parameterType="Icd10Association">
+ <update id="updateIcd10Association" parameterType="com.smartor.domain.Icd10Association">
update icd10_association
<trim prefix="SET" suffixOverrides=",">
- <if test="icd10name != null">icd10name = #{icd10name},</if>
- <if test="svyid != null">svyid = #{svyid},</if>
- <if test="updatetime != null">updatetime = #{updatetime},</if>
+ <if test="icd10id != null">icd10id = #{icd10id},</if>
+ <if test="icd10code != null">icd10code = #{icd10code},</if>
+ <if test="orgid != null">orgid = #{orgid},</if>
+ <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
+ <if test="updateBy != null">update_by = #{updateBy},</if>
+ <if test="updateTime != null">update_time = #{updateTime},</if>
+ <if test="createBy != null">create_by = #{createBy},</if>
+ <if test="createTime != null">create_time = #{createTime},</if>
+ <if test="isupload != null">isupload = #{isupload},</if>
+ <if test="uploadTime != null">upload_time = #{uploadTime},</if>
+ <if test="outid != null">outid = #{outid},</if>
+ <if test="type != null">type = #{type},</if>
+ <if test="pid != null">pid = #{pid},</if>
+ <if test="guid != null">guid = #{guid},</if>
</trim>
- where icd10code = #{icd10code}
+ where id = #{id}
</update>
- <delete id="deleteIcd10AssociationByIcd10code" parameterType="String">
- delete from icd10_association where icd10code = #{icd10code}
+ <delete id="deleteIcd10AssociationById" parameterType="Long">
+ delete
+ from icd10_association
+ where id = #{id}
</delete>
- <delete id="deleteIcd10AssociationByIcd10codes" parameterType="String">
- delete from icd10_association where icd10code in
- <foreach item="icd10code" collection="array" open="(" separator="," close=")">
- #{icd10code}
+ <delete id="deleteIcd10AssociationByIds" parameterType="String">
+ delete from icd10_association where id in
+ <foreach item="id" collection="array" open="(" separator="," close=")">
+ #{id}
</foreach>
</delete>
-</mapper>
\ No newline at end of file
+</mapper>
--
Gitblit v1.9.3