38 lines
1021 B
C#
38 lines
1021 B
C#
using DOAN.Model.MES.group;
|
|
using DOAN.Service.group.IService;
|
|
using System;
|
|
using SqlSugar;
|
|
using Infrastructure.Attribute;
|
|
using Infrastructure.Extensions;
|
|
using DOAN.Model;
|
|
using DOAN.Model.MES.group.Dto;
|
|
using DOAN.Model.MES.group;
|
|
using DOAN.Repository;
|
|
using DOAN.Service.group.IService;
|
|
|
|
using System.Linq;
|
|
using Mapster;
|
|
using DOAN.Service.MES.group.IService;
|
|
using DOAN.Model.MES.base_;
|
|
|
|
namespace DOAN.Service.group
|
|
{
|
|
/// <summary>
|
|
/// 班次Service业务层处理
|
|
/// </summary>
|
|
[AppService(ServiceType = typeof(ISkillMatrixService), ServiceLifetime = LifeTime.Transient)]
|
|
public class SkillMatrixService : BaseService<GroupShift>, ISkillMatrixService
|
|
{
|
|
public List<GroupSchedule> GetAllGroups()
|
|
{
|
|
return Context.Queryable<GroupSchedule>().Where(it=>it.Status==1).ToList();
|
|
|
|
}
|
|
|
|
public List<BaseWorkRoute> GetAllRoutes()
|
|
{
|
|
return Context.Queryable<BaseWorkRoute>().Where(it => it.Status == 1).ToList();
|
|
}
|
|
|
|
}
|
|
} |