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 { /// /// 人员技能矩阵图 /// [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")] public IActionResult GetAllGroups(DateTime date) { var response = _SkillMatrixService.GetAllGroups(date.Date); return SUCCESS(response); } //TODO 2 获取工艺流程 [HttpGet("get_all_route")] public IActionResult GetAllRoutes() { var response = _SkillMatrixService.GetAllRoutes(); return SUCCESS(response); } //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); } } }