|
@@ -43,9 +43,12 @@ namespace OASystem.API.Controllers
|
|
private readonly SqlSugarClient _sqlSugar;
|
|
private readonly SqlSugarClient _sqlSugar;
|
|
private string url;
|
|
private string url;
|
|
private string path;
|
|
private string path;
|
|
|
|
+
|
|
|
|
+ private readonly EnterExitCostRepository _enterExitCostRep;
|
|
|
|
+
|
|
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, DelegationEnDataRepository delegationEnDataRep)
|
|
|
|
|
|
+ InvitationOfficialActivitiesRepository InvitationOfficialActivitiesRep, DelegationEnDataRepository delegationEnDataRep, EnterExitCostRepository enterExitCostRep)
|
|
{
|
|
{
|
|
_mapper = mapper;
|
|
_mapper = mapper;
|
|
_grpScheduleRep = grpScheduleRep;
|
|
_grpScheduleRep = grpScheduleRep;
|
|
@@ -62,6 +65,7 @@ namespace OASystem.API.Controllers
|
|
_decreasePaymentsRep = decreasePaymentsRep;
|
|
_decreasePaymentsRep = decreasePaymentsRep;
|
|
_InvitationOfficialActivitiesRep = InvitationOfficialActivitiesRep;
|
|
_InvitationOfficialActivitiesRep = InvitationOfficialActivitiesRep;
|
|
_delegationEnDataRep = delegationEnDataRep;
|
|
_delegationEnDataRep = delegationEnDataRep;
|
|
|
|
+ _enterExitCostRep = enterExitCostRep;
|
|
}
|
|
}
|
|
|
|
|
|
#region 流程管控
|
|
#region 流程管控
|
|
@@ -469,8 +473,6 @@ namespace OASystem.API.Controllers
|
|
}
|
|
}
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
#region 团组费用审核
|
|
#region 团组费用审核
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -2128,5 +2130,121 @@ namespace OASystem.API.Controllers
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endregion
|
|
#endregion
|
|
|
|
+
|
|
|
|
+ #region 团组经理模块 出入境费用
|
|
|
|
+ ///// <summary>
|
|
|
|
+ ///// 团组模块 - 出入境费用
|
|
|
|
+ ///// </summary>
|
|
|
|
+ ///// <returns></returns>
|
|
|
|
+ //[HttpPost]
|
|
|
|
+ //[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
|
+ //public async Task<IActionResult> SetEnterExitCostCurrencyChange()
|
|
|
|
+ //{
|
|
|
|
+ // try
|
|
|
|
+ // {
|
|
|
|
+ // var data = await _enterExitCostRep.SetEnterExitCostCurrencyChange();
|
|
|
|
+
|
|
|
|
+ // if (data.Code != 0)
|
|
|
|
+ // {
|
|
|
|
+ // return Ok(JsonView(false, data.Msg));
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ // return Ok(JsonView(true, "查询成功!"));
|
|
|
|
+ // }
|
|
|
|
+ // catch (Exception ex)
|
|
|
|
+ // {
|
|
|
|
+ // return Ok(JsonView(false, ex.Message));
|
|
|
|
+ // throw;
|
|
|
|
+ // }
|
|
|
|
+ //}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 团组模块 - 出入境费用 - 基础数据源(团组名称/币种类型/出入境国家费用标准)
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpPost]
|
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
|
+ public async Task<IActionResult> GetEnterExitCostDataSource(PortDtoBase dto)
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ var groupNameData = await _groupRepository.GetGroupNameList(new GroupNameDto { PortType = dto.PortType });
|
|
|
|
+
|
|
|
|
+ string currencySql = string.Format("Select * From Sys_SetData Where STid = 66 And IsDel = 0");
|
|
|
|
+ var currencyData = await _sqlSugar.SqlQueryable<SetDataInfoView>(currencySql).ToListAsync();
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ string nationalTravelFeeSql = string.Format(@"Select ssd.Name as CurrencyCode, ssd.Remark as CurrencyName,su.CnName as LastUpdateUserName,gntf.* From Grp_NationalTravelFee gntf
|
|
|
|
+ Left Join Sys_SetData ssd On ssd.STid = 66 And gntf.Currency = ssd.Id
|
|
|
|
+ Left Join Sys_Users su On gntf.LastUpdateUserId = su.Id
|
|
|
|
+ Where gntf.Isdel = 0");
|
|
|
|
+ var nationalTravelFeeData = await _sqlSugar.SqlQueryable<NationalTravelFeeInfoView>(nationalTravelFeeSql).ToListAsync();
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ return Ok(JsonView(true, "查询成功!",new {
|
|
|
|
+ GroupNameData = groupNameData.Data,
|
|
|
|
+ CurrencyData = currencyData,
|
|
|
|
+ NationalTravelFeeData = nationalTravelFeeData
|
|
|
|
+ }));
|
|
|
|
+ }
|
|
|
|
+ catch (Exception ex)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, ex.Message));
|
|
|
|
+ throw;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 团组模块 - 出入境费用 - Info
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpPost]
|
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
|
+ public async Task<IActionResult> GetEnterExitCostInfobyDiId(EnterExitCostInfobyDiIdDto dto)
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ var data = await _enterExitCostRep.GetEnterExitCostInfoByDiId(dto);
|
|
|
|
+
|
|
|
|
+ if (data.Code != 0)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, data.Msg));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return Ok(JsonView(true, "查询成功!", data.Data));
|
|
|
|
+ }
|
|
|
|
+ catch (Exception ex)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, ex.Message));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 团组模块 - 出入境费用 - Add And Update
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpPost]
|
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
|
+ public async Task<IActionResult> PostEnterExitCostOperate(EnterExitCostOperateDto dto)
|
|
|
|
+ {
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ var data = await _enterExitCostRep.PostEnterExitCostOperate(dto);
|
|
|
|
+
|
|
|
|
+ if (data.Code != 0)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, data.Msg));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return Ok(JsonView(true, data.Msg, data.Data));
|
|
|
|
+ }
|
|
|
|
+ catch (Exception ex)
|
|
|
|
+ {
|
|
|
|
+ return Ok(JsonView(false, ex.Message));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ #endregion
|
|
}
|
|
}
|
|
}
|
|
}
|