using ce.autofac.extension; using learun.iapplication; using learun.application; using learun.util; using System.Collections.Generic; using System.Threading.Tasks; using learun.iappdev; namespace learun.appdev { /// /// EasyCode EC管理后台 /// Copyright (c) 2019-present EC管理有限公司 /// 创建人:tobin /// 日 期: 2020-06-18 06:35:30 /// 描 述: 测试代码生成器 f_parent /// public class TestBLL : BLLBase, ITestBLL,BLL { private readonly TestService testService = new TestService(); #region 获取数据 /// /// 获取主表f_parent的所有列表数据 /// /// 查询参数,json字串 /// public Task> GetList(string queryJson) { return testService.GetList(queryJson); } /// /// 获取主表f_parent的分页列表数据 /// /// 分页参数 /// 查询参数,json字串 /// public Task> GetPageList(Pagination pagination, string queryJson) { return testService.GetPageList(pagination, queryJson); } /// /// 获取f_children(f_children)的列表实体数据 /// /// 与表f_parent的关联字段 /// public Task> GetF_childrenList(string f_parentId) { return testService.GetF_childrenList(f_parentId); } /// /// 获取主表f_parent的实体 /// /// 主键 /// public Task GetEntity(string keyValue) { return testService.GetEntity(keyValue); } #endregion #region 提交数据 /// /// 删除 /// /// 主表主键 public async Task Delete(string keyValue) { await testService.Delete(keyValue); } /// /// 新增,更新 /// /// 主键值 /// f_parent实体数据 /// f_children实体数据列表 /// public async Task SaveEntity(string keyValue ,F_parentEntity f_parentEntity,IEnumerable f_childrenList) { return await testService.SaveEntity(keyValue ,f_parentEntity,f_childrenList); } #endregion } }