班组管理重大更新:组变为基本数据
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user