You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
5.1 KiB
137 lines
5.1 KiB
<?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.ruoyi.gysl.mapper.FmqdServiceMapper">
|
|
|
|
|
|
<select id="selectFmqdList" resultType="com.ruoyi.gysl.entity.Fmqd">
|
|
SELECT * FROM fmqd
|
|
<where>
|
|
<if test="id != null">
|
|
AND id = #{id}
|
|
</if>
|
|
<if test="name != null and name != ''">
|
|
AND name = #{name}
|
|
</if>
|
|
<if test="xzfl != null">
|
|
AND xzfl = #{xzfl}
|
|
</if>
|
|
<if test="xmfrdw != null and xmfrdw != ''">
|
|
AND xmfrdw = #{xmfrdw}
|
|
</if>
|
|
<if test="xmjsqzsj != null and xmjsqzsj != ''">
|
|
AND xmjsqzsj = #{xmjsqzsj}
|
|
</if>
|
|
<if test="ztze != null">
|
|
AND ztze = #{ztze}
|
|
</if>
|
|
<if test="zydmj != null">
|
|
AND zydmj = #{zydmj}
|
|
</if>
|
|
<if test="createId != null">
|
|
AND create_id = #{createId}
|
|
</if>
|
|
<if test="createTime != null">
|
|
AND create_time = #{createTime}
|
|
</if>
|
|
<if test="createBy != null and createBy != ''">
|
|
AND create_by = #{createBy}
|
|
</if>
|
|
<if test="updateId != null">
|
|
AND update_id = #{updateId}
|
|
</if>
|
|
<if test="updateBy != null and updateBy != ''">
|
|
AND update_by = #{updateBy}
|
|
</if>
|
|
<if test="updateTime != null">
|
|
AND update_time = #{updateTime}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
<select id="selectFmqdById" parameterType="Integer" resultType="com.ruoyi.gysl.entity.Fmqd">
|
|
SELECT * FROM fmqd
|
|
WHERE id = #{id}
|
|
</select>
|
|
<insert id="saveFmqd" parameterType="com.ruoyi.gysl.entity.Fmqd" useGeneratedKeys="true" keyProperty="id">
|
|
INSERT INTO fmqd (
|
|
<trim suffixOverrides=",">
|
|
<if test="name != null and name != ''">name,</if>
|
|
<if test="xzfl != null">xzfl,</if>
|
|
<if test="xmfrdw != null and xmfrdw != ''">xmfrdw,</if>
|
|
<if test="xmjsqzsj != null and xmjsqzsj != ''">xmjsqzsj,</if>
|
|
<if test="ztze != null">ztze,</if>
|
|
<if test="zydmj != null">zydmj,</if>
|
|
<if test="createId != null">create_id,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="updateId != null">update_id,</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
|
<if test="updateTime != null">update_time</if>
|
|
</trim>
|
|
) VALUES (
|
|
<trim suffixOverrides=",">
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
<if test="xzfl != null">#{xzfl},</if>
|
|
<if test="xmfrdw != null and xmfrdw != ''">#{xmfrdw},</if>
|
|
<if test="xmjsqzsj != null and xmjsqzsj != ''">#{xmjsqzsj},</if>
|
|
<if test="ztze != null">#{ztze},</if>
|
|
<if test="zydmj != null">#{zydmj},</if>
|
|
<if test="createId != null">#{createId},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="updateId != null">#{updateId},</if>
|
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
|
<if test="updateTime != null">#{updateTime}</if>
|
|
</trim>
|
|
)
|
|
</insert>
|
|
|
|
<update id="updateFmqd" parameterType="com.ruoyi.gysl.entity.Fmqd">
|
|
UPDATE fmqd
|
|
<set>
|
|
<if test="name != null and name != ''">
|
|
name = #{name},
|
|
</if>
|
|
<if test="xzfl != null">
|
|
xzfl = #{xzfl},
|
|
</if>
|
|
<if test="xmfrdw != null and xmfrdw != ''">
|
|
xmfrdw = #{xmfrdw},
|
|
</if>
|
|
<if test="xmjsqzsj != null and xmjsqzsj != ''">
|
|
xmjsqzsj = #{xmjsqzsj},
|
|
</if>
|
|
<if test="ztze != null">
|
|
ztze = #{ztze},
|
|
</if>
|
|
<if test="zydmj != null">
|
|
zydmj = #{zydmj},
|
|
</if>
|
|
<if test="createId != null">
|
|
create_id = #{createId},
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time = #{createTime},
|
|
</if>
|
|
<if test="createBy != null and createBy != ''">
|
|
create_by = #{createBy},
|
|
</if>
|
|
<if test="updateId != null">
|
|
update_id = #{updateId},
|
|
</if>
|
|
<if test="updateBy != null and updateBy != ''">
|
|
update_by = #{updateBy},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time = #{updateTime},
|
|
</if>
|
|
</set>
|
|
WHERE id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteFmqd" parameterType="Integer">
|
|
DELETE FROM fmqd WHERE id = #{id}
|
|
</delete>
|
|
|
|
</mapper> |