<?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.DictSfxmMapper">
|
|
<resultMap type="DictSfxm" id="DictSfxmResult">
|
<result property="id" column="id"/>
|
<result property="yqid" column="yqid"/>
|
<result property="xmid" column="xmid"/>
|
<result property="xmbm" column="xmbm"/>
|
<result property="xmmc" column="xmmc"/>
|
<result property="pym" column="pym"/>
|
<result property="wbm" column="wbm"/>
|
<result property="zjm" column="zjm"/>
|
<result property="dw" column="dw"/>
|
<result property="ksxmfl" column="Ksxmfl"/>
|
<result property="xxxmfl" column="xxxmfl"/>
|
<result property="cwxmfl" column="cwxmfl"/>
|
<result property="yjxmfl" column="yjxmfl"/>
|
<result property="gkfl" column="gkfl"/>
|
<result property="yzfl" column="yzfl"/>
|
<result property="fpfl" column="fpfl"/>
|
<result property="ckdj" column="ckdj"/>
|
<result property="sxh" column="sxh"/>
|
<result property="sfsf" column="sfsf"/>
|
<result property="ybxmdj" column="ybxmdj"/>
|
<result property="gjxmdm" column="gjxmdm"/>
|
<result property="gjxmmc" column="gjxmmc"/>
|
<result property="sjxmdm" column="sjxmdm"/>
|
<result property="sjxmmc" column="sjxmmc"/>
|
<result property="xmnr" column="xmnr"/>
|
<result property="xmsm" column="xmsm"/>
|
<result property="deleted" column="deleted"/>
|
<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="yjzgxj" column="yjzgxj"/>
|
<result property="ejzgxj" column="ejzgxj"/>
|
<result property="sjzgxj" column="sjzgxj"/>
|
<result property="xmnh" column="xmnh"/>
|
<result property="xmfl" column="xmfl"/>
|
<result property="tdzgxj" column="tdzgxj"/>
|
</resultMap>
|
|
<sql id="selectDictSfxmVo">
|
select id, yqid, xmid, xmbm, xmmc, pym, wbm, zjm, dw, Ksxmfl, xxxmfl, cwxmfl, yjxmfl, gkfl, yzfl, fpfl, ckdj, sxh, sfsf, ybxmdj, gjxmdm, gjxmmc, sjxmdm, sjxmmc, xmnr, xmsm, deleted, create_by, create_time, update_by, update_time, yjzgxj, ejzgxj, sjzgxj, xmnh, xmfl, tdzgxj
|
from dict_sfxm
|
</sql>
|
|
<select id="selectDictSfxmList" parameterType="DictSfxm" resultMap="DictSfxmResult">
|
<include refid="selectDictSfxmVo"/>
|
<where>
|
<if test="yqid != null and yqid != ''">
|
and yqid = #{yqid}
|
</if>
|
<if test="xmid != null and xmid != ''">
|
and xmid = #{xmid}
|
</if>
|
<if test="xmbm != null and xmbm != ''">
|
and xmbm = #{xmbm}
|
</if>
|
<if test="xmmc != null and xmmc != ''">
|
and xmmc like CONCAT("%",#{xmmc},"%")
|
</if>
|
<if test="pym != null and pym != ''">
|
and pym like CONCAT("%",#{pym},"%")
|
</if>
|
<if test="wbm != null and wbm != ''">
|
and wbm like CONCAT("%",#{wbm},"%")
|
</if>
|
<if test="zjm != null and zjm != ''">
|
and zjm = #{zjm}
|
</if>
|
<if test="dw != null and dw != ''">
|
and dw = #{dw}
|
</if>
|
<if test="ksxmfl != null and ksxmfl != ''">
|
and Ksxmfl = #{ksxmfl}
|
</if>
|
<if test="xxxmfl != null and xxxmfl != ''">
|
and xxxmfl = #{xxxmfl}
|
</if>
|
<if test="cwxmfl != null and cwxmfl != ''">
|
and cwxmfl = #{cwxmfl}
|
</if>
|
<if test="yjxmfl != null and yjxmfl != ''">
|
and yjxmfl = #{yjxmfl}
|
</if>
|
<if test="gkfl != null and gkfl != ''">
|
and gkfl = #{gkfl}
|
</if>
|
<if test="yzfl != null and yzfl != ''">
|
and yzfl = #{yzfl}
|
</if>
|
<if test="fpfl != null and fpfl != ''">
|
and fpfl = #{fpfl}
|
</if>
|
<if test="ckdj != null ">
|
and ckdj = #{ckdj}
|
</if>
|
<if test="sxh != null ">
|
and sxh = #{sxh}
|
</if>
|
<if test="sfsf != null ">
|
and sfsf = #{sfsf}
|
</if>
|
<if test="ybxmdj != null and ybxmdj != ''">
|
and ybxmdj = #{ybxmdj}
|
</if>
|
<if test="gjxmdm != null and gjxmdm != ''">
|
and gjxmdm = #{gjxmdm}
|
</if>
|
<if test="gjxmmc != null and gjxmmc != ''">
|
and gjxmmc = #{gjxmmc}
|
</if>
|
<if test="sjxmdm != null and sjxmdm != ''">
|
and sjxmdm = #{sjxmdm}
|
</if>
|
<if test="sjxmmc != null and sjxmmc != ''">
|
and sjxmmc = #{sjxmmc}
|
</if>
|
<if test="xmnr != null and xmnr != ''">
|
and xmnr = #{xmnr}
|
</if>
|
<if test="xmsm != null and xmsm != ''">
|
and xmsm = #{xmsm}
|
</if>
|
<if test="deleted != null ">
|
and deleted = #{deleted}
|
</if>
|
<if test="yjzgxj != null ">
|
and yjzgxj = #{yjzgxj}
|
</if>
|
<if test="ejzgxj != null ">
|
and ejzgxj = #{ejzgxj}
|
</if>
|
<if test="sjzgxj != null ">
|
and sjzgxj = #{sjzgxj}
|
</if>
|
<if test="xmnh != null and xmnh != ''">
|
and xmnh = #{xmnh}
|
</if>
|
<if test="xmfl != null and xmfl != ''">
|
and xmfl = #{xmfl}
|
</if>
|
<if test="tdzgxj != null ">
|
and tdzgxj = #{tdzgxj}
|
</if>
|
</where>
|
</select>
|
|
<select id="selectDictSfxmById" parameterType="Long"
|
resultMap="DictSfxmResult">
|
<include refid="selectDictSfxmVo"/>
|
where id = #{id}
|
</select>
|
|
<insert id="insertDictSfxm" parameterType="DictSfxm" useGeneratedKeys="true"
|
keyProperty="id">
|
insert into dict_sfxm
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="yqid != null">yqid,
|
</if>
|
<if test="xmid != null">xmid,
|
</if>
|
<if test="xmbm != null">xmbm,
|
</if>
|
<if test="xmmc != null">xmmc,
|
</if>
|
<if test="pym != null">pym,
|
</if>
|
<if test="wbm != null">wbm,
|
</if>
|
<if test="zjm != null">zjm,
|
</if>
|
<if test="dw != null">dw,
|
</if>
|
<if test="ksxmfl != null">Ksxmfl,
|
</if>
|
<if test="xxxmfl != null">xxxmfl,
|
</if>
|
<if test="cwxmfl != null">cwxmfl,
|
</if>
|
<if test="yjxmfl != null">yjxmfl,
|
</if>
|
<if test="gkfl != null">gkfl,
|
</if>
|
<if test="yzfl != null">yzfl,
|
</if>
|
<if test="fpfl != null">fpfl,
|
</if>
|
<if test="ckdj != null">ckdj,
|
</if>
|
<if test="sxh != null">sxh,
|
</if>
|
<if test="sfsf != null">sfsf,
|
</if>
|
<if test="ybxmdj != null">ybxmdj,
|
</if>
|
<if test="gjxmdm != null">gjxmdm,
|
</if>
|
<if test="gjxmmc != null">gjxmmc,
|
</if>
|
<if test="sjxmdm != null">sjxmdm,
|
</if>
|
<if test="sjxmmc != null">sjxmmc,
|
</if>
|
<if test="xmnr != null">xmnr,
|
</if>
|
<if test="xmsm != null">xmsm,
|
</if>
|
<if test="deleted != null">deleted,
|
</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="yjzgxj != null">yjzgxj,
|
</if>
|
<if test="ejzgxj != null">ejzgxj,
|
</if>
|
<if test="sjzgxj != null">sjzgxj,
|
</if>
|
<if test="xmnh != null">xmnh,
|
</if>
|
<if test="xmfl != null">xmfl,
|
</if>
|
<if test="tdzgxj != null">tdzgxj,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="yqid != null">#{yqid},
|
</if>
|
<if test="xmid != null">#{xmid},
|
</if>
|
<if test="xmbm != null">#{xmbm},
|
</if>
|
<if test="xmmc != null">#{xmmc},
|
</if>
|
<if test="pym != null">#{pym},
|
</if>
|
<if test="wbm != null">#{wbm},
|
</if>
|
<if test="zjm != null">#{zjm},
|
</if>
|
<if test="dw != null">#{dw},
|
</if>
|
<if test="ksxmfl != null">#{ksxmfl},
|
</if>
|
<if test="xxxmfl != null">#{xxxmfl},
|
</if>
|
<if test="cwxmfl != null">#{cwxmfl},
|
</if>
|
<if test="yjxmfl != null">#{yjxmfl},
|
</if>
|
<if test="gkfl != null">#{gkfl},
|
</if>
|
<if test="yzfl != null">#{yzfl},
|
</if>
|
<if test="fpfl != null">#{fpfl},
|
</if>
|
<if test="ckdj != null">#{ckdj},
|
</if>
|
<if test="sxh != null">#{sxh},
|
</if>
|
<if test="sfsf != null">#{sfsf},
|
</if>
|
<if test="ybxmdj != null">#{ybxmdj},
|
</if>
|
<if test="gjxmdm != null">#{gjxmdm},
|
</if>
|
<if test="gjxmmc != null">#{gjxmmc},
|
</if>
|
<if test="sjxmdm != null">#{sjxmdm},
|
</if>
|
<if test="sjxmmc != null">#{sjxmmc},
|
</if>
|
<if test="xmnr != null">#{xmnr},
|
</if>
|
<if test="xmsm != null">#{xmsm},
|
</if>
|
<if test="deleted != null">#{deleted},
|
</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="yjzgxj != null">#{yjzgxj},
|
</if>
|
<if test="ejzgxj != null">#{ejzgxj},
|
</if>
|
<if test="sjzgxj != null">#{sjzgxj},
|
</if>
|
<if test="xmnh != null">#{xmnh},
|
</if>
|
<if test="xmfl != null">#{xmfl},
|
</if>
|
<if test="tdzgxj != null">#{tdzgxj},
|
</if>
|
</trim>
|
</insert>
|
|
<update id="updateDictSfxm" parameterType="DictSfxm">
|
update dict_sfxm
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="yqid != null">yqid =
|
#{yqid},
|
</if>
|
<if test="xmid != null">xmid =
|
#{xmid},
|
</if>
|
<if test="xmbm != null">xmbm =
|
#{xmbm},
|
</if>
|
<if test="xmmc != null">xmmc =
|
#{xmmc},
|
</if>
|
<if test="pym != null">pym =
|
#{pym},
|
</if>
|
<if test="wbm != null">wbm =
|
#{wbm},
|
</if>
|
<if test="zjm != null">zjm =
|
#{zjm},
|
</if>
|
<if test="dw != null">dw =
|
#{dw},
|
</if>
|
<if test="ksxmfl != null">Ksxmfl =
|
#{ksxmfl},
|
</if>
|
<if test="xxxmfl != null">xxxmfl =
|
#{xxxmfl},
|
</if>
|
<if test="cwxmfl != null">cwxmfl =
|
#{cwxmfl},
|
</if>
|
<if test="yjxmfl != null">yjxmfl =
|
#{yjxmfl},
|
</if>
|
<if test="gkfl != null">gkfl =
|
#{gkfl},
|
</if>
|
<if test="yzfl != null">yzfl =
|
#{yzfl},
|
</if>
|
<if test="fpfl != null">fpfl =
|
#{fpfl},
|
</if>
|
<if test="ckdj != null">ckdj =
|
#{ckdj},
|
</if>
|
<if test="sxh != null">sxh =
|
#{sxh},
|
</if>
|
<if test="sfsf != null">sfsf =
|
#{sfsf},
|
</if>
|
<if test="ybxmdj != null">ybxmdj =
|
#{ybxmdj},
|
</if>
|
<if test="gjxmdm != null">gjxmdm =
|
#{gjxmdm},
|
</if>
|
<if test="gjxmmc != null">gjxmmc =
|
#{gjxmmc},
|
</if>
|
<if test="sjxmdm != null">sjxmdm =
|
#{sjxmdm},
|
</if>
|
<if test="sjxmmc != null">sjxmmc =
|
#{sjxmmc},
|
</if>
|
<if test="xmnr != null">xmnr =
|
#{xmnr},
|
</if>
|
<if test="xmsm != null">xmsm =
|
#{xmsm},
|
</if>
|
<if test="deleted != null">deleted =
|
#{deleted},
|
</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="yjzgxj != null">yjzgxj =
|
#{yjzgxj},
|
</if>
|
<if test="ejzgxj != null">ejzgxj =
|
#{ejzgxj},
|
</if>
|
<if test="sjzgxj != null">sjzgxj =
|
#{sjzgxj},
|
</if>
|
<if test="xmnh != null">xmnh =
|
#{xmnh},
|
</if>
|
<if test="xmfl != null">xmfl =
|
#{xmfl},
|
</if>
|
<if test="tdzgxj != null">tdzgxj =
|
#{tdzgxj},
|
</if>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<delete id="deleteDictSfxmById" parameterType="Long">
|
delete
|
from dict_sfxm where id = #{id}
|
</delete>
|
|
<delete id="deleteDictSfxmByIds" parameterType="String">
|
delete from dict_sfxm where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
</mapper>
|