|
@@ -10147,13 +10147,13 @@ namespace OASystem.API.Controllers
|
|
|
public async Task<IActionResult> PostHotelReservationsCreateVoucher(HotelReservationsCreateVoucherDto _dto)
|
|
|
{
|
|
|
#region 参数验证
|
|
|
- if (_dto.UserId < 1) return Ok(JsonView(false, "员工Id为空"));
|
|
|
+ if (_dto.UserId < 1) return Ok(JsonView(StatusCodes.Status400BadRequest, "员工Id为空", ""));
|
|
|
if (_dto.PageId < 1) _dto.PageId = 28; //酒店预定Id
|
|
|
- if (_dto.DiId < 1) return Ok(JsonView(false, "团组Id为空"));
|
|
|
+ if (_dto.DiId < 1) return Ok(JsonView(StatusCodes.Status400BadRequest, "团组Id为空", ""));
|
|
|
|
|
|
#region 团组操作权限验证 76 酒店预定模块
|
|
|
var groupAuthView = await GeneralMethod.PostGroupOperationAuth(_dto.DiId, _dto.UserId, 76);
|
|
|
- if (groupAuthView.Code != 0) return Ok(JsonView(false, groupAuthView.Msg));
|
|
|
+ if (groupAuthView.Code != 0) return Ok(JsonView(StatusCodes.Status400BadRequest, groupAuthView.Msg, ""));
|
|
|
#endregion
|
|
|
|
|
|
PageFunAuthViewBase pageFunAuthView = new PageFunAuthViewBase();
|
|
@@ -10170,7 +10170,7 @@ namespace OASystem.API.Controllers
|
|
|
List<Grp_HotelReservations> hrDtas = await _sqlSugar.Queryable<Grp_HotelReservations>().Where(it => it.IsDel == 0 && it.DiId == _dto.DiId).ToListAsync();
|
|
|
|
|
|
//判断数据是否完整
|
|
|
- if (hrDtas.Count < 1) return Ok(JsonView(false, "请先录入酒店预订信息!"));
|
|
|
+ if (hrDtas.Count < 1) return Ok(JsonView(StatusCodes.Status400BadRequest, "请先录入酒店预订信息!", ""));
|
|
|
|
|
|
hrDtas = hrDtas.OrderBy(it => it.CheckInDate).ToList();
|
|
|
string strFileName = "HotelStatement/";
|