班组管理重大更新:组变为基本数据

This commit is contained in:
qianhao.xu
2025-03-19 13:44:59 +08:00
parent afd800732e
commit a0ec3319b2
9 changed files with 49 additions and 31 deletions

View File

@@ -24,10 +24,17 @@ namespace DOAN.Admin.WebApi.Controllers
//TODO 1 获取班组
//[HttpGet("get_all_group")]
//public IActionResult GetAllGroups(DateTime date)
//{
// var response = _SkillMatrixService.GetAllGroups(date.Date);
// return SUCCESS(response);
//}
[HttpGet("get_all_group")]
public IActionResult GetAllGroups(DateTime date)
public IActionResult GetAllGroups()
{
var response = _SkillMatrixService.GetAllGroups(date.Date);
var response = _SkillMatrixService.GetAllGroups();
return SUCCESS(response);
}
@@ -44,11 +51,11 @@ namespace DOAN.Admin.WebApi.Controllers
//TODO 3 根据班组获取人员
[HttpGet("get_persons")]
public IActionResult GetPersonsList(string group_schedule_id) {
public IActionResult GetPersonsList(string group_code) {
if (string.IsNullOrWhiteSpace(group_schedule_id)) { return SUCCESS(null); }
if (string.IsNullOrWhiteSpace(group_code)) { return SUCCESS(null); }
var response = _SkillMatrixService.GetPersonsList(group_schedule_id);
var response = _SkillMatrixService.GetPersonsList(group_code);
return SUCCESS(response);
}