|
@@ -30,7 +30,9 @@ public class SnapshotPointsDomainService : ISnapshotPointsDomainService, IScopeD
|
|
|
.Where((snapshot, industry) => snapshot.Id == orderId)
|
|
|
.Select((snapshot, industry) => new { snapshot.Id, industry.ReportPoints , industry.ArgeePoints , industry.RefusePoints, industry.Name,
|
|
|
snapshot.CreatorId})
|
|
|
- .FirstAsync() ?? throw new UserFriendlyException($"{orderId} 工单不存在");
|
|
|
+ .FirstAsync();
|
|
|
+ if (order == null) return;
|
|
|
+
|
|
|
if (order.ReportPoints.HasValue == false)
|
|
|
throw new UserFriendlyException($"{order.Name} 行业未配置积分");
|
|
|
|