|
|
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);
|
|
|
}
|
|
|
}
|
|
|
}
|