|
|
@@ -162,11 +162,19 @@ class GhsController extends BaseController
|
|
|
$where['name'] = ['like', $name];
|
|
|
}
|
|
|
}
|
|
|
+ $type = $get['type'] ?? -1;
|
|
|
$location = $get['location'] ?? '';
|
|
|
if (is_numeric($location)) {
|
|
|
$where['location'] = $location;
|
|
|
}
|
|
|
- $respond = GhsClass::getGhsList($where);
|
|
|
+ $order = 'inTurn DESC,addTime DESC';
|
|
|
+ if ($type == 0) {
|
|
|
+ $order = 'debtAmount DESC';
|
|
|
+ }
|
|
|
+ if ($type == 1) {
|
|
|
+ $order = 'expendAmount DESC';
|
|
|
+ }
|
|
|
+ $respond = GhsClass::getGhsList($where, $order);
|
|
|
$staff = $this->shopAdmin;
|
|
|
//待结款合计,有财务权限才能查看
|
|
|
if (isset($staff->finance) == false || $staff->finance == 0) {
|