|
@@ -23,6 +23,7 @@ using OASystem.Domain.Dtos.Groups;
|
|
|
using OASystem.Domain.Entities.Customer;
|
|
|
using OASystem.Domain.Entities.Financial;
|
|
|
using OASystem.Domain.Entities.Groups;
|
|
|
+using OASystem.Domain.ViewModels;
|
|
|
using OASystem.Domain.ViewModels.Groups;
|
|
|
using OASystem.Domain.ViewModels.Statistics;
|
|
|
using OASystem.Infrastructure.Repositories.Financial;
|
|
@@ -98,6 +99,7 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
private readonly VisaCommissionRepository _visaCommissionRep;
|
|
|
private readonly ForeignReceivablesRepository _ffrRep; //对外收款账单仓库
|
|
|
+ private readonly OpinionaireRepository _opinionaireRep; //对外收款账单仓库
|
|
|
|
|
|
public GroupsController(ILogger<GroupsController> logger, IMapper mapper, SqlSugarClient sqlSugar, GrpScheduleRepository grpScheduleRep, DelegationInfoRepository groupRepository,
|
|
|
TaskAssignmentRepository taskAssignmentRep, AirTicketResRepository airTicketResRep, DecreasePaymentsRepository decreasePaymentsRep,
|
|
@@ -107,7 +109,8 @@ namespace OASystem.API.Controllers
|
|
|
GroupCostParameterRepository GroupCostParameterRepository, HotelPriceRepository hotelPriceRep, CustomersRepository customersRep, SetDataRepository setDataRep,
|
|
|
TourClientListRepository tourClientListRep, TeamRateRepository teamRateRep, IHubContext<ChatHub, IChatClient> hubContext, UsersRepository usersRep, IJuHeApiService juHeApi,
|
|
|
InvertedListRepository invertedListRep, VisaFeeInfoRepository visaFeeInfoRep, TicketBlackCodeRepository ticketBlackCodeRep, HotelInquiryRepository hotelInquiryRep,
|
|
|
- ThreeCodeRepository threeCodeRepository, FeeAuditRepository feeAuditRep, VisaCommissionRepository visaCommissionRep, ForeignReceivablesRepository ffrRep)
|
|
|
+ ThreeCodeRepository threeCodeRepository, FeeAuditRepository feeAuditRep, VisaCommissionRepository visaCommissionRep, ForeignReceivablesRepository ffrRep,
|
|
|
+ OpinionaireRepository opinionaireRep)
|
|
|
{
|
|
|
_logger = logger;
|
|
|
_mapper = mapper;
|
|
@@ -150,6 +153,7 @@ namespace OASystem.API.Controllers
|
|
|
_feeAuditRep = feeAuditRep;
|
|
|
_visaCommissionRep = visaCommissionRep;
|
|
|
_ffrRep = ffrRep;
|
|
|
+ _opinionaireRep = opinionaireRep;
|
|
|
}
|
|
|
|
|
|
#region 流程管控
|
|
@@ -1833,6 +1837,20 @@ FROM
|
|
|
else _detail.CardType = initDatas.Find(it => it.Id == entity.CTDId)?.Name ?? "-";
|
|
|
|
|
|
|
|
|
+
|
|
|
+ //处理金额
|
|
|
+ if (entity.CTable == 1015)
|
|
|
+ {
|
|
|
+ var czInfo = _GroupExtraCosts.Find(x => entity.CId == x.Id);
|
|
|
+
|
|
|
+ if (czInfo != null)
|
|
|
+ {
|
|
|
+ entity.PayMoney = czInfo.Price * czInfo.PriceCount;
|
|
|
+ entity.RMBPrice = czInfo.Price * czInfo.PriceCount * entity.DayRate;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
/*
|
|
|
* 应付款金额
|
|
|
*/
|
|
@@ -4880,7 +4898,8 @@ FROM
|
|
|
string md5Sign = GeneralMethod.Encrypt($"{sign}&fileName={fileUrl}");
|
|
|
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,"出入境费用");
|
|
|
|
|
|
return Ok(JsonView(true, data.Msg, data.Data));
|
|
|
}
|
|
@@ -15215,6 +15234,60 @@ And (UnitName != '' Or UnitName != null) {sqlWhere}");
|
|
|
return Ok(jw);
|
|
|
}
|
|
|
|
|
|
+ #endregion
|
|
|
+
|
|
|
+
|
|
|
+ #region 团组接待意见调查 Grp_ReceptionOpinionSurvey
|
|
|
+ /// <summary>
|
|
|
+ /// 团组接待意见调查 - 信息管理
|
|
|
+ /// 基础数据(团组)
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpGet]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> OpinionaireInit()
|
|
|
+ {
|
|
|
+ var groupData = await _groupRepository.Query(x => x.IsDel == 0)
|
|
|
+ .Select(x => new
|
|
|
+ {
|
|
|
+ x.Id,
|
|
|
+ GroupName = $"[{x.VisitDate.ToString("yyyy-MM-dd")}]{x.TeamName}"
|
|
|
+ })
|
|
|
+ .OrderByDescending(x => x.Id)
|
|
|
+ .ToListAsync();
|
|
|
+
|
|
|
+ return Ok(JsonView(groupData, groupData.Count));
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 团组接待意见调查 - 信息管理
|
|
|
+ /// 信息列表
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="groupId"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpGet("{groupId}")]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> OpinionaireManageList(int groupId)
|
|
|
+ {
|
|
|
+ if (groupId < 1) Ok(JsonView(false,"请传入有效的diId"));
|
|
|
+
|
|
|
+ var data = await _opinionaireRep.Query(x => x.IsDel == 0 && x.DiId == groupId)
|
|
|
+ .LeftJoin<Sys_Users>((x,u) => x.CreateUserId == u.Id)
|
|
|
+ .Select((x, u) => new
|
|
|
+ {
|
|
|
+ x.Id,
|
|
|
+ x.TourGuideName,
|
|
|
+ x.CityName,
|
|
|
+ CreateUserName = u.CnName,
|
|
|
+ x.CreateTime
|
|
|
+ })
|
|
|
+ .OrderByDescending(x => x.Id)
|
|
|
+ .ToListAsync();
|
|
|
+ return Ok(JsonView(data));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
// /// <summary>
|