|
@@ -10494,6 +10494,36 @@ WHERE
|
|
|
|
|
|
#region 团组经理模块 出入境费用-草稿 移动端(Android/IOS)
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 团组模块 - 出入境费用-草稿-移动端 - 草稿名称数据Data
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> EnterExitCostDraftMobileNameData(EnterExitCostDraftMobileNameDataDto dto)
|
|
|
+ {
|
|
|
+ if (!_portTypeData.Contains(dto.PortType)) return Ok(JsonView(false, MsgTips.Port));
|
|
|
+ if (dto.CurrUserId < 1) return Ok(JsonView(false, MsgTips.UserId));
|
|
|
+
|
|
|
+ RefAsync<int> total = 0;
|
|
|
+
|
|
|
+ var data = await _sqlSugar.Queryable<Grp_EnterExitCostDraft>()
|
|
|
+ .Where(x => x.IsDel == 0 && !string.IsNullOrEmpty(x.DraftName))
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.DraftName), x => x.DraftName.Contains(dto.DraftName))
|
|
|
+ .Select(x => new
|
|
|
+ {
|
|
|
+ Id = x.Id,
|
|
|
+ DraftName = x.DraftName,
|
|
|
+ IsViewOrEdit = SqlFunc.Subqueryable<Grp_EnterExitCostDraftPermission>()
|
|
|
+ .Where(x1 => x1.IsDel == 0 && x1.Permission == 1 && x1.DraftId == x.Id && x1.UserId == dto.CurrUserId)
|
|
|
+ .Any()
|
|
|
+ })
|
|
|
+ .OrderByDescending(x => x.Id)
|
|
|
+ .ToPageListAsync(dto.PageIndex, dto.PageSize, total);
|
|
|
+
|
|
|
+ return Ok(JsonView(true, "查询成功!", data, total));
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 出入境费用-草稿 移动端
|
|
|
/// 获取币种基础数据(含逻辑处理)
|