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