| xqd
@@ -44,7 +44,7 @@ class SearchController extends CommonController
|
|
|
if(empty($input['user_id']) && empty($input['project_id']))
|
|
|
{
|
|
|
$table = Table_one::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->groupBy('bzc_name')
|
|
|
->selectRaw('bzc_name')
|
|
|
->selectRaw('SUM(home_area+money_bus_area) as area')
|
| xqd
@@ -61,7 +61,7 @@ class SearchController extends CommonController
|
|
|
if(!empty($input['user_id'])&& empty($input['project_id']))
|
|
|
{
|
|
|
$table = Table_one::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('user_id')
|
| xqd
@@ -83,7 +83,7 @@ class SearchController extends CommonController
|
|
|
if(!empty($input['project_id']) && empty($input['user_id'])){
|
|
|
$table = Table_one::query()
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->groupBy('id')
|
|
|
->selectRaw('project_id')
|
|
|
->selectRaw('SUM(home_area+money_bus_area) as area')
|
| xqd
@@ -103,7 +103,7 @@ class SearchController extends CommonController
|
|
|
//搜索收录人 项目名 显示收录人
|
|
|
if(!empty($input['project_id']) && !empty($input['user_id'])){
|
|
|
$table = Table_one::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->groupBy('id')
|
| xqd
@@ -134,7 +134,7 @@ class SearchController extends CommonController
|
|
|
];
|
|
|
if(empty($input['user_id']) && empty($input['project_id'])){
|
|
|
$table = Table_two::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->groupBy('bzc_name')
|
|
|
->selectRaw('bzc_name')
|
|
|
->selectRaw('SUM(bzc_area) as area')
|
| xqd
@@ -147,7 +147,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['user_id'])&& empty($input['project_id'])){
|
|
|
$table = Table_two::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('user_id')
|
| xqd
@@ -164,7 +164,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && empty($input['user_id'])){
|
|
|
$table = Table_two::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('project_id')
|
| xqd
@@ -181,7 +181,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && !empty($input['user_id'])){
|
|
|
$table = Table_three::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->groupBy('id')
|
| xqd
@@ -210,7 +210,7 @@ class SearchController extends CommonController
|
|
|
];
|
|
|
if(empty($input['user_id']) && empty($input['project_id'])){
|
|
|
$table = Table_three::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->groupBy('bzc_name')
|
|
|
->selectRaw('bzc_name')
|
|
|
->selectRaw('SUM(canbu) as canbu')
|
| xqd
@@ -225,7 +225,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['user_id'])&& empty($input['project_id'])){
|
|
|
$table = Table_three::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('user_id')
|
| xqd
@@ -244,7 +244,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && empty($input['user_id'])){
|
|
|
$table = Table_three::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('project_id')
|
| xqd
@@ -263,7 +263,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && !empty($input['user_id'])){
|
|
|
$table = Table_three::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
| xqd
@@ -295,7 +295,7 @@ class SearchController extends CommonController
|
|
|
];
|
|
|
if(empty($input['user_id']) && empty($input['project_id'])){
|
|
|
$table = Table_four::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->groupBy('bzc_name')
|
|
|
->selectRaw('bzc_name')
|
|
|
->selectRaw('SUM(quanj) as quanj')
|
| xqd
@@ -309,7 +309,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['user_id'])&& empty($input['project_id'])){
|
|
|
$table = Table_four::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('user_id')
|
| xqd
@@ -328,7 +328,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && empty($input['user_id'])){
|
|
|
$table = Table_four::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('project_id')
|
| xqd
@@ -347,7 +347,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && !empty($input['user_id'])){
|
|
|
$table = Table_four::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
| xqd
@@ -378,7 +378,7 @@ class SearchController extends CommonController
|
|
|
];
|
|
|
if(empty($input['user_id']) && empty($input['project_id'])){
|
|
|
$table = Table_five::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->groupBy('bzc_name')
|
|
|
->selectRaw('bzc_name')
|
|
|
->selectRaw('SUM(yuqi_mothe1+yuqi_mothe2+yuqi_mothe3+yuqi_mothe4) as yuqi_mothe')
|
| xqd
@@ -391,7 +391,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['user_id'])&& empty($input['project_id'])){
|
|
|
$table = Table_five::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('user_id')
|
| xqd
@@ -409,7 +409,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && empty($input['user_id'])){
|
|
|
$table = Table_five::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('project_id')
|
| xqd
@@ -427,7 +427,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && !empty($input['user_id'])){
|
|
|
$table = Table_five::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->groupBy('id')
|
| xqd
@@ -459,7 +459,7 @@ class SearchController extends CommonController
|
|
|
];
|
|
|
if(empty($input['user_id']) && empty($input['project_id'])){
|
|
|
$table = Table_six::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->groupBy('bzc_name')
|
|
|
->selectRaw('bzc_name')
|
|
|
->selectRaw('SUM(anzhi) as anzhi')
|
| xqd
@@ -474,7 +474,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['user_id'])&& empty($input['project_id'])){
|
|
|
$table = Table_six::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('user_id')
|
| xqd
@@ -494,7 +494,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && empty($input['user_id'])){
|
|
|
$table = Table_six::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('project_id')
|
| xqd
@@ -514,7 +514,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && !empty($input['user_id'])){
|
|
|
$table = Table_six::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
| xqd
@@ -575,7 +575,7 @@ class SearchController extends CommonController
|
|
|
];
|
|
|
if(empty($input['user_id']) && empty($input['project_id'])){
|
|
|
$table = Table_seven::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->groupBy('bzc_name')
|
|
|
->selectRaw('bzc_name')
|
|
|
->selectRaw('SUM(bzc_area) as bzc_area')->selectRaw('SUM(data2)as data2')
|
| xqd
@@ -597,7 +597,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['user_id'])&& empty($input['project_id'])){
|
|
|
$table = Table_seven::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('user_id')
|
| xqd
@@ -627,7 +627,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && empty($input['user_id'])){
|
|
|
$table = Table_seven::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('project_id')
|
| xqd
@@ -657,7 +657,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && !empty($input['user_id'])){
|
|
|
$table = Table_seven::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
| xqd
@@ -748,7 +748,7 @@ class SearchController extends CommonController
|
|
|
];
|
|
|
if(empty($input['user_id']) && empty($input['project_id'])){
|
|
|
$table = Table_eight::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->groupBy('bzc_name')
|
|
|
->selectRaw('bzc_name')
|
|
|
->selectRaw('SUM(bzc_area) as bzc_area')->selectRaw('SUM(data2)as data2')
|
| xqd
@@ -777,7 +777,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['user_id'])&& empty($input['project_id'])){
|
|
|
$table = Table_eight::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('user_id')
|
| xqd
@@ -816,7 +816,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && empty($input['user_id'])){
|
|
|
$table = Table_eight::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('project_id')
|
| xqd
@@ -855,7 +855,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && !empty($input['user_id'])){
|
|
|
$table = Table_eight::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
| xqd
@@ -929,7 +929,7 @@ class SearchController extends CommonController
|
|
|
];
|
|
|
if(empty($input['user_id']) && empty($input['project_id'])){
|
|
|
$table = Table_nine::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->groupBy('bzc_name')
|
|
|
->selectRaw('bzc_name')
|
|
|
->selectRaw('SUM(data6) as data6')->selectRaw('SUM(data9)as data9')
|
| xqd
@@ -949,7 +949,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['user_id'])&& empty($input['project_id'])){
|
|
|
$table = Table_nine::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('user_id')
|
| xqd
@@ -976,7 +976,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && empty($input['user_id'])){
|
|
|
$table = Table_nine::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->groupBy('id')
|
|
|
->selectRaw('project_id')
|
| xqd
@@ -1003,7 +1003,7 @@ class SearchController extends CommonController
|
|
|
}
|
|
|
if(!empty($input['project_id']) && !empty($input['user_id'])){
|
|
|
$table = Table_nine::query()
|
|
|
- ->where('status','>','5')
|
|
|
+ ->where('status','>','1')
|
|
|
->where('project_id','=',$input['project_id'])
|
|
|
->where('user_id','=',$input['user_id'])
|
|
|
->groupBy('id')
|