43 lines
1.3 KiB
XML
43 lines
1.3 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.XmFeeInstrMapper">
|
|
|
|
<select id="query" resultType="com.czlis.common.core.domain.entity.lis.XmFeeInstr">
|
|
select a.*,(a.sfxmdh+' '+b.sfxmmc) as sfxmmc from xm_feeinstr a,xm_fee b where a.sfxmdh = b.sfxmdh
|
|
<if test="yq != null and yq != ''"> and a.yq = #{yq}</if>
|
|
<if test="sfxmdh != null and sfxmdh != ''">and a.sfxmdh = #{sfxmdh}</if>
|
|
</select>
|
|
|
|
<insert id="add">
|
|
insert into xm_feeinstr(
|
|
<if test="mrz != null and mrz != ''">mrz,</if>
|
|
<if test="xh != null ">xh,</if>
|
|
yq,sfxmdh
|
|
)values (
|
|
<if test="mrz != null and mrz != ''">#{mrz},</if>
|
|
<if test="xh != null ">#{xh},</if>
|
|
#{yq},#{sfxmdh}
|
|
)
|
|
</insert>
|
|
|
|
<update id="update">
|
|
update xm_feeinstr
|
|
<set>
|
|
<if test="mrz != null and mrz != ''">mrz = #{mrz},</if>
|
|
<if test="xh != null ">xh = #{xh},</if>
|
|
yq = #{yq},sfxmdh = #{sfxmdh}
|
|
</set>
|
|
where yq = #{yq} and sfxmdh = #{sfxmdh}
|
|
</update>
|
|
|
|
<delete id="delete">
|
|
delete from xm_feeinstr where yq = #{yq} and sfxmdh = #{sfxmdh}
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|