Commit 31229c54 authored by hujun's avatar hujun

1

parent 6d1ce101
......@@ -46,6 +46,9 @@ class ODaily extends BaseModel
if (isset($params["store_id"])) {
$where_["store_id"] = $params["store_id"];
}
if (isset($params['id'])) {
$where_["id"] = $params['id'];
}
$where_["is_del"] = 0;
return $this->db_
->field($field)
......@@ -124,4 +127,8 @@ class ODaily extends BaseModel
->group('a.id')
->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