You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
2.5 KiB
100 lines
2.5 KiB
using ce.autofac.extension;
|
|
using learun.util;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace learun.iapplication
|
|
{
|
|
/// <summary>
|
|
/// 版 本 EasyCode EC管理后台
|
|
/// Copyright (c) 2019-present EC管理有限公司
|
|
/// 创建人:tobin
|
|
/// 日 期:2019.09.24
|
|
/// 描 述:公司管理
|
|
/// </summary>
|
|
public interface CompanyIBLL : IBLL
|
|
{
|
|
#region 获取数据
|
|
|
|
/// <summary>
|
|
/// 获取公司列表数据
|
|
/// </summary>
|
|
/// <param name="keyWord">查询关键字</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<CompanyEntity>> GetList(string keyWord = "");
|
|
|
|
/// <summary>
|
|
/// 获取子公司列表信息
|
|
/// </summary>
|
|
/// <param name="pId">父级Id</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<CompanyEntity>> GetListByPId(string pId);
|
|
|
|
/// <summary>
|
|
/// 获取公司信息实体
|
|
/// </summary>
|
|
/// <param name="keyValue">主键</param>
|
|
/// <returns></returns>
|
|
Task<CompanyEntity> GetEntity(string keyValue);
|
|
|
|
/// <summary>
|
|
/// 获取树形数据
|
|
/// </summary>
|
|
/// <param name="parentId">父级id</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<TreeModel>> GetTree(string parentId);
|
|
|
|
/// <summary>
|
|
/// 获取公司本身和子公司的id
|
|
/// </summary>
|
|
/// <param name="parentId">父级ID</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<string>> GetSubNodes(string parentId);
|
|
|
|
#endregion 获取数据
|
|
|
|
#region 2
|
|
|
|
/// <summary>
|
|
/// 获取公司列表数据
|
|
/// </summary>
|
|
/// <param name="queryParam">查询关键字</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<CompanyEntity>> GetList2(JObject queryParam);
|
|
|
|
/// <summary>
|
|
/// 获取子公司列表信息
|
|
/// </summary>
|
|
/// <param name="companyId">父级Id</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<CompanyEntity>> GetChildList(string companyId);
|
|
|
|
/// <summary>
|
|
/// 获取树形数据
|
|
/// </summary>
|
|
/// <param name="companyId">父级Id</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<TreeModel>> GetTree2(string companyId);
|
|
|
|
#endregion 2
|
|
|
|
#region 提交数据
|
|
|
|
/// <summary>
|
|
/// 删除公司信息
|
|
/// </summary>
|
|
/// <param name="keyValue">主键</param>
|
|
Task Delete(string keyValue);
|
|
|
|
/// <summary>
|
|
/// 保存公司信息(新增、修改)
|
|
/// </summary>
|
|
/// <param name="keyValue">主键值</param>
|
|
/// <param name="entity">公司实体</param>
|
|
/// <returns></returns>
|
|
Task SaveEntity(string keyValue, CompanyEntity entity);
|
|
|
|
#endregion 提交数据
|
|
}
|
|
}
|