98 lines
4.8 KiB
XML
98 lines
4.8 KiB
XML
|
|
<?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.czlis.liswork.mapper.xtwh.XmMedMapper">
|
||
|
|
|
||
|
|
<select id="queryList" resultType="com.czlis.common.core.domain.entity.lis.XmMed">
|
||
|
|
select * from xm_med
|
||
|
|
<where>
|
||
|
|
<if test="ywdh != null and ywdh != ''"> and ywdh = #{ywdh}</if>
|
||
|
|
<if test="ywmc != null and ywmc != ''">and ywmc like '%'+#{ywmc}+'%' </if>
|
||
|
|
<if test="zjf != null and zjf != ''">and zjf like '%'+#{zjf}+'%' </if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<insert id="add">
|
||
|
|
INSERT INTO xm_med
|
||
|
|
(
|
||
|
|
<if test="bz != null and bz !=''">bz,</if>
|
||
|
|
<if test="xyfz != null and xyfz !=''">xyfz,</if>
|
||
|
|
<if test="nymic != null ">nymic,</if>
|
||
|
|
<if test="zjmic != null ">zjmic,</if>
|
||
|
|
<if test="yfiv != null and yfiv != ''">yfiv,</if>
|
||
|
|
<if test="yfim != null and yfim != ''">yfim,</if>
|
||
|
|
<if test="yydh != null and yydh != ''">yydh,</if>
|
||
|
|
<if test="multimic != null and multimic != ''">multimic,</if>
|
||
|
|
<if test="nyfz != null and nyfz != ''">nyfz,</if>
|
||
|
|
<if test="medno != null and medno != ''">medno,</if>
|
||
|
|
<if test="zjkb != null ">zjkb,</if>
|
||
|
|
<if test="nykb != null ">nykb,</if>
|
||
|
|
<if test="zjetest != null ">zjetest,</if>
|
||
|
|
<if test="nyetest != null ">nyetest,</if>
|
||
|
|
<if test="ikb != null and ikb != ''">ikb,</if>
|
||
|
|
<if test="whonet_kb != null and whonet_kb != ''">whonet_kb,</if>
|
||
|
|
<if test="whonet_mic != null and whonet_mic != ''">whonet_mic,</if>
|
||
|
|
<if test="whonet_etest != null and whonet_etest != ''">whonet_etest,</if>
|
||
|
|
<if test="whonet != null and whonet != ''">whonet,</if>
|
||
|
|
ywdh,ywmc,yf,zjf,seq
|
||
|
|
)
|
||
|
|
VALUES(
|
||
|
|
<if test="bz != null and bz !=''">#{bz},</if>
|
||
|
|
<if test="xyfz != null and xyfz !=''">#{xyfz},</if>
|
||
|
|
<if test="nymic != null ">#{nymic},</if>
|
||
|
|
<if test="zjmic != null ">#{zjmic},</if>
|
||
|
|
<if test="yfiv != null and yfiv != ''">#{yfiv},</if>
|
||
|
|
<if test="yfim != null and yfim != ''">#{yfim},</if>
|
||
|
|
<if test="yydh != null and yydh != ''">#{yydh},</if>
|
||
|
|
<if test="multimic != null and multimic != ''">#{multimic},</if>
|
||
|
|
<if test="nyfz != null and nyfz != ''">#{nyfz},</if>
|
||
|
|
<if test="medno != null and medno != ''">#{medno},</if>
|
||
|
|
<if test="zjkb != null ">#{zjkb},</if>
|
||
|
|
<if test="nykb != null ">#{nykb},</if>
|
||
|
|
<if test="zjetest != null ">#{zjetest},</if>
|
||
|
|
<if test="nyetest != null ">#{nyetest},</if>
|
||
|
|
<if test="ikb != null and ikb != ''">#{ikb},</if>
|
||
|
|
<if test="whonet_kb != null and whonet_kb != ''">#{whonet_kb},</if>
|
||
|
|
<if test="whonet_mic != null and whonet_mic != ''">#{whonet_mic},</if>
|
||
|
|
<if test="whonet_etest != null and whonet_etest != ''">#{whonet_etest},</if>
|
||
|
|
<if test="whonet != null and whonet != ''">#{whonet},</if>
|
||
|
|
#{ywdh},#{ywmc},#{yf},#{zjf},#{seq}
|
||
|
|
)
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
<delete id="delete">
|
||
|
|
delete from xm_med where ywdh = #{ywdh}
|
||
|
|
</delete>
|
||
|
|
|
||
|
|
<update id="update">
|
||
|
|
update xm_med
|
||
|
|
<set>
|
||
|
|
<if test="seq != null">seq = #{seq},</if>
|
||
|
|
<if test="zjf != null and zjf !=''">zjf = #{zjf},</if>
|
||
|
|
<if test="yf != null and yf !=''">yf = #{yf},</if>
|
||
|
|
<if test="ywmc != null and ywmc !=''">ywmc = #{ywmc},</if>
|
||
|
|
<if test="bz != null and bz !=''">bz = #{bz},</if>
|
||
|
|
<if test="xyfz != null and xyfz !=''">xyfz=#{xyfz},</if>
|
||
|
|
<if test="nymic != null ">nymic=#{nymic},</if>
|
||
|
|
<if test="zjmic != null ">zjmic=#{zjmic},</if>
|
||
|
|
<if test="yfiv != null and yfiv != ''">yfiv=#{yfiv},</if>
|
||
|
|
<if test="yfim != null and yfim != ''">yfim=#{yfim},</if>
|
||
|
|
<if test="yydh != null and yydh != ''">yydh=#{yydh},</if>
|
||
|
|
<if test="multimic != null and multimic != ''">multimic=#{multimic},</if>
|
||
|
|
<if test="nyfz != null and nyfz != ''">nyfz=#{nyfz},</if>
|
||
|
|
<if test="medno != null and medno != ''">medno=#{medno},</if>
|
||
|
|
<if test="zjkb != null ">zjkb=#{zjkb},</if>
|
||
|
|
<if test="nykb != null ">nykb=#{nykb},</if>
|
||
|
|
<if test="zjetest != null ">zjetest=#{zjetest},</if>
|
||
|
|
<if test="nyetest != null ">nyetest=#{nyetest},</if>
|
||
|
|
<if test="ikb != null and ikb != ''">ikb=#{ikb},</if>
|
||
|
|
<if test="whonet_kb != null and whonet_kb != ''">whonet_kb=#{whonet_kb},</if>
|
||
|
|
<if test="whonet_mic != null and whonet_mic != ''">whonet_mic=#{whonet_mic},</if>
|
||
|
|
<if test="whonet_etest != null and whonet_etest != ''">whonet_etest=#{whonet_etest},</if>
|
||
|
|
<if test="whonet != null and whonet != ''">whonet=#{whonet},</if>
|
||
|
|
ywdh
|
||
|
|
</set>
|
||
|
|
where ywdh = #{ywdh}
|
||
|
|
</update>
|
||
|
|
</mapper>
|