|
@@ -14,6 +14,7 @@
|
|
|
<result column="create_time_" property="createTime"/>
|
|
|
<result column="update_time_" property="updateTime"/>
|
|
|
<result column="del_flag_" property="delFlag"/>
|
|
|
+ <result column="organ_id_" property="organId"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -34,8 +35,8 @@
|
|
|
SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL
|
|
|
</selectKey>
|
|
|
-->
|
|
|
- INSERT INTO sys_role (id_,role_name_,role_code_,role_desc_,create_time_,update_time_)
|
|
|
- VALUES(#{id},#{roleName},#{roleCode},#{roleDesc},now(),now())
|
|
|
+ INSERT INTO sys_role (id_,role_name_,role_code_,role_desc_,create_time_,update_time_,organ_id_)
|
|
|
+ VALUES(#{id},#{roleName},#{roleCode},#{roleDesc},now(),now(),organId)
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -57,6 +58,9 @@
|
|
|
<if test="updateTime != null">
|
|
|
update_time_ = #{updateTime},
|
|
|
</if>
|
|
|
+ <if test="organId != null">
|
|
|
+ organ_id_ = #{organId},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
WHERE id_ = #{id}
|
|
|
</update>
|