|
@@ -52,12 +52,12 @@ class PropertyHeadLists extends BaseAdminDataLists implements ListsSearchInterfa
|
|
|
public function queryDataWhere(){
|
|
public function queryDataWhere(){
|
|
|
$where = [];
|
|
$where = [];
|
|
|
$data_rules = $this->adminInfo['data_rules'];
|
|
$data_rules = $this->adminInfo['data_rules'];
|
|
|
- /*if (isset($data_rules['province']) && !empty($data_rules['province'])) {
|
|
|
|
|
|
|
+ if (isset($data_rules['province']) && !empty($data_rules['province'])) {
|
|
|
$where[] = ['province','in' ,$data_rules['province']];
|
|
$where[] = ['province','in' ,$data_rules['province']];
|
|
|
}
|
|
}
|
|
|
if (isset($data_rules['city']) && !empty($data_rules['city'])) {
|
|
if (isset($data_rules['city']) && !empty($data_rules['city'])) {
|
|
|
$where[] = ['city','in' ,$data_rules['city']];
|
|
$where[] = ['city','in' ,$data_rules['city']];
|
|
|
- }*/
|
|
|
|
|
|
|
+ }
|
|
|
if (isset($data_rules['sale_group_id']) && !empty($data_rules['sale_group_id'])) {
|
|
if (isset($data_rules['sale_group_id']) && !empty($data_rules['sale_group_id'])) {
|
|
|
$sale_ids = Sale::where('sale_group_id','in',$data_rules['sale_group_id'])->column('id')??[];
|
|
$sale_ids = Sale::where('sale_group_id','in',$data_rules['sale_group_id'])->column('id')??[];
|
|
|
$where[] = ['sale_id','in' ,$sale_ids];
|
|
$where[] = ['sale_id','in' ,$sale_ids];
|
|
@@ -82,7 +82,7 @@ class PropertyHeadLists extends BaseAdminDataLists implements ListsSearchInterfa
|
|
|
public function lists(): array
|
|
public function lists(): array
|
|
|
{
|
|
{
|
|
|
return PropertyHead::where($this->searchWhere)->where($this->queryDataWhere())
|
|
return PropertyHead::where($this->searchWhere)->where($this->queryDataWhere())
|
|
|
- ->field(['head_corporate_bank','id', 'property_name', 'village_name', 'address', 'head_name', 'head_mobile', 'ratio', 'head_bank_card', 'remark', 'user_id', 'all_profit_amount', 'surplus_profit_amount', 'extract_profit_amount','lon', 'lat','bind_date','sale_type','sale_id','is_cooperate'])
|
|
|
|
|
|
|
+ ->field(['province','city','area_name','head_corporate_bank','id', 'property_name', 'village_name', 'address', 'head_name', 'head_mobile', 'ratio', 'head_bank_card', 'remark', 'user_id', 'all_profit_amount', 'surplus_profit_amount', 'extract_profit_amount','lon', 'lat','bind_date','sale_type','sale_id','is_cooperate'])
|
|
|
->limit($this->limitOffset, $this->limitLength)
|
|
->limit($this->limitOffset, $this->limitLength)
|
|
|
->order(['id' => 'desc'])
|
|
->order(['id' => 'desc'])
|
|
|
->select()
|
|
->select()
|