Files
kunshan-bzfm-mes-backend/DOAN.Admin.WebApi/Controllers/MES/Group/GroupPersonOfSkillMatrixController.cs

74 lines
2.1 KiB
C#
Raw Normal View History

2025-03-12 15:32:38 +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")]
//public IActionResult GetAllGroups(DateTime date)
//{
// var response = _SkillMatrixService.GetAllGroups(date.Date);
// return SUCCESS(response);
//}
2025-03-12 15:32:38 +08:00
[HttpGet("get_all_group")]
public IActionResult GetAllGroups()
2025-03-12 15:32:38 +08:00
{
var response = _SkillMatrixService.GetAllGroups();
2025-03-12 15:32:38 +08:00
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_code) {
2025-03-12 15:32:38 +08:00
if (string.IsNullOrWhiteSpace(group_code)) { return SUCCESS(null); }
2025-03-12 15:32:38 +08:00
var response = _SkillMatrixService.GetPersonsList(group_code);
2025-03-12 15:32:38 +08:00
return SUCCESS(response);
}
//TODO 获取人员在某一工艺流程下技能的详情
[HttpPost("get_detail")]
public IActionResult GetSkillsDetailofPepole([FromBody] HandleSkillQueryDto parm)
{
var response = _SkillMatrixService.GetSkillsDetailofPepole(parm);
return SUCCESS(response);
}
}
}