feat 查询档案人员所在的人员分组
This commit is contained in:
@@ -56,6 +56,17 @@ public class GainfoGroupsController : ControllerBase
|
||||
return await _gainfoGroupService.GetGainfosByGroupAsync(code);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据userCode获取分配的分组
|
||||
/// </summary>
|
||||
/// <param name="userCode"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("groups")]
|
||||
public async Task<List<GainfoGroupTreeResponse>> GetGainfoGroupsByUserCodeAsync(string userCode)
|
||||
{
|
||||
return await _gainfoGroupService.GetGainfoGroupsByUserCodeAsync(userCode);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分配人员
|
||||
/// </summary>
|
||||
@@ -69,4 +80,4 @@ public class GainfoGroupsController : ControllerBase
|
||||
{
|
||||
await _gainfoGroupService.AssignGainfosAsync(request);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user