Commit 39cbd799 by Suvalue

添加sql 主键修改

parent fa6ae5fb
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
where ID = #{id,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL}
</delete> </delete>
<insert id="insert" parameterType="com.bsoft.admin.model.DicOrg"> <insert id="insert" parameterType="com.bsoft.admin.model.DicOrg">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
select SEQ_DIC_ORG_ID.nextval from dual select SEQ_DIC_ORG_ID.nextval from dual
</selectKey> </selectKey>
insert into DIC_ORG (ID,CREATE_DATE, CREATE_USERID, "STATE", insert into DIC_ORG (ID,CREATE_DATE, CREATE_USERID, "STATE",
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
where ID = #{id,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL}
</delete> </delete>
<insert id="insert" parameterType="com.bsoft.admin.model.SysMenu"> <insert id="insert" parameterType="com.bsoft.admin.model.SysMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
select SEQ_SYS_MENU_ID.nextval from dual select SEQ_SYS_MENU_ID.nextval from dual
</selectKey> </selectKey>
insert into SYS_MENU (ID,CREATE_DATA, CREATE_USERID, "STATE", insert into SYS_MENU (ID,CREATE_DATA, CREATE_USERID, "STATE",
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
where ID = #{id,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL}
</delete> </delete>
<insert id="insert" parameterType="com.bsoft.admin.model.SysRole"> <insert id="insert" parameterType="com.bsoft.admin.model.SysRole">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
select SEQ_SYS_ROLE_ID.nextval from dual select SEQ_SYS_ROLE_ID.nextval from dual
</selectKey> </selectKey>
insert into SYS_ROLE (ID,CREATE_DATE, CREATE_USERID, "STATE", insert into SYS_ROLE (ID,CREATE_DATE, CREATE_USERID, "STATE",
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
where ID = #{id,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL}
</delete> </delete>
<insert id="insert" parameterType="com.bsoft.admin.model.SysRoleMenuRs"> <insert id="insert" parameterType="com.bsoft.admin.model.SysRoleMenuRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
select SEQ_SYS_ROLE_MENU_RS_ID.nextval from dual select SEQ_SYS_ROLE_MENU_RS_ID.nextval from dual
</selectKey> </selectKey>
insert into SYS_ROLE_MENU_RS (ID,CREATE_DATE, CREATE_USERID, "STATE", insert into SYS_ROLE_MENU_RS (ID,CREATE_DATE, CREATE_USERID, "STATE",
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
where ID = #{id,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL}
</delete> </delete>
<insert id="insert" parameterType="com.bsoft.admin.model.SysUser"> <insert id="insert" parameterType="com.bsoft.admin.model.SysUser">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
select SEQ_SYS_USER_ID.nextval from dual select SEQ_SYS_USER_ID.nextval from dual
</selectKey> </selectKey>
insert into SYS_USER (ID,CREATE_DATE, CREATE_USERID, "STATE", insert into SYS_USER (ID,CREATE_DATE, CREATE_USERID, "STATE",
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
where ID = #{id,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL}
</delete> </delete>
<insert id="insert" parameterType="com.bsoft.admin.model.SysUserMenuRs"> <insert id="insert" parameterType="com.bsoft.admin.model.SysUserMenuRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
select SEQ_SYS_USER_MENU_RS _ID.nextval from dual select SEQ_SYS_USER_MENU_RS _ID.nextval from dual
</selectKey> </selectKey>
insert into SYS_USER_MENU_RS (ID,CREATE_DATE, CREATE_USERID, "STATE", insert into SYS_USER_MENU_RS (ID,CREATE_DATE, CREATE_USERID, "STATE",
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
where ID = #{id,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL}
</delete> </delete>
<insert id="insert" parameterType="com.bsoft.admin.model.SysUserOrgRs"> <insert id="insert" parameterType="com.bsoft.admin.model.SysUserOrgRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
select SEQ_SYS_USER_ORG_RS_ID.nextval from dual select SEQ_SYS_USER_ORG_RS_ID.nextval from dual
</selectKey> </selectKey>
insert into SYS_USER_ORG_RS (ID,CREATE_DATE, CREATE_USERID, "STATE", insert into SYS_USER_ORG_RS (ID,CREATE_DATE, CREATE_USERID, "STATE",
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
where ID = #{id,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL}
</delete> </delete>
<insert id="insert" parameterType="com.bsoft.admin.model.SysUserRoleRs"> <insert id="insert" parameterType="com.bsoft.admin.model.SysUserRoleRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
select SEQ_SYS_USER_ROLE_RS_ID.nextval from dual select SEQ_SYS_USER_ROLE_RS_ID.nextval from dual
</selectKey> </selectKey>
insert into SYS_USER_ROLE_RS (ID,CREATE_DATE, CREATE_USERID, "STATE", insert into SYS_USER_ROLE_RS (ID,CREATE_DATE, CREATE_USERID, "STATE",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment