zhuangpei-mesbackend/DOAN.Admin.WebApi/Controllers/MES/group/GroupPersonOfSkillMatrixController.cs

67 lines
1.9 KiB
C#
Raw Normal View History

2024-08-13 09:01:48 +08:00
using Microsoft.AspNetCore.Mvc;
using DOAN.Model.MES.group;
using DOAN.Model.MES.group.Dto;
using DOAN.Service.group.IService;
using DOAN.Admin.WebApi.Filters;
using Aliyun.OSS;
using DOAN.Service.MES.group.IService;
//创建时间2024-08-07
namespace DOAN.Admin.WebApi.Controllers
{
/// <summary>
/// 人员技能矩阵图
/// </summary>
[Verify]
[Route("mes/groupManagement/SkillMatrix")]
public class GroupPersonOfSkillMatrixController : BaseController
{
private readonly ISkillMatrixService _SkillMatrixService;
public GroupPersonOfSkillMatrixController(ISkillMatrixService SkillMatrixService)
{
_SkillMatrixService = SkillMatrixService;
}
//TODO 1 获取班组
[HttpGet("get_all_group")]
2024-08-13 09:56:17 +08:00
public IActionResult GetAllGroups(DateTime date)
2024-08-13 09:01:48 +08:00
{
2024-08-13 09:56:17 +08:00
var response = _SkillMatrixService.GetAllGroups(date.Date);
2024-08-13 09:01:48 +08:00
return SUCCESS(response);
}
//TODO 2 获取工艺流程
[HttpGet("get_all_route")]
public IActionResult GetAllRoutes()
{
var response = _SkillMatrixService.GetAllRoutes();
return SUCCESS(response);
}
2024-08-13 09:56:17 +08:00
//TODO 3 根据班组获取人员
[HttpGet("get_persons")]
public IActionResult GetPersonsList(string group_schedule_id) {
if (string.IsNullOrWhiteSpace(group_schedule_id)) { return SUCCESS(null); }
var response = _SkillMatrixService.GetPersonsList(group_schedule_id);
return SUCCESS(response);
}
//TODO 获取人员在某一工艺流程下技能的详情
[HttpPost("get_detail")]
public IActionResult GetSkillsDetailofPepole([FromBody] HandleSkillQueryDto parm)
{
var response = _SkillMatrixService.GetSkillsDetailofPepole(parm);
return SUCCESS(response);
}
2024-08-13 09:56:17 +08:00
2024-08-13 09:01:48 +08:00
}
}