|
@@ -99,7 +99,18 @@ class Cost extends BaseController
|
|
|
|
|
|
$where3 =[];
|
|
$where3 =[];
|
|
if (!empty($param['project_status'])) {
|
|
if (!empty($param['project_status'])) {
|
|
- $where3[] = ['project_status', '=', $param['project_status']];
|
|
|
|
|
|
+ if($param['project_status'] == 100){
|
|
|
|
+ $where3[] = ['project_status', '=', 0];
|
|
|
|
+ $where3[] = ['proprietor_status', '=', 0];
|
|
|
|
+ }else if($param['project_status'] == 101){
|
|
|
|
+ $where3[] = ['project_status', '=', 0];
|
|
|
|
+ $where3[] = ['proprietor_status', '=', 1];
|
|
|
|
+ }else if($param['project_status'] == 102){
|
|
|
|
+ $where3[] = ['project_status', '=', 0];
|
|
|
|
+ $where3[] = ['proprietor_status', '=', 2];
|
|
|
|
+ }else{
|
|
|
|
+ $where3[] = ['project_status', '=', $param['project_status']];
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (!empty($param['province'])) {
|
|
if (!empty($param['province'])) {
|
|
$where3[] = ['province', '=', $param['province']];
|
|
$where3[] = ['province', '=', $param['province']];
|
|
@@ -995,7 +1006,7 @@ class Cost extends BaseController
|
|
["type", "=", 1], //1表示业主
|
|
["type", "=", 1], //1表示业主
|
|
["entrust_unit", "=", $unit_name]
|
|
["entrust_unit", "=", $unit_name]
|
|
])->column('unit_name');
|
|
])->column('unit_name');
|
|
- dump( $proprietor_unit_name);
|
|
|
|
|
|
+// dump( $proprietor_unit_name);
|
|
$admin_group_id=Db::name("admin")->where("id", $leader_id)->value("admin_group_id");
|
|
$admin_group_id=Db::name("admin")->where("id", $leader_id)->value("admin_group_id");
|
|
$where = [
|
|
$where = [
|
|
['status', '>=', 0],
|
|
['status', '>=', 0],
|