增加使用pk查询文件详细信息接口,解决移动文件后文件路径不刷新问题

master
孙亮 5 months ago
parent ad8a13b05e
commit 24f9057bd1

@ -1183,6 +1183,41 @@ namespace IBKLinker_Minio.Controller.MinioController
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
#region minio文件菜单递归和权限判断

Loading…
Cancel
Save