|
@@ -222,6 +222,14 @@ class Human extends AdminBaseController
|
|
|
public function listInstitution()
|
|
|
{
|
|
|
$map = $this->dealEqualInput(['status'], $this->dealLikeInput(['name']));
|
|
|
+ $booth_status = input('booth_status');
|
|
|
+ if (!empty($booth_status)) {
|
|
|
+ if ($booth_status == 1) {
|
|
|
+ $map[] = ['booth', '<>', ''];
|
|
|
+ } else {
|
|
|
+ $map[] = ['booth', '=', ''];
|
|
|
+ }
|
|
|
+ }
|
|
|
$list = HumanInstitutionModel::where($map)
|
|
|
->order(['priority' => 'desc', 'update_time' => 'desc'])
|
|
|
->limit(input('limit'))
|
|
@@ -377,6 +385,14 @@ class Human extends AdminBaseController
|
|
|
public function listEnterprise()
|
|
|
{
|
|
|
$map = $this->dealEqualInput(['status'], $this->dealLikeInput(['name']));
|
|
|
+ $booth_status = input('booth_status');
|
|
|
+ if (!empty($booth_status)) {
|
|
|
+ if ($booth_status == 1) {
|
|
|
+ $map[] = ['booth', '<>', ''];
|
|
|
+ } else {
|
|
|
+ $map[] = ['booth', '=', ''];
|
|
|
+ }
|
|
|
+ }
|
|
|
$list = HumanEnterpriseModel::where($map)
|
|
|
->order(['priority' => 'desc', 'update_time' => 'desc'])
|
|
|
->limit(input('limit'))
|
|
@@ -409,6 +425,7 @@ class Human extends AdminBaseController
|
|
|
'info' => $info,
|
|
|
'status_list' => HumanEnterpriseModel::STATUS,
|
|
|
'cooperate_list' => HumanInstitutionModel::COOPERATE,
|
|
|
+ 'industry_list' => HumanEnterpriseModel::INDUSTRY,
|
|
|
]);
|
|
|
}
|
|
|
|