|
|
|
|
using Entity.Api.Req;
|
|
|
|
|
using Entity.Base;
|
|
|
|
|
using Entity.DbModel.Station;
|
|
|
|
|
using Entity.DbModel.System.SysBaseObject;
|
|
|
|
|
using Entity.Dto.Req;
|
|
|
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
|
|
|
using OfficeOpenXml.FormulaParsing.Excel.Functions.Text;
|
|
|
|
|
using Repository.Station;
|
|
|
|
|
using Repository.System;
|
|
|
|
|
using Service.Mgr;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Service.Station
|
|
|
|
|
{
|
|
|
|
|
[Scope("SingleInstance")]
|
|
|
|
|
public class BinInfoService : BaseServices<BinInfo>
|
|
|
|
|
{
|
|
|
|
|
BinInfoRepository _binInfoRepository;
|
|
|
|
|
public BinInfoService(BinInfoRepository dal)
|
|
|
|
|
{
|
|
|
|
|
_binInfoRepository = dal;
|
|
|
|
|
BaseDal = dal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 充电仓查询
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="input"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task<SqlSugarPagedList<BinInfo>> ChargePositionQuery(ChargePositionQueryReq input)
|
|
|
|
|
{
|
|
|
|
|
RefAsync<int> total = 0;
|
|
|
|
|
var items = await _binInfoRepository.QueryPageAsync(
|
|
|
|
|
!string.IsNullOrEmpty(input.No), u => u.No == input.No,
|
|
|
|
|
!string.IsNullOrEmpty(input.Name), u => u.Name == input.Name,
|
|
|
|
|
input.Page, input.PageSize, total
|
|
|
|
|
);
|
|
|
|
|
return SqlSugarPagedExtensions.CreateSqlSugarPagedList(items, total, input.Page, input.PageSize);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|