|
@@ -539,31 +539,31 @@ class ApiController extends BaseController
|
|
$result['data'] = 1;
|
|
$result['data'] = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if($type == 'dxfzr' && $staff_num == $sb[0]->dxfzr){
|
|
|
|
|
|
+ if($type == 'dxfzr'){
|
|
$people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->dxfzr)->get();
|
|
$people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->dxfzr)->get();
|
|
if($people[0]->gh == $staff_num){
|
|
if($people[0]->gh == $staff_num){
|
|
$result['data'] = 1;
|
|
$result['data'] = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if($type == 'jxfzr' && $staff_num == $sb[0]->jxfzr){
|
|
|
|
|
|
+ if($type == 'jxfzr'){
|
|
$people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->jxfzr)->get();
|
|
$people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->jxfzr)->get();
|
|
if($people[0]->gh == $staff_num){
|
|
if($people[0]->gh == $staff_num){
|
|
$result['data'] = 1;
|
|
$result['data'] = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if($type == 'jxysfzr' && $staff_num == $sb[0]->jxysfzr){
|
|
|
|
|
|
+ if($type == 'jxysfzr'){
|
|
$people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->jxysfzr)->get();
|
|
$people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->jxysfzr)->get();
|
|
if($people[0]->gh == $staff_num){
|
|
if($people[0]->gh == $staff_num){
|
|
$result['data'] = 1;
|
|
$result['data'] = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if($type == 'dbffzr' && $staff_num == $sb[0]->dbffzr){
|
|
|
|
|
|
+ if($type == 'dbffzr'){
|
|
$people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->dbffzr)->get();
|
|
$people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->dbffzr)->get();
|
|
if($people[0]->gh == $staff_num){
|
|
if($people[0]->gh == $staff_num){
|
|
$result['data'] = 1;
|
|
$result['data'] = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if($type == 'bffzr' && $staff_num == $sb[0]->bffzr){
|
|
|
|
|
|
+ if($type == 'bffzr'){
|
|
$people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->bffzr)->get();
|
|
$people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->bffzr)->get();
|
|
if($people[0]->gh == $staff_num){
|
|
if($people[0]->gh == $staff_num){
|
|
$result['data'] = 1;
|
|
$result['data'] = 1;
|