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.

72 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.udi.admin.dao.param.SystemParamConfigDao">
<select id="findSystemParamConfig" parameterType="com.glxp.udi.admin.req.param.SystemParamConfigRequest"
resultType="com.glxp.udi.admin.entity.param.SystemParamConfigEntity">
SELECT * FROM system_param_config WHERE id=#{id}
</select>
<select id="selectByParamName" parameterType="com.glxp.udi.admin.req.param.SystemParamConfigRequest"
resultType="com.glxp.udi.admin.entity.param.SystemParamConfigEntity">
SELECT * FROM system_param_config WHERE paramName=#{paramName}
</select>
<update id="updateById" parameterType="com.glxp.udi.admin.entity.param.SystemParamConfigEntity">
UPDATE system_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>
</set>
WHERE id=#{id}
</update>
<update id="updateParentId" parameterType="com.glxp.udi.admin.entity.param.SystemParamConfigEntity">
UPDATE system_param_config
<set>
<if test="paramStatus != null">
paramStatus=#{paramStatus},
</if>
</set>
WHERE parentId=#{parentId}
</update>
<insert id="insertData" parameterType="com.glxp.udi.admin.entity.param.SystemParamConfigEntity">
insert INTO system_param_config(paramName,
paramKey,paramValue,paramStatus,paramType,paramExplain
) values
(
#{paramName},
#{paramKey},
#{paramValue},
#{paramStatus},
#{paramType},
#{paramExplain}
)
</insert>
<select id="selectCustomizeParam" resultType="com.glxp.udi.admin.entity.param.SystemParamConfigEntity">
select * from system_param_config where paramKey in
<foreach collection="systemParams" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</select>
</mapper>