|
@@ -267,8 +267,16 @@ public class RedPackApplication : IRedPackApplication, IScopeDependency
|
|
var industry = await _industryRepository.Queryable(includeDeleted: true)
|
|
var industry = await _industryRepository.Queryable(includeDeleted: true)
|
|
.LeftJoin<OrderSnapshot>((i, o) => i.Id == o.IndustryId)
|
|
.LeftJoin<OrderSnapshot>((i, o) => i.Id == o.IndustryId)
|
|
.Where((i, o) => o.Id == id)
|
|
.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();
|
|
.FirstAsync();
|
|
outDto.Amount = industry.CitizenReadPackAmount;
|
|
outDto.Amount = industry.CitizenReadPackAmount;
|
|
if (industry.Name == "安全隐患" && industry.IsSafetyDepartment.HasValue && industry.IsSafetyDepartment == true)
|
|
if (industry.Name == "安全隐患" && industry.IsSafetyDepartment.HasValue && industry.IsSafetyDepartment == true)
|
|
@@ -417,7 +425,7 @@ public class RedPackApplication : IRedPackApplication, IScopeDependency
|
|
.LeftJoin<RedPackRecord>((redPackAudit, order, snapshot, record) => redPackAudit.Id == record.OrderId)
|
|
.LeftJoin<RedPackRecord>((redPackAudit, order, snapshot, record) => redPackAudit.Id == record.OrderId)
|
|
.LeftJoin<Industry>((redPackAudit, order, snapshot, record, industry) => snapshot.IndustryId == industry.Id)
|
|
.LeftJoin<Industry>((redPackAudit, order, snapshot, record, industry) => snapshot.IndustryId == industry.Id)
|
|
.LeftJoin<IndustryCase>((redPackAudit, order, snapshot, record, industry, industryCase) => snapshot.IndustryCase == industryCase.Id)
|
|
.LeftJoin<IndustryCase>((redPackAudit, order, snapshot, record, industry, industryCase) => snapshot.IndustryCase == industryCase.Id)
|
|
- .Where((redPackAudit, order, snapshot, record, industry) => order.Status >= EOrderStatus.Filed)
|
|
|
|
|
|
+ .Where((redPackAudit, order, snapshot, record, industry) => order.Status >= EOrderStatus.Filed && industry.ApproveOrgId == _sessionContext.OrgId)
|
|
.WhereIF(dto.No.NotNullOrEmpty(), (redPackAudit, order, snapshot, record, industry) => order.No.Contains(dto.No))
|
|
.WhereIF(dto.No.NotNullOrEmpty(), (redPackAudit, order, snapshot, record, industry) => order.No.Contains(dto.No))
|
|
.WhereIF(dto.Title.NotNullOrEmpty(), (redPackAudit, order, snapshot, record, industry) => order.Title.Contains(dto.Title))
|
|
.WhereIF(dto.Title.NotNullOrEmpty(), (redPackAudit, order, snapshot, record, industry) => order.Title.Contains(dto.Title))
|
|
.WhereIF(dto.FromPhone.NotNullOrEmpty(), (redPackAudit, order, snapshot, record, industry) => order.FromPhone.Contains(dto.FromPhone))
|
|
.WhereIF(dto.FromPhone.NotNullOrEmpty(), (redPackAudit, order, snapshot, record, industry) => order.FromPhone.Contains(dto.FromPhone))
|