|
|
@@ -2,11 +2,19 @@
|
|
|
|
|
|
namespace console\controllers;
|
|
|
|
|
|
-use biz\item\classes\PtItemClass;
|
|
|
-use bizGhs\product\classes\ProductClass;
|
|
|
+use biz\product\models\Product;
|
|
|
use yii\console\Controller;
|
|
|
|
|
|
class ProductController extends Controller
|
|
|
{
|
|
|
|
|
|
+ // ./yii product/reset-cover
|
|
|
+ public function actionResetCover()
|
|
|
+ {
|
|
|
+ $sql = "SELECT * FROM `" . Product::tableName() . "` WHERE cover not like '%.%'";
|
|
|
+ $command = Yii::$app->db->createCommand($sql);
|
|
|
+ $data = $command->queryAll();
|
|
|
+ print_r($data);
|
|
|
+ }
|
|
|
+
|
|
|
}
|