班组管理重大更新:组变为基本数据
This commit is contained in:
@@ -34,7 +34,7 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
// [ActionPermissionFilter(Permission = "business:groupschedule:list")]
|
||||
//[ActionPermissionFilter(Permission = "business:groupschedule:list")]
|
||||
public IActionResult QueryGroupSchedule([FromQuery] GroupScheduleQueryDto parm)
|
||||
{
|
||||
var response = _GroupScheduleService.GetList(parm);
|
||||
@@ -187,21 +187,19 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
{
|
||||
return SUCCESS(null);
|
||||
}
|
||||
|
||||
var response = _GroupScheduleService.SearchPerson_group_bind_No(parm);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
//TODO 班组添加人员
|
||||
[HttpGet("add_person")]
|
||||
public IActionResult GroupAddPerson(string group_schedule_id, string person_id)
|
||||
public IActionResult GroupAddPerson(string group_code, string person_id)
|
||||
{
|
||||
if (string.IsNullOrEmpty(group_schedule_id)) { return SUCCESS(null); }
|
||||
if (string.IsNullOrEmpty(group_code)) { return SUCCESS(null); }
|
||||
if (string.IsNullOrEmpty(person_id)) { return SUCCESS(null); }
|
||||
var response = _GroupScheduleService
|
||||
.GroupAddPerson(group_schedule_id, person_id, HttpContext.GetName());
|
||||
.GroupAddPerson(group_code, person_id, HttpContext.GetName());
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
@@ -209,14 +207,14 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
|
||||
//TODO 班组删除人员
|
||||
[HttpGet("delete_person")]
|
||||
public IActionResult GroupRemovePerson(string group_schedule_id, string person_id)
|
||||
public IActionResult GroupRemovePerson(string group_code, string person_id)
|
||||
{
|
||||
if (string.IsNullOrEmpty(group_schedule_id)) { return SUCCESS(null); }
|
||||
if (string.IsNullOrEmpty(group_code)) { return SUCCESS(null); }
|
||||
if (string.IsNullOrEmpty(person_id)) { return SUCCESS(null); }
|
||||
|
||||
|
||||
var response = _GroupScheduleService
|
||||
.GroupRemovePerson(group_schedule_id, person_id);
|
||||
.GroupRemovePerson(group_code, person_id);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user