$close = $this->TransLog->where($where)->order('id desc')->find();
$high = $this->TransLog->where($where)->max('price');
$low = $this->TransLog->where($where)->min('price');
$volume = $this->TransLog->where($where)->sum('num');
每次都要执行where条件,可不看可以执行一次获取5个参数
最佳答案