|
@@ -96,6 +96,12 @@ public class RedPackApplication : IRedPackApplication, IScopeDependency
|
|
|
redPackAudit.AuditOrgId = _sessionContext.OrgId;
|
|
|
redPackAudit.AuditOrgName = _sessionContext.OrgName;
|
|
|
redPackAudit.ApprovedAmount = redPackAudit.ShouldAmount;
|
|
|
+ redPackAudit.Points = dto.Points;
|
|
|
+ redPackAudit.PointsStatus = dto.PointsStatus;
|
|
|
+ redPackAudit.PointsOpinion = dto.PointsOpinion;
|
|
|
+ redPackAudit.ExtraDeductedPoints = dto.ExtraDeductedPoints;
|
|
|
+ redPackAudit.ExtraDeductionPointsTypeId = dto.ExtraDeductionPointsTypeId;
|
|
|
+ redPackAudit.ExtraDeductionPointsTypeName = dto.ExtraDeductionPointsTypeName;
|
|
|
var order = await _orderRepository.Queryable()
|
|
|
.LeftJoin<OrderSnapshot>((order, snapshot) => order.Id == snapshot.Id)
|
|
|
.Where((order, snapshot) => order.Id == redPackAudit.OrderId)
|
|
@@ -121,7 +127,7 @@ public class RedPackApplication : IRedPackApplication, IScopeDependency
|
|
|
await _redPackRecordRepository.AddAsync(entity);
|
|
|
}
|
|
|
await _redPackAuditRepository.UpdateAsync(redPackAudit, token);
|
|
|
- await _snapshotPointsDomainService.AddPointsAsync(order.Id, EPointsSource.Audit, status, dto.ExtraDeductedPoints);
|
|
|
+ await _snapshotPointsDomainService.AddPointsAsync(order.Id, EPointsSource.Audit, dto.PointsStatus, dto.ExtraDeductedPoints);
|
|
|
if (dto.IsSendSms)
|
|
|
{
|
|
|
var smsTemplate = await _snapshotSMSTemplateRepository.GetAsync(dto.SMSTemplateId);
|