|
@@ -338,7 +338,7 @@ class UserDao extends BaseDao
|
|
338
|
{
|
338
|
{
|
|
339
|
return User::getDB()->alias('A')
|
339
|
return User::getDB()->alias('A')
|
|
340
|
->join('StoreOrder B', 'A.uid = B.uid and B.paid = 1 and B.pay_time between \'' . date('Y/m/d', strtotime('first day of')) . ' 00:00:00\' and \'' . date('Y/m/d H:i:s') . '\'')
|
340
|
->join('StoreOrder B', 'A.uid = B.uid and B.paid = 1 and B.pay_time between \'' . date('Y/m/d', strtotime('first day of')) . ' 00:00:00\' and \'' . date('Y/m/d H:i:s') . '\'')
|
|
341
|
- ->field('A.brokerage_price as commission, A.brokerage_price as brokerage_price, A.score as green_integral, A.score as score, A.create_time as create_time,A.uid,A.avatar,A.nickname,A.phone,A.now_money,A.pay_price,A.pay_count, sum(B.pay_price) as total_pay_price, count(B.order_id) as total_pay_count')
|
|
|
|
|
|
341
|
+ ->field('A.*,A.brokerage_price as commission, A.brokerage_price as brokerage_price, A.score as green_integral, A.score as score, A.create_time as create_time,A.uid,A.avatar,A.nickname,A.phone,A.now_money,A.pay_price,A.pay_count, sum(B.pay_price) as total_pay_price, count(B.order_id) as total_pay_count')
|
|
342
|
->where('A.uid', $uid)
|
342
|
->where('A.uid', $uid)
|
|
343
|
->find();
|
343
|
->find();
|
|
344
|
}
|
344
|
}
|