43 lines
1.3 KiB
XML
Raw Normal View History

2025-06-19 16:44:11 +08:00
<?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">
2025-06-19 16:44:11 +08:00
2025-09-24 12:18:31 +08:00
<select id="query" resultType="com.czlis.common.core.domain.entity.lis.XmFeeInstr">
2025-11-24 16:57:36 +08:00
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>
2025-06-19 16:44:11 +08:00
</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>
2025-11-24 16:57:36 +08:00
2025-06-19 16:44:11 +08:00
</mapper>