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/target/classes/mybatis/mapper/info/SystemParamConfigDao.xml

71 lines
2.8 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.SystemParamConfigDao">
<select id="queryPage" parameterType="com.glxp.api.admin.req.info.SystemParamConfigRequest"
resultType="com.glxp.api.admin.entity.info.SystemParamConfigEntity">
SELECT id,paramName,paramKey,paramValue,paramStatus,paramType,paramExplain
FROM system_param_config
<where>
AND `paramStatus` = #{paramStatus}
<if test="paramName != null and '' != paramName">
AND `paramName` LIKE CONCAT(#{paramName},'%')
</if>
</where>
</select>
<select id="findSystemParamConfig" parameterType="com.glxp.api.admin.req.info.SystemParamConfigRequest"
resultType="com.glxp.api.admin.entity.info.SystemParamConfigEntity">
SELECT * FROM system_param_config WHERE id=#{id}
</select>
<select id="selectByParamName" parameterType="com.glxp.api.admin.req.info.SystemParamConfigRequest"
resultType="com.glxp.api.admin.entity.info.SystemParamConfigEntity">
SELECT * FROM system_param_config WHERE paramName=#{paramName}
</select>
<select id="selectByParamKey" parameterType="com.glxp.api.admin.req.info.SystemParamConfigRequest"
resultType="com.glxp.api.admin.entity.info.SystemParamConfigEntity">
SELECT * FROM system_param_config WHERE paramKey=#{paramKey}
</select>
<update id="updateById" parameterType="com.glxp.api.admin.entity.info.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.api.admin.entity.info.SystemParamConfigEntity">
UPDATE system_param_config
<set>
<if test="paramStatus != null">paramStatus=#{paramStatus},</if>
</set>
WHERE parentId=#{parentId}
</update>
<insert id="insert" parameterType="com.glxp.api.admin.entity.info.SystemParamConfigEntity">
insert INTO system_param_config(paramName,
paramKey,paramValue,paramStatus,paramType,paramExplain
) values
(
#{paramName},
#{paramKey},
#{paramValue},
#{paramStatus},
#{paramType},
#{paramExplain}
)
</insert>
</mapper>