|
@@ -23,11 +23,13 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
{
|
|
|
private readonly IMapper _mapper;
|
|
|
private readonly TeamRateRepository _teamRateRep;
|
|
|
- public DecreasePaymentsRepository(SqlSugarClient sqlSugar, IMapper mapper, TeamRateRepository teamRateRep)
|
|
|
+ private readonly SetDataRepository _setDataRepository;
|
|
|
+ public DecreasePaymentsRepository(SqlSugarClient sqlSugar, IMapper mapper, TeamRateRepository teamRateRep, SetDataRepository setDataRepository )
|
|
|
: base(sqlSugar)
|
|
|
{
|
|
|
this._mapper = mapper;
|
|
|
_teamRateRep = teamRateRep;
|
|
|
+ this._setDataRepository = setDataRepository;
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 根据团组Id查询数据
|
|
@@ -159,7 +161,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
grp_Decrease.FeeTotal = grp_Decrease.Price * grp_Decrease.Price;
|
|
|
}
|
|
|
|
|
|
- var teamRates = await _teamRateRep.PostGroupTeamRateItemByDiIdAndCTableId(1, dto.DiId, 98);
|
|
|
+ List<TeamRateDescAddCurrencyIdView> teamRates = await _teamRateRep.PostGroupTeamRateItemByDiIdAndCTableId(1, dto.DiId, 98);
|
|
|
if (dto.Status == 1)//添加
|
|
|
{
|
|
|
string selectSql = string.Format(@"select * from Grp_DecreasePayments where PriceName='{0}' and IsDel={1} and DiId={2}"
|
|
@@ -207,7 +209,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
C.IsAuditMF = 0;
|
|
|
C.AuditMFOperate = 0;
|
|
|
C.AuditMFDate = "";
|
|
|
- C.IsAuditGM = 0;
|
|
|
+ C.IsAuditGM = auto ? 3 : 0;
|
|
|
C.AuditGMOperate = 21;
|
|
|
C.AuditGMDate = "";
|
|
|
|
|
@@ -331,7 +333,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
OrbitalPrivateTransfer = dto.OrbitalPrivateTransfer,
|
|
|
DayRate = grp_CreditCardPayment.DayRate,
|
|
|
RMBPrice = grp_CreditCardPayment.RMBPrice,
|
|
|
-
|
|
|
+ IsAuditGM = auto ? 3 : grp_CreditCardPayment.IsAuditGM
|
|
|
})
|
|
|
.ExecuteCommandAsync();
|
|
|
if (CTable > 0)
|