<?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.LtkjHtxxbMapper">
|
|
<resultMap type="LtkjHtxxb" id="LtkjHtxxbResult">
|
<result property="id" column="id"/>
|
<result property="htlx" column="htlx"/>
|
<result property="htfzr" column="htfzr"/>
|
<result property="htrqqz" column="htrqqz"/>
|
<result property="htrqzz" column="htrqzz"/>
|
<result property="lxrxm" column="lxrxm"/>
|
<result property="lxrdh" column="lxrdh"/>
|
<result property="htje" column="htje"/>
|
<result property="xqbz" column="xqbz"/>
|
<result property="yhtxh" column="yhtxh"/>
|
<result property="bz" column="bz"/>
|
<result property="qymc" column="qymc"/>
|
<result property="htbh" column="htbh"/>
|
<result property="remark" column="remark"/>
|
<result property="createBy" column="create_by"/>
|
<result property="createTime" column="create_time"/>
|
<result property="updateBy" column="update_by"/>
|
<result property="updateTime" column="update_time"/>
|
<result property="deleted" column="deleted"/>
|
<result property="createId" column="create_id"/>
|
<result property="updateId" column="update_id"/>
|
</resultMap>
|
|
<sql id="selectLtkjHtxxbVo">
|
select id, htlx, htfzr, htrqqz, htrqzz, lxrxm, lxrdh, htje, xqbz, yhtxh, bz, qymc, htbh, remark, create_by, create_time, update_by, update_time, deleted, create_id, update_id
|
from ltkj_htxxb
|
</sql>
|
|
<select id="selectLtkjHtxxbList" parameterType="LtkjHtxxb" resultMap="LtkjHtxxbResult">
|
<include refid="selectLtkjHtxxbVo"/>
|
<where>
|
<if test="htlx != null and htlx != ''">
|
and htlx = #{htlx}
|
</if>
|
<if test="htfzr != null and htfzr != ''">
|
and htfzr = #{htfzr}
|
</if>
|
<if test="htrqqz != null ">
|
and htrqqz = #{htrqqz}
|
</if>
|
<if test="htrqzz != null ">
|
and htrqzz = #{htrqzz}
|
</if>
|
<if test="lxrxm != null and lxrxm != ''">
|
and lxrxm = #{lxrxm}
|
</if>
|
<if test="lxrdh != null and lxrdh != ''">
|
and lxrdh = #{lxrdh}
|
</if>
|
<if test="htje != null ">
|
and htje = #{htje}
|
</if>
|
<if test="xqbz != null and xqbz != ''">
|
and xqbz = #{xqbz}
|
</if>
|
<if test="yhtxh != null and yhtxh != ''">
|
and yhtxh = #{yhtxh}
|
</if>
|
<if test="bz != null and bz != ''">
|
and bz = #{bz}
|
</if>
|
<if test="qymc != null and qymc != ''">
|
and qymc = #{qymc}
|
</if>
|
<if test="htbh != null and htbh != ''">
|
and htbh = #{htbh}
|
</if>
|
<if test="deleted != null ">
|
and deleted = #{deleted}
|
</if>
|
<if test="createId != null and createId != ''">
|
and create_id = #{createId}
|
</if>
|
<if test="updateId != null and updateId != ''">
|
and update_id = #{updateId}
|
</if>
|
</where>
|
</select>
|
|
<select id="selectLtkjHtxxbById" parameterType="Long"
|
resultMap="LtkjHtxxbResult">
|
<include refid="selectLtkjHtxxbVo"/>
|
where id = #{id}
|
</select>
|
|
<insert id="insertLtkjHtxxb" parameterType="LtkjHtxxb" useGeneratedKeys="true"
|
keyProperty="id">
|
insert into ltkj_htxxb
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="htlx != null">htlx,
|
</if>
|
<if test="htfzr != null">htfzr,
|
</if>
|
<if test="htrqqz != null">htrqqz,
|
</if>
|
<if test="htrqzz != null">htrqzz,
|
</if>
|
<if test="lxrxm != null">lxrxm,
|
</if>
|
<if test="lxrdh != null">lxrdh,
|
</if>
|
<if test="htje != null">htje,
|
</if>
|
<if test="xqbz != null">xqbz,
|
</if>
|
<if test="yhtxh != null">yhtxh,
|
</if>
|
<if test="bz != null">bz,
|
</if>
|
<if test="qymc != null">qymc,
|
</if>
|
<if test="htbh != null">htbh,
|
</if>
|
<if test="remark != null">remark,
|
</if>
|
<if test="createBy != null">create_by,
|
</if>
|
<if test="createTime != null">create_time,
|
</if>
|
<if test="updateBy != null">update_by,
|
</if>
|
<if test="updateTime != null">update_time,
|
</if>
|
<if test="deleted != null">deleted,
|
</if>
|
<if test="createId != null">create_id,
|
</if>
|
<if test="updateId != null">update_id,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="htlx != null">#{htlx},
|
</if>
|
<if test="htfzr != null">#{htfzr},
|
</if>
|
<if test="htrqqz != null">#{htrqqz},
|
</if>
|
<if test="htrqzz != null">#{htrqzz},
|
</if>
|
<if test="lxrxm != null">#{lxrxm},
|
</if>
|
<if test="lxrdh != null">#{lxrdh},
|
</if>
|
<if test="htje != null">#{htje},
|
</if>
|
<if test="xqbz != null">#{xqbz},
|
</if>
|
<if test="yhtxh != null">#{yhtxh},
|
</if>
|
<if test="bz != null">#{bz},
|
</if>
|
<if test="qymc != null">#{qymc},
|
</if>
|
<if test="htbh != null">#{htbh},
|
</if>
|
<if test="remark != null">#{remark},
|
</if>
|
<if test="createBy != null">#{createBy},
|
</if>
|
<if test="createTime != null">#{createTime},
|
</if>
|
<if test="updateBy != null">#{updateBy},
|
</if>
|
<if test="updateTime != null">#{updateTime},
|
</if>
|
<if test="deleted != null">#{deleted},
|
</if>
|
<if test="createId != null">#{createId},
|
</if>
|
<if test="updateId != null">#{updateId},
|
</if>
|
</trim>
|
</insert>
|
|
<update id="updateLtkjHtxxb" parameterType="LtkjHtxxb">
|
update ltkj_htxxb
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="htlx != null">htlx =
|
#{htlx},
|
</if>
|
<if test="htfzr != null">htfzr =
|
#{htfzr},
|
</if>
|
<if test="htrqqz != null">htrqqz =
|
#{htrqqz},
|
</if>
|
<if test="htrqzz != null">htrqzz =
|
#{htrqzz},
|
</if>
|
<if test="lxrxm != null">lxrxm =
|
#{lxrxm},
|
</if>
|
<if test="lxrdh != null">lxrdh =
|
#{lxrdh},
|
</if>
|
<if test="htje != null">htje =
|
#{htje},
|
</if>
|
<if test="xqbz != null">xqbz =
|
#{xqbz},
|
</if>
|
<if test="yhtxh != null">yhtxh =
|
#{yhtxh},
|
</if>
|
<if test="bz != null">bz =
|
#{bz},
|
</if>
|
<if test="qymc != null">qymc =
|
#{qymc},
|
</if>
|
<if test="htbh != null">htbh =
|
#{htbh},
|
</if>
|
<if test="remark != null">remark =
|
#{remark},
|
</if>
|
<if test="createBy != null">create_by =
|
#{createBy},
|
</if>
|
<if test="createTime != null">create_time =
|
#{createTime},
|
</if>
|
<if test="updateBy != null">update_by =
|
#{updateBy},
|
</if>
|
<if test="updateTime != null">update_time =
|
#{updateTime},
|
</if>
|
<if test="deleted != null">deleted =
|
#{deleted},
|
</if>
|
<if test="createId != null">create_id =
|
#{createId},
|
</if>
|
<if test="updateId != null">update_id =
|
#{updateId},
|
</if>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<delete id="deleteLtkjHtxxbById" parameterType="Long">
|
delete
|
from ltkj_htxxb where id = #{id}
|
</delete>
|
|
<delete id="deleteLtkjHtxxbByIds" parameterType="String">
|
delete from ltkj_htxxb where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
</mapper>
|