Commit 1d9535b144d452c8ab7f7ec3d66a76daf947059b
1 parent
660cec73
修改表名
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/bsth/service/sys/impl/RoleServiceImpl.java
| @@ -133,8 +133,8 @@ public class RoleServiceImpl extends BaseServiceImpl<Role, Integer> implements | @@ -133,8 +133,8 @@ public class RoleServiceImpl extends BaseServiceImpl<Role, Integer> implements | ||
| 133 | TransactionStatus status = tran.getTransaction(def); | 133 | TransactionStatus status = tran.getTransaction(def); |
| 134 | final String[] ids = rIds.split(","); | 134 | final String[] ids = rIds.split(","); |
| 135 | try{ | 135 | try{ |
| 136 | - jdbcTemplate.update("delete from bsth_c_sys_resource_roles where roles = ?", roleId); | ||
| 137 | - jdbcTemplate.batchUpdate("insert into bsth_c_sys_resource_roles(resources,roles)" + | 136 | + jdbcTemplate.update("delete from bsth_c_sys_role_resources where roles = ?", roleId); |
| 137 | + jdbcTemplate.batchUpdate("insert into bsth_c_sys_role_resources(resources,roles)" + | ||
| 138 | " VALUES (?, ?)", new BatchPreparedStatementSetter() { | 138 | " VALUES (?, ?)", new BatchPreparedStatementSetter() { |
| 139 | @Override | 139 | @Override |
| 140 | public void setValues(PreparedStatement ps, int i) throws SQLException { | 140 | public void setValues(PreparedStatement ps, int i) throws SQLException { |