|
|
@@ -5000,6 +5000,18 @@ class StoreOrderRepository extends BaseRepository
|
|
5000
|
5000
|
*/
|
|
5001
|
5001
|
public function merchantGetList(array $where, $page, $limit, $is_excel = 0)
|
|
5002
|
5002
|
{
|
|
|
5003
|
+ if (!empty($where['zero_line_uid'])) {
|
|
|
5004
|
+ $sql = "select getUserLevelId({$where['zero_line_uid']}) as uids";
|
|
|
5005
|
+ //\think\facade\Log::info("lplpDB".$sql);
|
|
|
5006
|
+ try {
|
|
|
5007
|
+ $spread_user_list = Db::query($sql);
|
|
|
5008
|
+ } catch (\Exception $exception) {
|
|
|
5009
|
+ $spread_user_list = '';
|
|
|
5010
|
+ }
|
|
|
5011
|
+ $spread_user_list = explode(",", trim($spread_user_list[0]['uids'], '$,'));
|
|
|
5012
|
+ $where['uid'] = $spread_user_list;
|
|
|
5013
|
+ }
|
|
|
5014
|
+ unset($where['zero_line_uid']);
|
|
5003
|
5015
|
$status = $where['status'];
|
|
5004
|
5016
|
unset($where['status']);
|
|
5005
|
5017
|
$query_search = $this->dao->search($where)
|