57 lines
1.9 KiB
XML
57 lines
1.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.liswork.mapper.xtwh.LabTatctrlMapper">
|
||
|
|
|
||
|
|
<select id="queryDict">
|
||
|
|
select * from lab_tatctrl
|
||
|
|
<where>
|
||
|
|
<if test="ruleid != null"> and ruleid = #{ruleid}</if>
|
||
|
|
<if test="ruletype != null and ruletype !=''">and ruletype = #{ruletype}</if>
|
||
|
|
<if test="refcode != null and refcode !=''">and refcode = #{refcode}</if>
|
||
|
|
<if test="jzbz != null and jzbz !=''">and jzbz = #{jzbz}</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="queryReqitemclass">
|
||
|
|
select * from vw_reqitemclass
|
||
|
|
<where>
|
||
|
|
<if test="classno != null and classno !=''"> and classno = #{classno}</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="queryXmHisreq">
|
||
|
|
select * from xm_hisreq
|
||
|
|
<where>
|
||
|
|
<if test="sqxmdh != null and sqxmdh != ''">and sqxmdh = #{sqxmdh}</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<insert id="add">
|
||
|
|
insert into lab_tatctrl(
|
||
|
|
ruleid,ruletype,refcode,jzbz,yblx,min1,min2
|
||
|
|
)values(
|
||
|
|
#{ruleid},#{ruletype},#{refcode},#{jzbz},#{yblx},#{min1},#{min2}
|
||
|
|
)
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
<update id="update">
|
||
|
|
update lab_tatctrl
|
||
|
|
<set>
|
||
|
|
<if test="ruletype != null and ruletype != ''">ruletype = #{ruletype},</if>
|
||
|
|
<if test="refcode != null and refcode != ''">refcode = #{refcode},</if>
|
||
|
|
<if test="jzbz != null and jzbz != ''">jzbz = #{jzbz},</if>
|
||
|
|
<if test="yblx != null and yblx != ''">yblx = #{yblx},</if>
|
||
|
|
<if test="min1 != null">min1 = #{min1},</if>
|
||
|
|
<if test="min2 != null">min2 = #{min2},</if>
|
||
|
|
ruleid = #{ruleid}
|
||
|
|
</set>
|
||
|
|
where ruleid = #{ruleid}
|
||
|
|
</update>
|
||
|
|
|
||
|
|
<delete id="delete">
|
||
|
|
delete from lab_tatctrl where ruleid = #{ruleid}
|
||
|
|
</delete>
|
||
|
|
|
||
|
|
</mapper>
|