You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB
C#

using SlnMesnac.Common;
using SlnMesnac.Repository;
using SlnMesnac.Repository.service;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2024 WenJY
* CLR4.0.30319.42000
* T14-GEN3-7895
* SlnMesnac.Business
* 63ebb36b-933d-4cea-ac0a-dc197ee33cc7
*
* WenJY
*
* 2024-11-08 15:01:29
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
namespace SlnMesnac.Business
{
public class BusbarInfoBusiness
{
private readonly Ibase_busbar_infoServices _ibase_Busbar_InfoServices;
public BusbarInfoBusiness(Ibase_busbar_infoServices ibase_Busbar_InfoServices)
{
_ibase_Busbar_InfoServices = ibase_Busbar_InfoServices;
}
public void QueryBusbarInfo(int cabinetCode, out List<base_busbar_info> infos)
{
Expression<Func<base_busbar_info, bool>> exp = s1 => true;
if (cabinetCode > 0)
{
exp = exp.And(x => x.cabinetCode == cabinetCode);
}
infos = _ibase_Busbar_InfoServices.Query(exp);
}
}
}