lis8.0/mzcx/src/main/resources/mapper/FeeitemVsClassMapper.xml

28 lines
915 B
XML
Raw Normal View History

2025-06-13 18:00:34 +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.mzcx.mapper.FeeitemClassMapper">
<select id="query" resultType="com.czlis.mzcx.pojo.LabFeeitemVsClass">
select * from lab_feeitem_vs_class
<where>
<if test="sflbdh != null and sflbdh != ''"> and sflbdh = #{sflbdh}</if>
<if test="sfxmdh != null and sfxmdh != ''"> and sfxmdh = #{sfxmdh}</if>
</where>
</select>
<insert id="add">
insert into lab_feeitem_vs_class(
<if test="xh != null">xh,</if>
<if test="sfxmdh != null and sfxmdh != ''">sfxmdh,</if>
sflbdh
)values(
<if test="xh != null">#{xh},</if>
<if test="sfxmdh != null and sfxmdh != ''">#{sfxmdh},</if>
sflbdh
)
</insert>
</mapper>