|
@@ -563,6 +563,35 @@ namespace OASystem.API.Controllers
|
|
|
throw;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///根据ID查询三字码信息
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ public IActionResult QuerySingleThreeCode(QuerySingleThreeCode dto)
|
|
|
+ {
|
|
|
+ var jw = JsonView(false);
|
|
|
+ var single = _sqlSugar.Queryable<Res_ThreeCode>().First(x => x.Id == dto.ID && x.IsDel == 0);
|
|
|
+ if (single != null)
|
|
|
+ {
|
|
|
+ jw = JsonView(true, "获取成功!", new
|
|
|
+ {
|
|
|
+ single.Three,
|
|
|
+ Four = single.Four?.Trim(),
|
|
|
+ single.AirPort,
|
|
|
+ single.AirPort_En,
|
|
|
+ single.City, single.Country,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ jw.Msg = "暂无!";
|
|
|
+ }
|
|
|
+
|
|
|
+ return Ok(jw);
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
#region 代理出票合作方资料
|