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.
125 lines
4.4 KiB
XML
125 lines
4.4 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.dao.auth.SysCustomConfigDetailDao">
|
|
<select id="filterSysCustomConfigDetail" parameterType="com.glxp.api.req.auth.SysCustomConfigDetailRequest"
|
|
resultType="com.glxp.api.entity.auth.SysCustomConfigDetailEntity">
|
|
SELECT *
|
|
FROM sys_custom_config_detail
|
|
<where>
|
|
<if test="configId != null and '' != configId">
|
|
AND configId = #{configId}
|
|
</if>
|
|
<if test="type != null and '' != type">
|
|
AND type = #{type}
|
|
</if>
|
|
<if test="isShow != null and '' != isShow">
|
|
AND isShow = #{isShow}
|
|
</if>
|
|
</where>
|
|
order by lineNumber asc,number desc
|
|
</select>
|
|
|
|
|
|
<insert id="insertSysCustomConfigDetail" keyProperty="id"
|
|
parameterType="com.glxp.api.entity.auth.SysCustomConfigDetailEntity">
|
|
INSERT INTO sys_custom_config_detail
|
|
(id,configId,type,isShow, columnName,columnDesc,columnType,colorRule,sort,lableRule,width,tooltip,buttonRule,number,
|
|
clickFuc,disabledFuc,size,style,disabled,checkRules,inputType,lineNumber)
|
|
values (#{id},#{configId},#{type},#{isShow}, #{columnName},#{columnDesc},#{columnType},#{colorRule},#{sort},
|
|
#{lableRule},#{width},#{tooltip},#{buttonRule},#{number},#{clickFuc},#{disabledFuc},#{size},#{style},
|
|
#{disabled}, #{checkRules}, #{inputType}, #{lineNumber})
|
|
</insert>
|
|
|
|
<update id="updateSysCustomConfigDetail" parameterType="com.glxp.api.entity.auth.SysCustomConfigDetailEntity">
|
|
UPDATE sys_custom_config_detail
|
|
<set>
|
|
<if test="columnName != null">
|
|
columnName=#{columnName},
|
|
</if>
|
|
<if test="configId != null">
|
|
configId=#{configId},
|
|
</if>
|
|
<if test="type != null">
|
|
type=#{type},
|
|
</if>
|
|
<if test="isShow != null">
|
|
isShow=#{isShow},
|
|
</if>
|
|
<if test="columnDesc != null">
|
|
columnDesc=#{columnDesc},
|
|
</if>
|
|
<if test="columnType != null">
|
|
columnType=#{columnType},
|
|
</if>
|
|
<if test="colorRule != null">
|
|
colorRule=#{colorRule},
|
|
</if>
|
|
<if test="sort != null">
|
|
sort=#{sort},
|
|
</if>
|
|
<if test="lableRule != null">
|
|
lableRule=#{lableRule},
|
|
</if>
|
|
<if test="width != null">
|
|
width=#{width},
|
|
</if>
|
|
<if test="tooltip != null">
|
|
tooltip=#{tooltip},
|
|
</if>
|
|
<if test="buttonRule != null">
|
|
buttonRule=#{buttonRule},
|
|
</if>
|
|
<if test="number != null">
|
|
number=#{number},
|
|
</if>
|
|
<if test="clickFuc != null">
|
|
clickFuc=#{clickFuc},
|
|
</if>
|
|
<if test="disabledFuc != null">
|
|
disabledFuc=#{disabledFuc},
|
|
</if>
|
|
<if test="size != null">
|
|
size=#{size},
|
|
</if>
|
|
<if test="style != null">
|
|
style=#{style},
|
|
</if>
|
|
<if test="disabled != null">
|
|
disabled=#{disabled},
|
|
</if>
|
|
<if test="checkRules != null">
|
|
checkRules=#{checkRules},
|
|
</if>
|
|
<if test="inputType != null">
|
|
inputType=#{inputType},
|
|
</if>
|
|
<if test="lineNumber != null">
|
|
lineNumber=#{lineNumber},
|
|
</if>
|
|
</set>
|
|
WHERE id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteById" parameterType="java.lang.String">
|
|
delete
|
|
from sys_custom_config_detail
|
|
where id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteByConfigId" parameterType="java.lang.String">
|
|
delete
|
|
from sys_custom_config_detail
|
|
where configId = #{configId}
|
|
</delete>
|
|
|
|
<select id="selectById" parameterType="java.lang.Long"
|
|
resultType="com.glxp.api.entity.auth.SysCustomConfigDetailEntity">
|
|
SELECT *
|
|
FROM sys_custom_config_detail
|
|
WHERE (
|
|
id = #{id})
|
|
limit 1
|
|
</select>
|
|
</mapper>
|