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.
87 lines
3.5 KiB
XML
87 lines
3.5 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.schedule.SystemParamConfigDao">
|
|
|
|
<select id="queryPage" parameterType="com.glxp.api.req.system.FilterParamConfigRequest"
|
|
resultType="com.glxp.api.entity.system.SystemParamConfigEntity">
|
|
SELECT *
|
|
FROM sys_param_config
|
|
<where>
|
|
AND `paramStatus` = #{paramStatus}
|
|
<if test="paramName != null and '' != paramName">
|
|
AND `paramName` LIKE CONCAT(#{paramName},'%')
|
|
</if>
|
|
<if test="paramType!=null">
|
|
and paramType = #{paramType}
|
|
</if>
|
|
<if test="key != null and key != ''">
|
|
AND paramName like CONCAT('%', #{key}, '%')
|
|
</if>
|
|
</where>
|
|
order BY id
|
|
</select>
|
|
|
|
|
|
<select id="findSystemParamConfig" parameterType="com.glxp.api.req.system.FilterParamConfigRequest"
|
|
resultType="com.glxp.api.entity.system.SystemParamConfigEntity">
|
|
SELECT *
|
|
FROM sys_param_config
|
|
WHERE id = #{id}
|
|
</select>
|
|
|
|
|
|
<select id="selectByParamName" parameterType="com.glxp.api.req.system.FilterParamConfigRequest"
|
|
resultType="com.glxp.api.entity.system.SystemParamConfigEntity">
|
|
SELECT * FROM sys_param_config WHERE paramName=#{paramName}
|
|
</select>
|
|
|
|
<select id="selectByParamKey" parameterType="com.glxp.api.req.system.FilterParamConfigRequest"
|
|
resultType="com.glxp.api.entity.system.SystemParamConfigEntity">
|
|
SELECT *
|
|
FROM sys_param_config
|
|
WHERE paramKey = #{paramKey}
|
|
</select>
|
|
|
|
<update id="updateById" parameterType="com.glxp.api.entity.system.SystemParamConfigEntity">
|
|
UPDATE sys_param_config
|
|
<set>
|
|
<if test="paramName != null">paramName=#{paramName},</if>
|
|
<if test="paramKey != null">paramKey=#{paramKey},</if>
|
|
<if test="paramValue != null">paramValue=#{paramValue},</if>
|
|
<if test="paramStatus != null">paramStatus=#{paramStatus},</if>
|
|
<if test="paramType != null">paramType=#{paramType},</if>
|
|
<if test="paramExplain != null">paramExplain=#{paramExplain},</if>
|
|
<if test="updateTime != null">updateTime=#{updateTime},</if>
|
|
</set>
|
|
WHERE id=#{id}
|
|
</update>
|
|
|
|
<update id="updateParentId" parameterType="com.glxp.api.entity.system.SystemParamConfigEntity">
|
|
UPDATE sys_param_config
|
|
<set>
|
|
<if test="paramStatus != null">paramStatus=#{paramStatus},</if>
|
|
</set>
|
|
WHERE parentId=#{parentId}
|
|
</update>
|
|
|
|
<insert id="insert" parameterType="com.glxp.api.entity.system.SystemParamConfigEntity">
|
|
insert INTO sys_param_config(paramName,
|
|
paramKey, paramValue, paramStatus, paramType, paramExplain, updateTime)
|
|
values (#{paramName},
|
|
#{paramKey},
|
|
#{paramValue},
|
|
#{paramStatus},
|
|
#{paramType},
|
|
#{paramExplain},
|
|
#{updateTime})
|
|
</insert>
|
|
|
|
<select id="selectValueByParamKey" resultType="java.lang.String">
|
|
select paramValue from sys_param_config where paramKey = #{key}
|
|
</select>
|
|
|
|
<select id="selectByLastTime" resultType="com.glxp.api.entity.system.SystemParamConfigEntity">
|
|
select * from sys_param_config where updateTime >= #{lastUpdateTime}
|
|
</select>
|
|
</mapper> |