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