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.
udiwms-java/api-admin/src/main/resources/mybatis/mapper/info/SystemPDFModuleDao.xml

66 lines
2.6 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.api.admin.dao.info.SystemPDFModuleDao">
<select id="queryPage" parameterType="com.glxp.api.admin.req.info.SystemPDFModuleRequest"
resultType="com.glxp.api.admin.entity.info.SystemPDFModuleEntity">
SELECT id,name,param,fieldExplain,remark,templateId,create_time,update_time
FROM system_pdf_module
<where>
<if test="templateId != null and '' != templateId">
AND `templateId` LIKE CONCAT(#{templateId},'%')
</if>
<if test="name != null and '' != name">
AND `name` LIKE CONCAT(#{name},'%')
</if>
</where>
</select>
<select id="findSystemPDFModule" parameterType="com.glxp.api.admin.req.info.SystemPDFModuleRequest"
resultType="com.glxp.api.admin.entity.info.SystemPDFModuleEntity">
SELECT * FROM system_pdf_module WHERE id=#{id}
</select>
<select id="selectById" parameterType="java.lang.String"
resultType="com.glxp.api.admin.entity.info.SystemPDFModuleEntity">
select * FROM system_pdf_module WHERE id = #{id}
</select>
<update id="updateById" parameterType="com.glxp.api.admin.entity.info.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>
</set>
WHERE id=#{id}
</update>
<insert id="insert" parameterType="com.glxp.api.admin.entity.info.SystemPDFModuleEntity">
insert INTO system_pdf_module(name,param,fieldExplain,remark,templateId,create_time,update_time
) values
(
#{name},
#{param},
#{fieldExplain},
#{templateId},
#{remark},
#{create_time},
#{update_time}
)
</insert>
<select id="listPDFModules" parameterType="java.lang.Integer" resultType="com.glxp.api.admin.entity.info.SystemPDFModuleEntity">
SELECT id,name
FROM system_pdf_module
</select>
<delete id="deleteById" parameterType="java.lang.Integer">
delete from system_pdf_module where id = #{id}
</delete>
</mapper>