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.

71 lines
2.1 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.Collections;
using Estsh.Core.Models;
using Estsh.Core.Repository.IRepositories;
using Estsh.Core.Util;
using Estsh.Core.Services.IServices;
using Estsh.Core.Model.Result;
using Estsh.Core.Dapper;
using Estsh.Core.Model.ExcelModel;
/***************************************************************************************************
*
* 更新人sitong.dong
* 描述:不良条码查询
* 修改时间2022.06.22
* 修改日志:系统迭代升级
*
**************************************************************************************************/
namespace Estsh.Core.Services
{
public class RepairQueryService : BaseService<GSnStatus>, IRepairQueryService
{
private readonly IRepairQueryRepository repository;
public RepairQueryService(IRepairQueryRepository _repository) : base(_repository)
{
repository = _repository;
}
/// <summary>
/// 产线
/// </summary>
/// <returns>数据集</returns>
public List<KeyValueResult> GetPDLineName()
{
return repository.GetPDLineName();
}
/// <summary>
/// 车型
/// </summary>
/// <returns></returns>
public List<KeyValueResult> GetModelTypeList()
{
return repository.GetModelTypeList();
}
/// <summary>
/// 配置
/// </summary>
/// <returns></returns>
public List<KeyValueResult> GetModelList(string typeName)
{
return repository.GetModelList(typeName);
}
/// <summary>
/// 根据用户选择的条件查找数据
/// </summary>
/// <param name="wheres">筛选条件</param>
/// <returns></returns>
public List<GSnStatus> GetRepairDataList(string whereStr, Pager pager, ref int totalCount)
{
return repository.GetRepairDataList(whereStr, pager,ref totalCount);
}
public List<RepairQuery> getTableListByPage(string whereStr, Pager pager, ref int totalCount)
{
return repository.getTableListByPage(whereStr, pager, ref totalCount);
}
}
}