Commit 31229c54 authored by hujun's avatar hujun

1

parent 6d1ce101
...@@ -46,6 +46,9 @@ class ODaily extends BaseModel ...@@ -46,6 +46,9 @@ class ODaily extends BaseModel
if (isset($params["store_id"])) { if (isset($params["store_id"])) {
$where_["store_id"] = $params["store_id"]; $where_["store_id"] = $params["store_id"];
} }
if (isset($params['id'])) {
$where_["id"] = $params['id'];
}
$where_["is_del"] = 0; $where_["is_del"] = 0;
return $this->db_ return $this->db_
->field($field) ->field($field)
...@@ -124,4 +127,8 @@ class ODaily extends BaseModel ...@@ -124,4 +127,8 @@ class ODaily extends BaseModel
->group('a.id') ->group('a.id')
->count(); ->count();
} }
public function getFieldValue($filed, $where) {
return $this->where($where)->value($filed);
}
} }
\ No newline at end of file
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