|
|
|
<?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.dao.auth.SysCustomConfigDao">
|
|
|
|
<select id="filterSysCustomConfig" parameterType="com.glxp.api.req.auth.SysCustomConfigRequest"
|
|
|
|
resultType="com.glxp.api.entity.auth.SysCustomConfigEntity">
|
|
|
|
SELECT *
|
|
|
|
FROM sys_custom_config
|
|
|
|
<where>
|
|
|
|
<if test="businessType != null and '' != businessType">
|
|
|
|
AND businessType = #{businessType}
|
|
|
|
</if>
|
|
|
|
<if test="remark != '' and remark != null">
|
|
|
|
AND remark like concat('%', #{remark}, '%')
|
|
|
|
</if>
|
|
|
|
<if test="type != null and '' != type">
|
|
|
|
AND type = #{type}
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertSysCustomConfig" keyProperty="id"
|
|
|
|
parameterType="com.glxp.api.entity.auth.SysCustomConfigEntity">
|
|
|
|
INSERT INTO sys_custom_config
|
|
|
|
(id,remark, businessType,type,handleChangeFuc)
|
|
|
|
values (#{id},#{remark}, #{businessType},#{type},#{handleChangeFuc})
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<update id="updateSysCustomConfig" parameterType="com.glxp.api.entity.auth.SysCustomConfigEntity">
|
|
|
|
UPDATE sys_custom_config
|
|
|
|
<set>
|
|
|
|
<if test="businessType != null">
|
|
|
|
businessType=#{businessType},
|
|
|
|
</if>
|
|
|
|
<if test="remark != null">
|
|
|
|
remark=#{remark},
|
|
|
|
</if>
|
|
|
|
<if test="handleChangeFuc != null">
|
|
|
|
handleChangeFuc=#{handleChangeFuc},
|
|
|
|
</if>
|
|
|
|
<if test="type != null">
|
|
|
|
type=#{type},
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
WHERE id = #{id}
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<delete id="deleteById" parameterType="java.lang.String">
|
|
|
|
delete
|
|
|
|
from sys_custom_config
|
|
|
|
where id = #{id}
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectById" parameterType="java.lang.Long"
|
|
|
|
resultType="com.glxp.api.entity.auth.SysCustomConfigEntity">
|
|
|
|
SELECT *
|
|
|
|
FROM sys_custom_config
|
|
|
|
WHERE (
|
|
|
|
id = #{id})
|
|
|
|
limit 1
|
|
|
|
</select>
|
|
|
|
</mapper>
|