Commit 624b459a authored by hujun's avatar hujun

应收佣金

parent 80113065
......@@ -480,9 +480,11 @@ class OPartialCommission extends BaseModel
$data = $this->field($fields)
->where($where)
->group($group)
->find();
->select();
foreach ($data as $k=>$v) {
$num += $v[$fields];
if (!empty($v[$fields])) {
$num += $v[$fields];
}
}
return $num;
......
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