|
@@ -118,7 +118,6 @@ class CustomController extends BaseController
|
|
|
$type = isset($get['type']) ? $get['type'] : 0;
|
|
$type = isset($get['type']) ? $get['type'] : 0;
|
|
|
$name = isset($get['name']) ? $get['name'] : '';
|
|
$name = isset($get['name']) ? $get['name'] : '';
|
|
|
$where = ['ownShopId' => $this->shopId];
|
|
$where = ['ownShopId' => $this->shopId];
|
|
|
-
|
|
|
|
|
if ($type == 1) {
|
|
if ($type == 1) {
|
|
|
//欠款客户
|
|
//欠款客户
|
|
|
$where['isDebt'] = 1;
|
|
$where['isDebt'] = 1;
|
|
@@ -128,9 +127,8 @@ class CustomController extends BaseController
|
|
|
$sort = 'buyAmount DESC';
|
|
$sort = 'buyAmount DESC';
|
|
|
} else {
|
|
} else {
|
|
|
//其它
|
|
//其它
|
|
|
- $sort = 'addTime DESC';
|
|
|
|
|
|
|
+ $sort = 'visitTime DESC';
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
if (!empty($name)) {
|
|
if (!empty($name)) {
|
|
|
if (stringUtil::isLetter($name)) {
|
|
if (stringUtil::isLetter($name)) {
|
|
|
$where['py'] = ['like', $name];
|
|
$where['py'] = ['like', $name];
|
|
@@ -138,9 +136,7 @@ class CustomController extends BaseController
|
|
|
$where['name'] = ['like', $name];
|
|
$where['name'] = ['like', $name];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
$list = CustomService::getCustomSortList($where, $sort);
|
|
$list = CustomService::getCustomSortList($where, $sort);
|
|
|
-
|
|
|
|
|
$shop = $this->shop;
|
|
$shop = $this->shop;
|
|
|
$list['totalUser'] = $shop->totalUser ?? 0;
|
|
$list['totalUser'] = $shop->totalUser ?? 0;
|
|
|
$list['mayGatheringNum'] = $shop->mayGatheringNum ?? 0;
|
|
$list['mayGatheringNum'] = $shop->mayGatheringNum ?? 0;
|