فهرست منبع

修复CRM持仓查询

Robin 6 سال پیش
والد
کامیت
4e4e79f932
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      normandcrm/service/backend/models/Mt4Trades.php

+ 1 - 1
normandcrm/service/backend/models/Mt4Trades.php

@@ -445,7 +445,7 @@ class Mt4Trades extends \yii\db\ActiveRecord
             $query->andWhere("CMD=6 and profit<0");
         } else if ($type == "position") {
             // 持仓
-            $query->andWhere("(CMD=0 or CMD=1) and CLOSE_TIME='1970-01-01'");
+            $query->andWhere("(CMD=0 or CMD=1)");
         } else if ($type == "history") {
             // 历史
             $query->andWhere("(CMD=0 or CMD=1) and CLOSE_TIME!='1970-01-01'");