|
|
@ -1183,6 +1183,41 @@ namespace IBKLinker_Minio.Controller.MinioController
|
|
|
|
return request;
|
|
|
|
return request;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 根据pk查询文件信息
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 根据PK查询minio文件文件夹路径表
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
[HttpPost, Route("GetStoragePathPk")]
|
|
|
|
|
|
|
|
public RequestEntity GetStoragePathPk(string Pk)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
RequestEntity request = new RequestEntity();//定义返回集合
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
using (IDbContext db = ObjectContainer.GetObject<IDbContext>("db"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
string sql = string.Empty;
|
|
|
|
|
|
|
|
IList<MinioStoragePath> result = new List<MinioStoragePath>();//定义查询到的list
|
|
|
|
|
|
|
|
if (Pk != null)//传输数据不为空
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
request.data = db.Query<MinioStoragePath>("select * from MINIO_STORAGE_PATH where 1=1 and PK='"+Pk+"' and CLEAR_FLAG='0' ORDER BY PK");
|
|
|
|
|
|
|
|
request.code = "0";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
request.code = "1";
|
|
|
|
|
|
|
|
request.msg = "查询失败,请检查查询条件!";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
request.code = "1";
|
|
|
|
|
|
|
|
logger.ErrorFormat("主表:MINIO_STORAGE_PATH,查询minio文件文件夹路径表失败,错误原因:{0}", ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return request;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region minio文件菜单递归和权限判断
|
|
|
|
#region minio文件菜单递归和权限判断
|
|
|
|