lis8.0/liswork/src/main/resources/mapper/XmFeeInstrMapper.xml
2025-09-24 12:18:31 +08:00

44 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.liswork.mapper.dict.XmFeeInstrMapper">
<select id="query" resultType="com.czlis.common.core.domain.entity.lis.XmFeeInstr">
select * from xm_feeinstr
<where>
<if test="yq != null and yq != ''"> and yq = #{yq}</if>
<if test="sfxmdh != null and sfxmdh != ''">and sfxmdh = #{sfxmdh}</if>
</where>
</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>