Browse Source

fix: 数据操作权限单个编辑

hsun 5 months ago
parent
commit
d90d0af91e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/data_manage/data_manage_permission/edb.go

+ 1 - 1
models/data_manage/data_manage_permission/edb.go

@@ -237,7 +237,7 @@ func SetPermissionByEdbIdList(edbIdList []string, userIdList []int, edbInfoType
 			//	return
 			//}
 
-			sql = "DELETE FROM edb_info_permission WHERE edb_info_permission_id in (" + utils.GetOrmInReplace(deletePermissionIdNum) + ")"
+			sql = `DELETE FROM edb_info_permission WHERE edb_info_permission_id in (?)`
 			err = to.Exec(sql, deletePermissionIdList).Error
 			if err != nil {
 				return