62 lines
2.6 KiB
XML
62 lines
2.6 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.dict.XmReqitemVsReportitemMapper">
|
|
|
|
<select id="query">
|
|
select * from xm_reqitem_vs_reportitem
|
|
<where>
|
|
<if test="sqxmdh != null and sqxmdh != ''">and sqxmdh = #{sqxmdh}</if>
|
|
<if test="sqxmmc != null and sqxmmc != ''"> and sqxmmc = #{sqxmmc}</if>
|
|
<if test="yq != null and yq != ''">and yq = #{yq}</if>
|
|
<if test="xmdh != null and xmdh != ''"> and xmdh = #{xmdh}</if>
|
|
<if test="seq != null"> and seq = #{seq}</if>
|
|
<if test="tdh != null and tdh != ''"> and tdh = #{tdh}</if>
|
|
<if test="mrz != null and mrz != ''"> and mrz = #{mrz}</if>
|
|
<if test="def != null and def != ''"> and def = #{def}</if>
|
|
</where>
|
|
</select>
|
|
|
|
<insert id="add">
|
|
insert into xm_reqitem_vs_reportitem(
|
|
<if test="sqxmmc != null and sqxmmc != ''">sqxmmc ,</if>
|
|
<if test="yq != null and yq != ''">yq ,</if>
|
|
<if test="xmdh != null and xmdh != ''">xmdh ,</if>
|
|
<if test="seq != null">seq ,</if>
|
|
<if test="tdh != null and tdh != ''">tdh ,</if>
|
|
<if test="mrz != null and mrz != ''">mrz ,</if>
|
|
<if test="def != null and def != ''">def ,</if>
|
|
sqxmdh
|
|
)values(
|
|
<if test="sqxmmc != null and sqxmmc != ''">#{sqxmmc} ,</if>
|
|
<if test="yq != null and yq != ''">#{yq} ,</if>
|
|
<if test="xmdh != null and xmdh != ''">#{xmdh} ,</if>
|
|
<if test="seq != null">#{seq} ,</if>
|
|
<if test="tdh != null and tdh != ''">#{tdh} ,</if>
|
|
<if test="mrz != null and mrz != ''">#{mrz} ,</if>
|
|
<if test="def != null and def != ''">#{def} ,</if>
|
|
#{sqxmdh}
|
|
)
|
|
</insert>
|
|
|
|
<update id="update">
|
|
update xm_reqitem_vs_reportitem
|
|
<set>
|
|
<if test="sqxmmc != null and sqxmmc != ''">sqxmmc = #{sqxmmc},</if>
|
|
<if test="seq != null">seq = #{seq},</if>
|
|
<if test="tdh != null and tdh != ''">tdh = #{tdh},</if>
|
|
<if test="mrz != null and mrz != ''">mrz = #{mrz},</if>
|
|
<if test="def != null and def != ''">def = #{def},</if>
|
|
sqxmdh = #{sqxmdh},yq =#{yq},xmdh = #{xmdh}
|
|
</set>
|
|
where sqxmdh = #{sqxmdh} and yq =#{yq} and xmdh = #{xmdh}
|
|
</update>
|
|
|
|
<delete id="delete">
|
|
delete from xm_reqitem_vs_reportitem where sqxmdh = #{sqxmdh} and yq = #{yq} and xmdh = #{xmdh}
|
|
<if test="tdh != null and tdh != ''">and tdh = #{tdh}</if>
|
|
</delete>
|
|
|
|
|
|
</mapper>
|