93 lines
4.9 KiB
XML
93 lines
4.9 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.mzcx.mapper.FeeitemClassMapper">
|
||
|
|
|
||
|
|
<select id="query" resultType="com.czlis.mzcx.pojo.LabFeeitemClass">
|
||
|
|
select * from lab_feeitemclass
|
||
|
|
<where>
|
||
|
|
<if test="sflbdh != null and sflbdh != ''"> and sflbdh = #{sflbdh}</if>
|
||
|
|
<if test="sflbmc != null and sflbmc != ''"> and sflbmc = #{sflbmc}</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<insert id="add" parameterType="com.czlis.mzcx.pojo.LabFeeitemClass">
|
||
|
|
insert into lab_feeitemclass (
|
||
|
|
<if test="sflbmc != null and sflbmc != ''">sflbmc,</if>
|
||
|
|
<if test="sflbjc != null and sflbjc != ''">sflbjc,</if>
|
||
|
|
<if test="bkcolor != null">bkcolor,</if>
|
||
|
|
<if test="bglqdh != null">bglqdh,</if>
|
||
|
|
<if test="sflbmc != null and sflbmc != ''">sflbmc,</if>
|
||
|
|
<if test="yblx != null and yblx != ''">yblx,</if>
|
||
|
|
<if test="txmlb != null and txmlb != ''">txmlb,</if>
|
||
|
|
<if test="sampletips != null and sampletips != ''">sampletips,</if>
|
||
|
|
<if test="printcnt != null ">printcnt,</if>
|
||
|
|
<if test="barcodecopy != null and barcodecopy != ''">barcodecopy,</if>
|
||
|
|
<if test="lisgroup1 != null and lisgroup1 != ''">lisgroup1,</if>
|
||
|
|
<if test="lisgroup2 != null and lisgroup2 != ''">lisgroup2,</if>
|
||
|
|
<if test="lisgroup3 != null and lisgroup3 != ''">lisgroup3,</if>
|
||
|
|
<if test="kn != null and kn != ''">kn,</if>
|
||
|
|
<if test="xpy != null and xpy != ''">xpy,</if>
|
||
|
|
<if test="tubeConvert != null and tubeConvert != ''">tubeConvert,</if>
|
||
|
|
<if test="sfxmdm != null and sfxmdm != ''">sfxmdm,</if>
|
||
|
|
<if test="sfxmdh != null and sfxmdh != ''">sfxmdh,</if>
|
||
|
|
sflbdh
|
||
|
|
)values (
|
||
|
|
<if test="sflbmc != null and sflbmc != ''">#{sflbmc},</if>
|
||
|
|
<if test="sflbjc != null and sflbjc != ''">#{sflbjc},</if>
|
||
|
|
<if test="bkcolor != null">#{bkcolor},</if>
|
||
|
|
<if test="bglqdh != null">#{bglqdh},</if>
|
||
|
|
<if test="sflbmc != null and sflbmc != ''">#{bglqdh},</if>
|
||
|
|
<if test="yblx != null and yblx != ''">#{yblx},</if>
|
||
|
|
<if test="txmlb != null and txmlb != ''">#{txmlb},</if>
|
||
|
|
<if test="sampletips != null and sampletips != ''">#{sampletips},</if>
|
||
|
|
<if test="printcnt != null ">#{printcnt},</if>
|
||
|
|
<if test="barcodecopy != null and barcodecopy != ''">#{barcodecopy},</if>
|
||
|
|
<if test="lisgroup1 != null and lisgroup1 != ''">#{lisgroup1},</if>
|
||
|
|
<if test="lisgroup2 != null and lisgroup2 != ''">#{lisgroup2},</if>
|
||
|
|
<if test="lisgroup3 != null and lisgroup3 != ''">#{lisgroup3},</if>
|
||
|
|
<if test="kn != null and kn != ''">#{kn},</if>
|
||
|
|
<if test="xpy != null and xpy != ''">#{xpy},</if>
|
||
|
|
<if test="tubeConvert != null and tubeConvert != ''">#{tubeConvert},</if>
|
||
|
|
<if test="sfxmdm != null and sfxmdm != ''">#{sfxmdm},</if>
|
||
|
|
<if test="sfxmdh != null and sfxmdh != ''">#{sfxmdh},</if>
|
||
|
|
#{sflbdh}
|
||
|
|
)
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
|
||
|
|
<update id="update" parameterType="com.czlis.mzcx.pojo.LabFeeitemClass">
|
||
|
|
update LabFeeitemClass
|
||
|
|
<set>
|
||
|
|
<if test="sflbmc != null and sflbmc != ''">sflbmc = #{sflbmc},</if>
|
||
|
|
<if test="sflbjc != null and sflbjc != ''">sflbjc = #{sflbjc},</if>
|
||
|
|
<if test="bkcolor != null">bkcolor = #{bkcolor},</if>
|
||
|
|
<if test="bglqdh != null">bglqdh = #{bglqdh},</if>
|
||
|
|
<if test="sflbmc != null and sflbmc != ''">bglqdh = #{bglqdh},</if>
|
||
|
|
<if test="yblx != null and yblx != ''">yblx = #{yblx},</if>
|
||
|
|
<if test="txmlb != null and txmlb != ''">txmlb = #{txmlb},</if>
|
||
|
|
<if test="sampletips != null and sampletips != ''">sampletips = #{sampletips},</if>
|
||
|
|
<if test="printcnt != null ">printcnt = #{printcnt},</if>
|
||
|
|
<if test="barcodecopy != null and barcodecopy != ''">barcodecopy = #{barcodecopy},</if>
|
||
|
|
<if test="lisgroup1 != null and lisgroup1 != ''">lisgroup1 = #{lisgroup1},</if>
|
||
|
|
<if test="lisgroup2 != null and lisgroup2 != ''">lisgroup2 = #{lisgroup2},</if>
|
||
|
|
<if test="lisgroup3 != null and lisgroup3 != ''">lisgroup3 = #{lisgroup3},</if>
|
||
|
|
<if test="kn != null and kn != ''">kn = #{kn},</if>
|
||
|
|
<if test="xpy != null and xpy != ''">xpy = #{xpy},</if>
|
||
|
|
<if test="tubeConvert != null and tubeConvert != ''">tubeConvert = #{tubeConvert},</if>
|
||
|
|
<if test="sfxmdm != null and sfxmdm != ''">sfxmdm = #{sfxmdm},</if>
|
||
|
|
<if test="sfxmdh != null and sfxmdh != ''">sfxmdh = #{sfxmdh},</if>
|
||
|
|
</set>
|
||
|
|
where sflbdh = #{sflbdh}
|
||
|
|
</update>
|
||
|
|
|
||
|
|
<delete id="delete" parameterType="string">
|
||
|
|
delete from LabFeeitemClass where sflbdh = #{sflbdh}
|
||
|
|
</delete>
|
||
|
|
|
||
|
|
<select id="getLabFeeitemVsClassCount" resultType="Long">
|
||
|
|
select COUNT(1) from lab_feeitem_vs_class where sflbdh = #{sflbdh}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
</mapper>
|