|
@@ -272,12 +272,12 @@ class ApiService{
|
|
|
$detail = DB::connection('mysql_fwview')->table('uf_wghgl_new')
|
|
|
->where('xjdw', $val->xjdw)
|
|
|
->where(DB::raw('DATE(lrsj)'), $val->lrdate)
|
|
|
- ->where('lrr', $val->lrr)->count();
|
|
|
+ ->where('lrr', $person_id)->count();
|
|
|
|
|
|
if ($detail >= $allcount) {
|
|
|
$data[$val->xjdw] = [
|
|
|
'lastname' => $lastname,
|
|
|
- 'person_id' => $val->lrr,
|
|
|
+ 'person_id' => $person_id,
|
|
|
'depart' => $val->xjdw,
|
|
|
'date' => $val->lrdate
|
|
|
];
|