|
@@ -11,6 +11,7 @@
|
|
|
<result column="create_on_" property="createOn" />
|
|
|
<result column="modify_on_" property="modifyOn" />
|
|
|
<result column="group_" property="group" />
|
|
|
+ <result column="modify_by_" property="modifyBy" />
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -33,8 +34,8 @@
|
|
|
<!-- <selectKey resultClass="int" keyProperty="id" > SELECT SEQ_WSDEFINITION_ID.nextval
|
|
|
AS ID FROM DUAL </selectKey> -->
|
|
|
INSERT INTO sys_config
|
|
|
- (id_,param_name_,param_value_,description_,create_on_,modify_on_,group_)
|
|
|
- VALUES(#{id},#{paramName},#{paramValue},#{description},#{createOn},#{modifyOn},#{group})
|
|
|
+ (id_,param_name_,param_value_,description_,create_on_,modify_on_,group_,modify_by_)
|
|
|
+ VALUES(#{id},#{paramName},#{paramValue},#{description},#{createOn},#{modifyOn},#{group},#{modifyBy})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -56,6 +57,9 @@
|
|
|
<if test="group != null">
|
|
|
group_ = #{group},
|
|
|
</if>
|
|
|
+ <if test="modifyBy != null">
|
|
|
+ modify_by_ = #{modifyBy},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
WHERE id_ = #{id}
|
|
|
</update>
|
|
@@ -75,6 +79,9 @@
|
|
|
<if test="config.group != null">
|
|
|
group_ = #{config.group},
|
|
|
</if>
|
|
|
+ <if test="config.modifyBy != null">
|
|
|
+ modify_by_ = #{config.modifyBy},
|
|
|
+ </if>
|
|
|
modify_on_ = NOW()
|
|
|
</set>
|
|
|
WHERE id_ = #{config.id}
|