|
@@ -6,7 +6,7 @@
|
|
|
<resultMap type="com.yonge.cooleshow.biz.dal.entity.SysConfig" id="SysConfig">
|
|
|
<result column="id_" property="id" />
|
|
|
<result column="param_name_" property="paramName" />
|
|
|
- <result column="paran_value_" property="paranValue" />
|
|
|
+ <result column="param_value_" property="paramValue" />
|
|
|
<result column="description_" property="description" />
|
|
|
<result column="create_on_" property="createOn" />
|
|
|
<result column="modify_on_" property="modifyOn" />
|
|
@@ -33,8 +33,8 @@
|
|
|
<!-- <selectKey resultClass="int" keyProperty="id" > SELECT SEQ_WSDEFINITION_ID.nextval
|
|
|
AS ID FROM DUAL </selectKey> -->
|
|
|
INSERT INTO sys_config
|
|
|
- (id_,param_name_,paran_value_,description_,create_on_,modify_on_,group_)
|
|
|
- VALUES(#{id},#{paramName},#{paranValue},#{description},#{createOn},#{modifyOn},#{group})
|
|
|
+ (id_,param_name_,param_value_,description_,create_on_,modify_on_,group_)
|
|
|
+ VALUES(#{id},#{paramName},#{paramValue},#{description},#{createOn},#{modifyOn},#{group})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -44,8 +44,8 @@
|
|
|
<if test="modifyOn != null">
|
|
|
modify_on_ = #{modifyOn},
|
|
|
</if>
|
|
|
- <if test="paranValue != null">
|
|
|
- paran_value_ = #{paranValue},
|
|
|
+ <if test="paramValue != null">
|
|
|
+ param_value_ = #{paramValue},
|
|
|
</if>
|
|
|
<if test="description != null">
|
|
|
description_ = #{description},
|
|
@@ -63,8 +63,8 @@
|
|
|
<foreach collection="configList" item="config" index="index" open="" close="" separator=";">
|
|
|
UPDATE sys_config
|
|
|
<set>
|
|
|
- <if test="config.paranValue != null">
|
|
|
- paran_value_ = #{config.paranValue},
|
|
|
+ <if test="config.paramValue != null">
|
|
|
+ param_value_ = #{config.paramValue},
|
|
|
</if>
|
|
|
<if test="config.description != null">
|
|
|
description_ = #{config.description},
|
|
@@ -101,6 +101,6 @@
|
|
|
SELECT * FROM sys_config WHERE param_name_ = #{paramName}
|
|
|
</select>
|
|
|
<select id="findConfigValue" resultType="java.lang.String">
|
|
|
- SELECT paran_value_ FROM sys_config WHERE param_name_ = #{paramName}
|
|
|
+ SELECT param_value_ FROM sys_config WHERE param_name_ = #{paramName}
|
|
|
</select>
|
|
|
</mapper>
|