lihao 4 年 前
コミット
a506b6dbb8
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      gx_api/GxPress/Service/GxPress.Service.Implement/CommonSqlKata/CommonSqlKataService.cs

+ 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");