diff --git a/DOAN.Admin.WebApi/Controllers/MES/base/BaseGroupController.cs b/DOAN.Admin.WebApi/Controllers/JobKanban/BaseGroupController.cs
similarity index 98%
rename from DOAN.Admin.WebApi/Controllers/MES/base/BaseGroupController.cs
rename to DOAN.Admin.WebApi/Controllers/JobKanban/BaseGroupController.cs
index 8e0bb4c..5a094a8 100644
--- a/DOAN.Admin.WebApi/Controllers/MES/base/BaseGroupController.cs
+++ b/DOAN.Admin.WebApi/Controllers/JobKanban/BaseGroupController.cs
@@ -7,10 +7,10 @@ using DOAN.Admin.WebApi.Filters;
//创建时间:2024-07-22
-namespace DOAN.Admin.WebApi.Controllers
+namespace DOAN.WebApi.Controllers.JobKanban
{
///
- ///
+ /// 废弃
///
[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();
return SUCCESS(info);
}
diff --git a/DOAN.Admin.WebApi/Controllers/JobKanban/LoginOrSetController.cs b/DOAN.Admin.WebApi/Controllers/JobKanban/LoginOrSetController.cs
index b78cd0f..10af9ea 100644
--- a/DOAN.Admin.WebApi/Controllers/JobKanban/LoginOrSetController.cs
+++ b/DOAN.Admin.WebApi/Controllers/JobKanban/LoginOrSetController.cs
@@ -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;
+
}
+
///
/// 获取组
///
@@ -167,7 +171,24 @@ namespace DOAN.Admin.WebApi.Controllers.JobKanban
//}
+ ///
+ /// TODO 根据日期获取班组
+ ///
+ ///
+ ///
+ [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);
+
+
+ }
diff --git a/DOAN.Service/JobKanban/IService/ILoginOrSetService.cs b/DOAN.Service/JobKanban/IService/ILoginOrSetService.cs
index 1fd99fc..d907510 100644
--- a/DOAN.Service/JobKanban/IService/ILoginOrSetService.cs
+++ b/DOAN.Service/JobKanban/IService/ILoginOrSetService.cs
@@ -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 ListGroupByDate(DateTime date);
+
+
+
}
diff --git a/DOAN.Service/JobKanban/LoginOrSetService.cs b/DOAN.Service/JobKanban/LoginOrSetService.cs
index 551cf97..6753227 100644
--- a/DOAN.Service/JobKanban/LoginOrSetService.cs
+++ b/DOAN.Service/JobKanban/LoginOrSetService.cs
@@ -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 ListGroupByDate(DateTime date)
+ {
+ return Context.Queryable().Where(it=>it.ScheduleDate == date)
+ .ToList();
+ }
}