|
|
|
@ -76,8 +76,8 @@ public class DataShareModel {
|
|
|
|
|
PgUtil.grantUserPrivilege(getSystemById(system_id).getStr("user_name"), s, PgUtil.WRITE);
|
|
|
|
|
}
|
|
|
|
|
//删除旧数据
|
|
|
|
|
String sql = "delete from t_datashare_table where system_id=? and table_name=?";
|
|
|
|
|
Db.update(sql, system_id, table_names);
|
|
|
|
|
String sql = "delete from t_datashare_table where system_id=?";
|
|
|
|
|
Db.update(sql, system_id);
|
|
|
|
|
//保存新数据
|
|
|
|
|
for (String s : table_names.split(",")) {
|
|
|
|
|
Record record = new Record();
|
|
|
|
|