Commit 03a6f1e2 authored by zw's avatar zw

shop status update

parent 9e2f56fc
......@@ -663,7 +663,6 @@ class GHouses extends BaseModel
Db::commit();
return 1;
} catch (\Exception $e) {
echo 3333;
Db::rollback();
return 0;
}
......
......@@ -43,7 +43,7 @@ class updateShopStatusTask
if ($data && $data["down_time"] > 0) {
$day = $data["down_time"];
}else{
} else {
return null;
}
......@@ -51,7 +51,7 @@ class updateShopStatusTask
$params = [];
$time_ = date('Y-m-d', strtotime("-$day day"));
$params["status"] = 1;
$params["create_time"] = array( 'gt', $time_ );
$params["create_time"] = array( 'lt', $time_ );
$params["is_execute"] = 0;
$result = $this->shopModel->getShopListByTime($field, $params);
......@@ -78,9 +78,10 @@ class updateShopStatusTask
*/
public function updateStatusByNum()
{
$field = "id,residue_num";
$params = [];
$params["status"] = 1;
$field = "id,residue_num";
$params = [];
$params["status"] = 1;
$params["residue_num"] = array( "lt", 1 );
$result = $this->shopModel->getShopListByNum($field, $params);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment