lihao 4 years ago
parent
commit
a506b6dbb8

+ 2 - 2
gx_api/GxPress/Service/GxPress.Service.Implement/CommonSqlKata/CommonSqlKataService.cs

@@ -154,12 +154,12 @@ namespace GxPress.Service.Implement.CommonSqlKataService
             FileCount.AsCount();
             query.Select(FileCount, "FileCount");
             var ReadCount = new SqlKata.Query("tede_addressee");
-            ReadCount.WhereColumns("tede_addressee.SourceId", "=", "tede_middle.Id");
+            ReadCount.WhereColumns("tede_addressee.SourceId", "=", "tede_middle.MiddleId");
             ReadCount.Where("tede_addressee.IsRead", true);
             ReadCount.AsCount();
             query.Select(ReadCount, "ReadCount");
             var AllCount = new SqlKata.Query("tede_addressee");
-            AllCount.WhereColumns("tede_addressee.SourceId", "=", "tede_middle.Id");
+            AllCount.WhereColumns("tede_addressee.SourceId", "=", "tede_middle.MiddleId");
             AllCount.AsCount();
             query.Select(AllCount, "AllCount");
             var IsRead = new SqlKata.Query("tede_addressee");