|
@@ -108,39 +108,39 @@ namespace OASystem.API.Controllers
|
|
|
private readonly OpinionaireRepository _opinionaireRep; //对外收款账单仓库
|
|
|
|
|
|
public GroupsController(
|
|
|
- ILogger<GroupsController> logger,
|
|
|
+ ILogger<GroupsController> logger,
|
|
|
IMapper mapper,
|
|
|
IHubContext<ChatHub, IChatClient> hubContext,
|
|
|
- SqlSugarClient sqlSugar,
|
|
|
- GrpScheduleRepository grpScheduleRep,
|
|
|
+ SqlSugarClient sqlSugar,
|
|
|
+ GrpScheduleRepository grpScheduleRep,
|
|
|
DelegationInfoRepository groupRepository,
|
|
|
- TaskAssignmentRepository taskAssignmentRep,
|
|
|
- AirTicketResRepository airTicketResRep,
|
|
|
+ TaskAssignmentRepository taskAssignmentRep,
|
|
|
+ AirTicketResRepository airTicketResRep,
|
|
|
DecreasePaymentsRepository decreasePaymentsRep,
|
|
|
- InvitationOfficialActivitiesRepository InvitationOfficialActivitiesRep,
|
|
|
- DelegationEnDataRepository delegationEnDataRep,
|
|
|
- EnterExitCostRepository enterExitCostRep,
|
|
|
+ InvitationOfficialActivitiesRepository InvitationOfficialActivitiesRep,
|
|
|
+ DelegationEnDataRepository delegationEnDataRep,
|
|
|
+ EnterExitCostRepository enterExitCostRep,
|
|
|
DelegationVisaRepository delegationVisaRep,
|
|
|
- MessageRepository message,
|
|
|
- VisaPriceRepository visaPriceRep,
|
|
|
+ MessageRepository message,
|
|
|
+ VisaPriceRepository visaPriceRep,
|
|
|
CarTouristGuideGroundRepository carTouristGuideGroundRep,
|
|
|
- CheckBoxsRepository checkBoxs,
|
|
|
- GroupCostRepository GroupCostRepository,
|
|
|
+ CheckBoxsRepository checkBoxs,
|
|
|
+ GroupCostRepository GroupCostRepository,
|
|
|
CostTypeHotelNumberRepository CostTypeHotelNumberRepository,
|
|
|
GroupCostParameterRepository GroupCostParameterRepository,
|
|
|
- HotelPriceRepository hotelPriceRep,
|
|
|
- CustomersRepository customersRep,
|
|
|
+ HotelPriceRepository hotelPriceRep,
|
|
|
+ CustomersRepository customersRep,
|
|
|
SetDataRepository setDataRep,
|
|
|
- TourClientListRepository tourClientListRep,
|
|
|
+ TourClientListRepository tourClientListRep,
|
|
|
TeamRateRepository teamRateRep,
|
|
|
UsersRepository usersRep, IJuHeApiService juHeApi,
|
|
|
- InvertedListRepository invertedListRep,
|
|
|
- VisaFeeInfoRepository visaFeeInfoRep,
|
|
|
- TicketBlackCodeRepository ticketBlackCodeRep,
|
|
|
+ InvertedListRepository invertedListRep,
|
|
|
+ VisaFeeInfoRepository visaFeeInfoRep,
|
|
|
+ TicketBlackCodeRepository ticketBlackCodeRep,
|
|
|
HotelInquiryRepository hotelInquiryRep,
|
|
|
- ThreeCodeRepository threeCodeRepository,
|
|
|
- FeeAuditRepository feeAuditRep,
|
|
|
- VisaCommissionRepository visaCommissionRep,
|
|
|
+ ThreeCodeRepository threeCodeRepository,
|
|
|
+ FeeAuditRepository feeAuditRep,
|
|
|
+ VisaCommissionRepository visaCommissionRep,
|
|
|
ForeignReceivablesRepository ffrRep,
|
|
|
OpinionaireRepository opinionaireRep
|
|
|
)
|
|
@@ -820,7 +820,7 @@ namespace OASystem.API.Controllers
|
|
|
await GeneralMethod.PostGroupAuthAddInit(dto.UserId, diId);
|
|
|
|
|
|
//消息提示 王鸽 主管号 2024-10-21 新增LZ UID
|
|
|
- List<int> _managerIds = new List<int>() { 21,22, 32 };
|
|
|
+ List<int> _managerIds = new List<int>() { 21, 22, 32 };
|
|
|
var userIds = _usersRep._sqlSugar.Queryable<Sys_Users>().Where(it => it.IsDel == 0 && _managerIds.Contains(it.JobPostId)).Select(it => it.Id).ToList();
|
|
|
if (userIds.Count > 0)
|
|
|
{
|
|
@@ -1881,7 +1881,7 @@ FROM
|
|
|
entity.PayMoney = czInfo.Price * czInfo.PriceCount;
|
|
|
entity.RMBPrice = czInfo.Price * czInfo.PriceCount * entity.DayRate;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/*
|
|
@@ -3806,7 +3806,7 @@ FROM
|
|
|
foreach (DataRow item in dt.Rows)
|
|
|
{
|
|
|
var otaOrderNo = item["OTAOrderNo"].ToString();
|
|
|
- var oaData = oaDatas.Find(x => !string.IsNullOrEmpty(x.OTAOrderNo) && x.OTAOrderNo.Contains(otaOrderNo));
|
|
|
+ var oaData = oaDatas.Find(x => !string.IsNullOrEmpty(x.OTAOrderNo) && x.OTAOrderNo.Contains(otaOrderNo));
|
|
|
if (oaData == null) continue;
|
|
|
|
|
|
item["GroupName"] = oaData.TeamName;
|
|
@@ -3999,7 +3999,7 @@ FROM
|
|
|
catch (Exception)
|
|
|
{
|
|
|
|
|
|
- files = new List<string>() { info.Attachment }.ToArray();
|
|
|
+ files = new List<string>() { info.Attachment }.ToArray();
|
|
|
}
|
|
|
}
|
|
|
if (files.Length > 0)
|
|
@@ -4009,7 +4009,7 @@ FROM
|
|
|
string filePath2 = string.Empty;
|
|
|
if (files1.Length > 0)
|
|
|
{
|
|
|
- filePath2 = JsonConvert.SerializeObject( files1);
|
|
|
+ filePath2 = JsonConvert.SerializeObject(files1);
|
|
|
}
|
|
|
|
|
|
id = await _sqlSugar.Updateable<Grp_InvitationOfficialActivities>()
|
|
@@ -4018,16 +4018,16 @@ FROM
|
|
|
.ExecuteCommandAsync();
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
if (id != 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(true, "成功!"));
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "失败!"));
|
|
|
+ {
|
|
|
+ return Ok(JsonView(true, "成功!"));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "失败!"));
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
return Ok(JsonView(false, "程序错误!"));
|
|
@@ -4175,7 +4175,7 @@ FROM
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return Ok(JsonView(new {url = @$"{AppSettingsHelper.Get("OfficeBaseUrl")}{AppSettingsHelper.Get("GrpFileFtpPath")}/商邀相关文件/{zipFilePathGuid}" }));
|
|
|
+ return Ok(JsonView(new { url = @$"{AppSettingsHelper.Get("OfficeBaseUrl")}{AppSettingsHelper.Get("GrpFileFtpPath")}/商邀相关文件/{zipFilePathGuid}" }));
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -5231,7 +5231,7 @@ FROM
|
|
|
string url = string.Format("http://oa.pan-american-intl.com:4399/#/Sankunginfo?sign={0}&fileName={1}", sign, fileUrl);
|
|
|
await AppNoticeLibrary.SendUserMsg_GroupShare_ToGM(dto.DiId, new List<string>() { "208", "233", "21" }, dto.UserId, url);
|
|
|
//汇率信息记录
|
|
|
- await GeneralMethod.RateRecordSave(dto.UserId,sign,"出入境费用");
|
|
|
+ await GeneralMethod.RateRecordSave(dto.UserId, sign, "出入境费用");
|
|
|
|
|
|
return Ok(JsonView(true, data.Msg, data.Data));
|
|
|
}
|
|
@@ -5300,7 +5300,7 @@ FROM
|
|
|
var _DayAndCosts = _sqlSugar.Queryable<Grp_DayAndCost>().Where(it => it.IsDel == 0 && it.DiId == dto.DiId).ToList();
|
|
|
if (_EnterExitCosts == null)
|
|
|
{
|
|
|
- return Ok(JsonView(400, "该团组未填写出入境费用;",""));
|
|
|
+ return Ok(JsonView(400, "该团组未填写出入境费用;", ""));
|
|
|
}
|
|
|
|
|
|
//数据源
|
|
@@ -5673,7 +5673,7 @@ FROM
|
|
|
string url = AppSettingsHelper.Get("WordBaseUrl") + "Office/Word/EnterExitCost/File/" + strFileName;
|
|
|
|
|
|
if (dto.PortType == 1 || dto.PortType == 3) return Ok(JsonView(true, "成功", new { Url = url }));
|
|
|
- else if (dto.PortType == 2 ) return Ok(JsonView(true, "成功", url));
|
|
|
+ else if (dto.PortType == 2) return Ok(JsonView(true, "成功", url));
|
|
|
}
|
|
|
else if (dto.SubTypeId == 1006)//1006(因公出国(境)经费测算明细表)
|
|
|
{
|
|
@@ -5897,7 +5897,7 @@ FROM
|
|
|
string url = AppSettingsHelper.Get("WordBaseUrl") + "Office/Word/EnterExitCost/File/" + strFileName;
|
|
|
|
|
|
if (dto.PortType == 1 || dto.PortType == 3) return Ok(JsonView(true, "成功", new { Url = url }));
|
|
|
- else if (dto.PortType == 2 ) return Ok(JsonView(true, "成功", url));
|
|
|
+ else if (dto.PortType == 2) return Ok(JsonView(true, "成功", url));
|
|
|
}
|
|
|
else if (dto.SubTypeId == 1007) //1007(四川省商务厅出国经费财政先行审核表)
|
|
|
{
|
|
@@ -6578,7 +6578,7 @@ FROM
|
|
|
{
|
|
|
if (DeleClientList.Count < 1)
|
|
|
{
|
|
|
- return Ok(JsonView(false, "团组成员暂未录入!!!",""));
|
|
|
+ return Ok(JsonView(false, "团组成员暂未录入!!!", ""));
|
|
|
}
|
|
|
|
|
|
//获取模板
|
|
@@ -11057,6 +11057,7 @@ ORDER by gctggrc.id DESC
|
|
|
else if (_dto.Id > 0) content = $"[更新-酒店费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
|
|
|
await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
+ await GeneralMethod.iOS_PushNotifications("051", "费用审核", "", content);
|
|
|
|
|
|
}
|
|
|
catch (Exception ex)
|
|
@@ -12264,7 +12265,7 @@ ORDER by gctggrc.id DESC
|
|
|
if (hrDtas.Count < 1) return Ok(JsonView(StatusCodes.Status400BadRequest, "酒店预订费用未录入,不支持预定成本Excel导出", ""));
|
|
|
var hotelSubData = _sqlSugar.Queryable<Grp_HotelReservationsContent>().Where(it => it.IsDel == 0 && it.DiId == _dto.DiId).ToList();
|
|
|
var ccpData = _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(it => it.IsDel == 0 && it.DIId == _dto.DiId && it.CTable == 76).ToList();
|
|
|
-
|
|
|
+
|
|
|
var _GroupCostParameter = _sqlSugar.Queryable<Grp_GroupCostParameter>().Where(it => it.IsDel == 0 && it.DiId == _dto.DiId).First();
|
|
|
//if (_GroupCostParameter == null) return Ok(JsonView(StatusCodes.Status400BadRequest, "团组成本费用未录入,不支持预定成本Excel导出", ""));
|
|
|
if (_GroupCostParameter == null)
|
|
@@ -12474,7 +12475,7 @@ ORDER by gctggrc.id DESC
|
|
|
var userInfo = _sqlSugar.Queryable<Sys_Users>().Where(it => it.Id == hrDtas[0].CreateUserId).First();
|
|
|
designer.SetDataSource("TourNo", groupInfo.TourCode);
|
|
|
|
|
|
- var rateDatas1 = rateDatas.Distinct();
|
|
|
+ var rateDatas1 = rateDatas.Distinct();
|
|
|
var rateStr = string.Empty;
|
|
|
foreach (var item in rateDatas1)
|
|
|
{
|
|
@@ -15943,7 +15944,7 @@ And (UnitName != '' Or UnitName != null) {sqlWhere}");
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> OpinionaireManageList(int groupId)
|
|
|
{
|
|
|
- if (groupId < 1) Ok(JsonView(false,"请传入有效的diId"));
|
|
|
+ if (groupId < 1) Ok(JsonView(false, "请传入有效的diId"));
|
|
|
|
|
|
var data = await _opinionaireRep.Query(x => x.DiId == groupId)
|
|
|
.Select(x => new
|
|
@@ -15997,7 +15998,7 @@ And (UnitName != '' Or UnitName != null) {sqlWhere}");
|
|
|
var upd = await _opinionaireRep._sqlSugar
|
|
|
.Updateable(updData)
|
|
|
.UpdateColumns(x => new { x.CityName, x.TourGuideName })
|
|
|
- .WhereColumns(x =>new{ x.Id})
|
|
|
+ .WhereColumns(x => new { x.Id })
|
|
|
.ExecuteCommandAsync();
|
|
|
}
|
|
|
_opinionaireRep.CommitTran();
|