标签:cti 嵌套 role mis ext reac ora rac bat
<insert id="insert">
<selectKey order="BEFORE" keyProperty="id" resultType="int">
SELECT SEQ_ROLE_PERMISSION.NEXTVAL FROM dual
</selectKey>
INSERT INTO t_role(id,name) VALUES(#{id},#{name})
</insert>
<insert id="insertRolePermission">
<foreach collection="permissionList" item="permission">
INSERT INTO t_role_permission(id,role,permission)
VALUES(SEQ_ROLE_PERMISSION.NEXTVAL,#{id},#{permission.id})
</foreach>
</insert>
MyBatis-Oracle生成主键,嵌套对象中的List增加
标签:cti 嵌套 role mis ext reac ora rac bat
原文地址:https://www.cnblogs.com/java-ty/p/11809882.html