李昊 4 years ago
parent
commit
de2673518c

+ 5 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/Analyze/AnalyzeService.cs

@@ -163,7 +163,11 @@ namespace GxPress.Service.Implement.Analyze
         public async Task<Entity.Analyze.Analyze> GetAnalyzeAsync(AnalyzeRequest request)
         {
             var query = new SqlKata.Query();
-            query.Where(nameof(Entity.Analyze.Analyze.SourceId), request.SourceId).Where(nameof(Entity.Analyze.Analyze.TypeValue), request.TypeValue).Where(nameof(Entity.Analyze.Analyze.AnalyzeType), request.AnalyzeType).Where(nameof(Entity.Analyze.Analyze.CommentId), request.CommentId);
+            query.Where(nameof(Entity.Analyze.Analyze.SourceId), request.SourceId);
+            query.Where(nameof(Entity.Analyze.Analyze.TypeValue), request.TypeValue);
+            query.Where(nameof(Entity.Analyze.Analyze.AnalyzeType), request.AnalyzeType);
+            query.Where(nameof(Entity.Analyze.Analyze.CommentId), request.CommentId);
+            query.Where(nameof(Entity.Analyze.Analyze.UserId), request.UserId);
             if (request.SourceUserId > 0)
                 query.Where(nameof(Entity.Analyze.Analyze.SourceUserId), request.SourceUserId);
             return await _repository.GetAsync(query);