批量修改小组角色权限方法修改
This commit is contained in:
parent
21db306e90
commit
3d3c42122b
@ -141,8 +141,9 @@ public class CoeCooperationRolePermDao extends DaoObject<CoeCooperationRolePermM
|
||||
.append(CoeCooperationRolePermModel.ID).append(",")
|
||||
.append(CoeCooperationRolePermModel.TEAMID).append(",")
|
||||
.append(CoeCooperationRolePermModel.ROLEID).append(",")
|
||||
.append(CoeCooperationRolePermModel.PALVERSIONID).append(")")
|
||||
.append(" VALUES (?,?,?,?)");
|
||||
.append(CoeCooperationRolePermModel.PALVERSIONID).append(",")
|
||||
.append(CoeCooperationRolePermModel.ACTIONPERM).append(")")
|
||||
.append(" VALUES (?,?,?,?,?)");
|
||||
prest = conn.prepareStatement(sql.toString(), ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
|
||||
for (CoeCooperationRolePermModel model : list) {
|
||||
if (UtilString.isEmpty(model.getId())) {
|
||||
@ -152,6 +153,7 @@ public class CoeCooperationRolePermDao extends DaoObject<CoeCooperationRolePermM
|
||||
prest.setString(2, model.getTeamId());
|
||||
prest.setString(3, model.getRoleId());
|
||||
prest.setString(4, model.getPalVersionId());
|
||||
prest.setString(5, model.getActionPerm());
|
||||
prest.addBatch();
|
||||
}
|
||||
prest.executeBatch();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user