|
|
@@ -450,6 +450,18 @@ class UserRepository extends BaseRepository
|
|
450
|
450
|
|
|
451
|
451
|
public function getList(array $where, $page, $limit)
|
|
452
|
452
|
{
|
|
|
453
|
+ if (!empty($where['zero_line_uid'])) {
|
|
|
454
|
+ $sql = "select getUserLevelId({$where['zero_line_uid']}) as uids";
|
|
|
455
|
+ //\think\facade\Log::info("lplpDB".$sql);
|
|
|
456
|
+ try {
|
|
|
457
|
+ $spread_user_list = Db::query($sql);
|
|
|
458
|
+ } catch (\Exception $exception) {
|
|
|
459
|
+ $spread_user_list = '';
|
|
|
460
|
+ }
|
|
|
461
|
+ $spread_user_list = explode(",", trim($spread_user_list[0]['uids'], '$,'));
|
|
|
462
|
+ $where['uid'] = $spread_user_list;
|
|
|
463
|
+ }
|
|
|
464
|
+ unset($where['zero_line_uid']);
|
|
453
|
465
|
if(isset($where['user_card']) && $where['user_card'] !=''){
|
|
454
|
466
|
$user_card = $where['user_card'];
|
|
455
|
467
|
$query = $this->dao->search($where)->with(['spread' => function ($query) {
|