BLL/DepartmentBLL.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using Abp.Linq.Expressions;
using Entity.Models.dto;
using Entity.Models.Entities;
using Entity.Models.vo;
using IBLL;
using IDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using utils.enums;
using utils.Enums;
using utils.EX;
using Utils;

namespace BLL
{
    /// <summary>
    /// 部门BLL层
    /// </summary>
    public class DepartmentBLL : IDepartmentBLL
    {
        /// <summary>
        /// 部门DAL接口
        /// </summary>
        IDepartmentDAL _departmentDal;

        /// <summary>
        /// 用户接口
        /// </summary>
        IUserDAL _userDAL;

        public DepartmentBLL(IDepartmentDAL department, IUserDAL userDAL)
        {
            _departmentDal = department;
            _userDAL = userDAL;
        }

        /// <summary>
        /// 部门数据列表、搜索
        /// </summary>
        /// <param name="DepartmentName">部门名称</param>
        /// <param name="page">页数</param>
        /// <param name="limit">数据条数</param>
        /// <returns></returns>
        public List<DepartmentDTO> getdepartmentList(string DepartmentName, string page, string limit, out int cont)
        {
            //连表
            var datas = from d in _departmentDal.getEntitys().Where(i => i.IsDelete != true)
                        join u in _userDAL.getUserShowDAL().Where(i => i.IsDelete != true)
                        on d.LeaderId equals u.Id
                        into Temedu
                        from uu in Temedu.DefaultIfEmpty()

                        join d2 in _departmentDal.getEntitys().Where(u => u.IsDelete != true)
                        on d.ParentId equals d2.Id
                        into TempDD
                        from dd2 in TempDD.DefaultIfEmpty()
                        select new DepartmentDTO
                        {
后面还有 165 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。