47 lines
1.4 KiB
C#
47 lines
1.4 KiB
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(DateTime date)
|
|
{
|
|
return Context.Queryable<GroupSchedule>().Where(it=>it.Status==1)
|
|
.Where(it=>it.ScheduleDate==date)
|
|
.ToList();
|
|
|
|
}
|
|
|
|
public List<BaseWorkRoute> GetAllRoutes()
|
|
{
|
|
return Context.Queryable<BaseWorkRoute>().Where(it => it.Status == 1).ToList();
|
|
}
|
|
public List<GroupPersonDto> GetPersonsList(string group_schedule_id)
|
|
{
|
|
//var query=Context.Queryable<GroupRelPersonGroup>()
|
|
// .Where(it=>it.FkGroupId==group_schedule_id)
|
|
//Context.Queryable(query).Where(it=>it.)
|
|
|
|
return null;
|
|
}
|
|
}
|
|
} |