55 lines
2.9 KiB
XML
55 lines
2.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.interfaceCommon.mapper.LabRefusedMapper">
|
|
<select id="getLabRefusedOne" resultType="com.czlis.common.core.domain.entity.lis.LabRefused" parameterType="String">
|
|
select * from lab_refused where sqh = #{sqh}
|
|
</select>
|
|
<select id="getLabRefusedList" resultType="com.czlis.common.core.domain.entity.lis.LabRefused">
|
|
select * from lab_refused
|
|
<where>
|
|
<if test="sqh != null and yq !=''">and sqh = #{sqh}</if>
|
|
<if test="refusedtime != null">and refusedtime = #{refusedtime}</if>
|
|
<if test="refuseder != null and refuseder !=''">and refuseder = #{refuseder}</if>
|
|
<if test="ksdh != null and ksdh !=''">and ksdh = #{ksdh}</if>
|
|
<if test="bz != null and bz !=''">and bz = #{bz}</if>
|
|
<if test="refusetext != null and refusetext !=''">and refusetext = #{refusetext}</if>
|
|
<if test="bz1 != null and bz1 !=''">and bz1 = #{bz1}</if>
|
|
</where>
|
|
</select>
|
|
<delete id="delLabRefused" parameterType="String">
|
|
delete from lab_refused where sqh = #{sqh}
|
|
</delete>
|
|
<insert id="insertLabRefused" parameterType="com.czlis.common.core.domain.entity.lis.LabRefused">
|
|
insert into lab_refused(
|
|
<if test="refusedtime != null">refusedtime,</if>
|
|
<if test="refuseder != null and refuseder != ''">refuseder,</if>
|
|
<if test="ksdh != null and ksdh != ''">ksdh,</if>
|
|
<if test="bz != null and bz != ''">bz,</if>
|
|
<if test="refusetext != null and refusetext != ''">refusetext,</if>
|
|
<if test="bz1 != null and bz1 != ''">bz1,</if>
|
|
sqh
|
|
)values(
|
|
<if test="refusedtime != null">#{refusedtime},</if>
|
|
<if test="refuseder != null and refuseder != ''">#{refuseder},</if>
|
|
<if test="ksdh != null and ksdh != ''">#{ksdh},</if>
|
|
<if test="bz != null and bz != ''">#{bz},</if>
|
|
<if test="refusetext != null and yljg != ''">#{refusetext},</if>
|
|
<if test="bz1 != null and bz1 != ''">#{bz1},</if>
|
|
#{sqh}
|
|
)
|
|
</insert>
|
|
<update id="updateLabRefused" parameterType="com.czlis.common.core.domain.entity.lis.LabRefused">
|
|
update lab_refused
|
|
<set>
|
|
<if test="refusedtime != null and refusedtime !=''">refusedtime= #{refusedtime},</if>
|
|
<if test="refuseder != null and refuseder != ''">refuseder = #{refuseder},</if>
|
|
<if test="ksdh != null and ksdh != ''">ksdh = #{ksdh},</if>
|
|
<if test="bz != null and bz != ''">bz = #{bz},</if>
|
|
<if test="refusetext != null and refusetext != ''">refusetext = #{refusetext},</if>
|
|
<if test="bz1 != null and bz1 != ''">bz1 = #{bz1},</if>
|
|
sqh = #{sqh}
|
|
</set>
|
|
where sqh = #{sqh}
|
|
</update>
|
|
</mapper> |