You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.0 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.glxp.udi.admin.dao.param.SystemPDFModuleDao">
<update id="updateById" parameterType="com.glxp.udi.admin.entity.param.SystemPDFModuleEntity">
UPDATE system_pdf_module
<set>
<if test="name != null">
name=#{name},
</if>
<if test="param != null">
param=#{param},
</if>
<if test="fieldExplain != null">
fieldExplain=#{fieldExplain},
</if>
<if test="remark != null">
remark=#{remark},
</if>
<if test="templateId != null">
templateId=#{templateId},
</if>
<if test="create_time != null">
create_time=#{create_time},
</if>
<if test="update_time != null">
update_time=#{update_time},
</if>
<if test="templateDlUrl != null">
templateDlUrl=#{templateDlUrl},
</if>
<if test="templateType != null">
templateType=#{templateType},
</if>
</set>
WHERE id = #{id}
</update>
<insert id="insertData" parameterType="com.glxp.udi.admin.entity.param.SystemPDFModuleEntity">
insert INTO system_pdf_module(name, param, fieldExplain, remark, templateId, create_time, update_time,
templateDlUrl, templateType)
values (#{name},
#{param},
#{fieldExplain},
#{templateId},
#{remark},
#{create_time},
#{update_time}, #{templateDlUrl}, #{templateType})
</insert>
<select id="listPDFModules" parameterType="java.lang.Integer"
resultType="com.glxp.udi.admin.entity.param.SystemPDFModuleEntity">
SELECT id, name
FROM system_pdf_module
</select>
</mapper>