|
@@ -88,7 +88,6 @@ public class RedPackApplication : IRedPackApplication, IScopeDependency
|
|
|
status = ERedPackAuditStatus.Agree;
|
|
|
var redPackAudit = await _redPackAuditRepository.GetAsync(dto.RedPackAuditId, token) ?? throw UserFriendlyException.SameMessage("审核记录不存在");
|
|
|
if (redPackAudit.Status != ERedPackAuditStatus.Pending) throw UserFriendlyException.SameMessage("已审核, 不可重复审核");
|
|
|
-
|
|
|
var industry = await _industryRepository.Queryable(includeDeleted: true)
|
|
|
.LeftJoin<OrderSnapshot>((i, o) => i.Id == o.IndustryId)
|
|
|
.Where((i, o) => o.Id == redPackAudit.OrderId)
|
|
@@ -108,6 +107,7 @@ public class RedPackApplication : IRedPackApplication, IScopeDependency
|
|
|
{
|
|
|
redPackAudit.ApprovedAmount = 20;
|
|
|
}
|
|
|
+
|
|
|
redPackAudit.SMSTemplateId = dto.SMSTemplateId;
|
|
|
redPackAudit.Status = status;
|
|
|
redPackAudit.AuditRemark = dto.Opinion;
|
|
@@ -267,8 +267,16 @@ public class RedPackApplication : IRedPackApplication, IScopeDependency
|
|
|
var industry = await _industryRepository.Queryable(includeDeleted: true)
|
|
|
.LeftJoin<OrderSnapshot>((i, o) => i.Id == o.IndustryId)
|
|
|
.Where((i, o) => o.Id == id)
|
|
|
- .Select((i, o) => new { i.Id, i.CitizenReadPackAmount, i.ArgeePoints, i.ExtraDeductedPoints, i.RefusePoints, i.IsPoints,
|
|
|
- o.IsSafetyDepartment, i.Name})
|
|
|
+ .Select((i, o) => new {
|
|
|
+ i.Id,
|
|
|
+ i.CitizenReadPackAmount,
|
|
|
+ i.ArgeePoints,
|
|
|
+ i.ExtraDeductedPoints,
|
|
|
+ i.RefusePoints,
|
|
|
+ i.IsPoints,
|
|
|
+ o.IsSafetyDepartment,
|
|
|
+ i.Name
|
|
|
+ })
|
|
|
.FirstAsync();
|
|
|
outDto.Amount = industry.CitizenReadPackAmount;
|
|
|
if (industry.Name == "安全隐患" && industry.IsSafetyDepartment.HasValue && industry.IsSafetyDepartment == true)
|