Prechádzať zdrojové kódy

修复CRM持仓查询

Robin 6 rokov pred
rodič
commit
4e4e79f932

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