|
|
|
@ -122,7 +122,10 @@ public class DataShareModel {
|
|
|
|
|
subscribe_system_ids = Db.queryStr(sql, system_id);
|
|
|
|
|
//对于这些表都需要回收此用户的读权限
|
|
|
|
|
for (String s : subscribe_system_ids.split(",")) {
|
|
|
|
|
PgUtil.revokeUserPrivilege(user_name, s, PgUtil.READ);
|
|
|
|
|
List<Record> list = getShareTable(Integer.parseInt(s));
|
|
|
|
|
for (Record r : list) {
|
|
|
|
|
PgUtil.revokeUserPrivilege(user_name, r.getStr("table_name"), PgUtil.READ);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
sql = "update t_datashare_system set subscribe_system_ids=? where system_id=?";
|
|
|
|
|
Db.update(sql, subscribe_system_ids, system_id);
|
|
|
|
|