Commit 42d7b4f5 by 冷斌

推广

parent 56d2a53e
......@@ -506,14 +506,8 @@ class UserAction extends CommonAction
// $this->assign('data', $data);
// $this->assign('total', $total);
$results = M('zy_split_balance_flow')->where([
'uid' => $this->mid,
['!=', 'type', 5],
])->order('ctime desc')->findAll();
$sum = M('zy_split_balance_flow')->where([
'uid' => $this->mid,
['!=', 'type', 5],
])->sum('num');
$results = M('zy_split_balance_flow')->where("uid = {$this->mid} and type != 5")->order('ctime desc')->findAll();
$sum = M('zy_split_balance_flow')->where("uid = {$this->mid} and type != 5")->sum('num');
var_dump($sum, $results);
die;
......
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