|
@@ -167,7 +167,8 @@ class ApiController extends BaseController
|
|
$where = ['羊二洗煤厂','羊场湾二分区洗煤厂'];
|
|
$where = ['羊二洗煤厂','羊场湾二分区洗煤厂'];
|
|
$people_info = DB::connection('mysql_fwe10')->table('uf_zhxx_qlczgry')->where('zgrxm',$people)->whereIn('dwmc',$where)->where('IS_DELETE',0)->first();
|
|
$people_info = DB::connection('mysql_fwe10')->table('uf_zhxx_qlczgry')->where('zgrxm',$people)->whereIn('dwmc',$where)->where('IS_DELETE',0)->first();
|
|
}else{
|
|
}else{
|
|
- $people_info = DB::connection('mysql_fwe10')->table('uf_zhxx_qlczgry')->where('zgrxm',$people)->where('dwmc',$depart)->where('IS_DELETE',0)->first();
|
|
|
|
|
|
+// $people_info = DB::connection('mysql_fwe10')->table('uf_zhxx_qlczgry')->where('zgrxm',$people)->where('dwmc',$depart)->where('IS_DELETE',0)->first();
|
|
|
|
+ $people_info = DB::connection('mysql_fwe10')->table('uf_zhxx_qlczgry')->where('zgrxm',$people)->where('dwmc','like','%'.$depart.'%')->where('IS_DELETE',0)->first();
|
|
}
|
|
}
|
|
|
|
|
|
$person_id = $people_info->zgrxm.'|'.$people_info->zgrgh;
|
|
$person_id = $people_info->zgrxm.'|'.$people_info->zgrgh;
|