|
@@ -173,9 +173,10 @@ class UserAwardIntegralServices extends BaseServices
|
|
|
* @param $uid
|
|
* @param $uid
|
|
|
* @return float
|
|
* @return float
|
|
|
*/
|
|
*/
|
|
|
- public function getAchievement($uid)
|
|
|
|
|
|
|
+ public function getAchievement($uid, $status = '')
|
|
|
{
|
|
{
|
|
|
$where = ['uid' => array_merge([$uid], get_group_user($uid)), 'type' => 0];
|
|
$where = ['uid' => array_merge([$uid], get_group_user($uid)), 'type' => 0];
|
|
|
|
|
+ if ($status != '') $where['status'] = $status;
|
|
|
return $this->dao->sum($where, 'order_price', true);
|
|
return $this->dao->sum($where, 'order_price', true);
|
|
|
}
|
|
}
|
|
|
|
|
|