|
@@ -34,11 +34,13 @@ namespace OASystem.API.Controllers
|
|
private readonly TaskAssignmentRepository _taskAssignmentRep;
|
|
private readonly TaskAssignmentRepository _taskAssignmentRep;
|
|
private readonly AirTicketResRepository _airTicketResRep;
|
|
private readonly AirTicketResRepository _airTicketResRep;
|
|
private readonly DecreasePaymentsRepository _decreasePaymentsRep;
|
|
private readonly DecreasePaymentsRepository _decreasePaymentsRep;
|
|
|
|
+ private readonly InvitationOfficialActivitiesRepository _InvitationOfficialActivitiesRep;
|
|
private readonly SqlSugarClient _sqlSugar;
|
|
private readonly SqlSugarClient _sqlSugar;
|
|
private string url;
|
|
private string url;
|
|
private string path;
|
|
private string path;
|
|
public GroupsController(IMapper mapper, SqlSugarClient sqlSugar, GrpScheduleRepository grpScheduleRep, DelegationInfoRepository groupRepository,
|
|
public GroupsController(IMapper mapper, SqlSugarClient sqlSugar, GrpScheduleRepository grpScheduleRep, DelegationInfoRepository groupRepository,
|
|
- TaskAssignmentRepository taskAssignmentRep, AirTicketResRepository airTicketResRep, DecreasePaymentsRepository decreasePaymentsRep)
|
|
|
|
|
|
+ TaskAssignmentRepository taskAssignmentRep, AirTicketResRepository airTicketResRep, DecreasePaymentsRepository decreasePaymentsRep,
|
|
|
|
+ InvitationOfficialActivitiesRepository InvitationOfficialActivitiesRep)
|
|
{
|
|
{
|
|
_mapper = mapper;
|
|
_mapper = mapper;
|
|
_grpScheduleRep = grpScheduleRep;
|
|
_grpScheduleRep = grpScheduleRep;
|
|
@@ -53,6 +55,7 @@ namespace OASystem.API.Controllers
|
|
System.IO.Directory.CreateDirectory(path);//不存在就创建文件夹
|
|
System.IO.Directory.CreateDirectory(path);//不存在就创建文件夹
|
|
}
|
|
}
|
|
_decreasePaymentsRep = decreasePaymentsRep;
|
|
_decreasePaymentsRep = decreasePaymentsRep;
|
|
|
|
+ _InvitationOfficialActivitiesRep = InvitationOfficialActivitiesRep;
|
|
}
|
|
}
|
|
|
|
|
|
#region 流程管控
|
|
#region 流程管控
|
|
@@ -1703,5 +1706,59 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
}
|
|
}
|
|
#endregion
|
|
#endregion
|
|
|
|
+
|
|
|
|
+ #region 商邀费用录入
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 根据团组Id查询商邀费用列表
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="dto"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpPost]
|
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
|
+ public async Task<IActionResult> InvitationOfficialActivitiesList(InvitationOfficialActivitiesListDto dto)
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ Result groupData = await _InvitationOfficialActivitiesRep.InvitationOfficialActivitiesList(dto);
|
|
|
|
+ if (groupData.Code != 0)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, groupData.Msg));
|
|
|
|
+ }
|
|
|
|
+ return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
|
|
+ }
|
|
|
|
+ catch (Exception ex)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
|
+ throw;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 根据商邀费用ID查询C表和商邀费用数据
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="dto"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpPost]
|
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
|
+ public async Task<IActionResult> InvitationOfficialActivitiesById(InvitationOfficialActivitiesByIdDto dto)
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ Result groupData = await _InvitationOfficialActivitiesRep.InvitationOfficialActivitiesById(dto);
|
|
|
|
+ if (groupData.Code != 0)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, groupData.Msg));
|
|
|
|
+ }
|
|
|
|
+ return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
|
|
+ }
|
|
|
|
+ catch (Exception ex)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
|
+ throw;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ #endregion
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|