Commit 7bbb4fcd authored by hujun's avatar hujun

Merge remote-tracking branch 'origin/test' into test

parents 5f82a2e9 9bb9285b
......@@ -707,12 +707,15 @@ class GHouses extends BaseModel
if (isset($params["status"])) {
$where_["status"] = $params["status"];
}
if (isset($params["residue_num"])) {
$where_["residue_num"] = $params["residue_num"];
}
$result = Db::table($this->table)
->field($field)
->where($where_)
->select();
//echo Db::table($this->table)->getLastSql();
// echo Db::table($this->table)->getLastSql();
return $result;
}
/**
......
......@@ -51,7 +51,7 @@ class UpdateShopStatusTask
$params = [];
$time_ = date('Y-m-d', strtotime("-$day day"));
$params["status"] = 1;
$params["create_time"] = array( 'lt', $time_ );
$params["create_time"] = array( 'lt', $time_ . " 23:59:59");
$params["is_execute"] = 0;
$result = $this->shopModel->getShopListByTime($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