获取班组
This commit is contained in:
parent
ead805ac6b
commit
89ea2d7ff8
@ -7,10 +7,10 @@ using DOAN.Admin.WebApi.Filters;
|
||||
|
||||
|
||||
//创建时间:2024-07-22
|
||||
namespace DOAN.Admin.WebApi.Controllers
|
||||
namespace DOAN.WebApi.Controllers.JobKanban
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// 废弃
|
||||
/// </summary>
|
||||
[Verify]
|
||||
[Route("mes/baseManagement/BaseGroup")]
|
||||
@ -50,7 +50,7 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
public IActionResult GetBaseGroup(int Id)
|
||||
{
|
||||
var response = _BaseGroupService.GetInfo(Id);
|
||||
|
||||
|
||||
var info = response.Adapt<BaseGroup>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
@ -7,6 +7,8 @@ using Aliyun.OSS;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using DOAN.Model.MES.product;
|
||||
using DOAN.Model.MES.product.Dto;
|
||||
using DOAN.Model.MES.group.Dto;
|
||||
using DOAN.Service.group.IService;
|
||||
|
||||
//创建时间:2024-07-08
|
||||
namespace DOAN.Admin.WebApi.Controllers.JobKanban
|
||||
@ -26,10 +28,12 @@ namespace DOAN.Admin.WebApi.Controllers.JobKanban
|
||||
public LoginOrSetController(ILoginOrSetService LoginOrSetService)
|
||||
{
|
||||
_LoginOrSetService = LoginOrSetService;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取组
|
||||
/// </summary>
|
||||
@ -167,7 +171,24 @@ namespace DOAN.Admin.WebApi.Controllers.JobKanban
|
||||
//}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// TODO 根据日期获取班组
|
||||
/// </summary>
|
||||
/// <param name="date"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list_by_date")]
|
||||
public IActionResult ListGroupByDate(DateTime date)
|
||||
{
|
||||
if (date == DateTime.MinValue)
|
||||
{
|
||||
return SUCCESS(null);
|
||||
}
|
||||
var response = _LoginOrSetService.ListGroupByDate(date.Date);
|
||||
|
||||
return SUCCESS(response);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
using DOAN.Model.JobKanban;
|
||||
using DOAN.Model.MES.base_;
|
||||
using DOAN.Model.MES.group;
|
||||
using DOAN.Model.MES.product;
|
||||
using DOAN.Model.MES.product.Dto;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
@ -8,6 +9,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||
|
||||
namespace DOAN.Service.JobKanban.IService
|
||||
{
|
||||
@ -27,7 +29,11 @@ namespace DOAN.Service.JobKanban.IService
|
||||
int FinishWorkOrder(ProReportwork reportWorkDto);
|
||||
|
||||
KanbanInfo GetKanbanNum(DateTime today, string LineCode);
|
||||
|
||||
|
||||
List<GroupSchedule> ListGroupByDate(DateTime date);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -8,6 +8,7 @@ using DOAN.Model.JobKanban;
|
||||
using DOAN.Model.MES.andon;
|
||||
using DOAN.Model.MES.base_;
|
||||
using DOAN.Model.MES.base_.Dto;
|
||||
using DOAN.Model.MES.group;
|
||||
using DOAN.Model.MES.product;
|
||||
using DOAN.Model.MES.product.Dto;
|
||||
using DOAN.Service.JobKanban.IService;
|
||||
@ -201,7 +202,12 @@ namespace DOAN.Service.JobKanban
|
||||
}
|
||||
|
||||
|
||||
public List<GroupSchedule> ListGroupByDate(DateTime date)
|
||||
{
|
||||
|
||||
return Context.Queryable<GroupSchedule>().Where(it=>it.ScheduleDate == date)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user