|
@@ -3,7 +3,6 @@ using Newtonsoft.Json.Serialization;
|
|
|
using OASystem.API.OAMethodLibs;
|
|
|
using OASystem.Domain.Dtos.Groups;
|
|
|
using OASystem.Domain.Entities.Groups;
|
|
|
-using OASystem.Domain.ViewModels.Group;
|
|
|
using OASystem.Domain.ViewModels.Groups;
|
|
|
using OASystem.Infrastructure.Repositories.Groups;
|
|
|
|
|
@@ -36,14 +35,14 @@ namespace OASystem.API.Controllers
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
- public async Task<IActionResult> PostSearchGrpSchedule(string paras)
|
|
|
+ public async Task<IActionResult> PostSearchGrpSchedule(JsonDtoBase _jsonDto)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(paras))
|
|
|
+ if (string.IsNullOrEmpty(_jsonDto.Paras))
|
|
|
{
|
|
|
return Ok(JsonView(false, "参数为空"));
|
|
|
}
|
|
|
|
|
|
- Grp_ScheduleDto _ScheduleDto = JsonConvert.DeserializeObject<Grp_ScheduleDto>(paras);
|
|
|
+ Grp_ScheduleDto _ScheduleDto = JsonConvert.DeserializeObject<Grp_ScheduleDto>(_jsonDto.Paras);
|
|
|
if (_ScheduleDto != null)
|
|
|
{
|
|
|
if (_ScheduleDto.SearchType == 2)//获取列表
|
|
@@ -314,7 +313,7 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
return Ok(JsonView(false, groupData.Msg));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
return Ok(JsonView(groupData.Data, groupData.Data.Count));
|
|
|
}
|
|
|
|
|
@@ -359,7 +358,7 @@ namespace OASystem.API.Controllers
|
|
|
return Ok(JsonView(groupData.Data));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
#endregion
|
|
|
}
|