|
@@ -203,6 +203,10 @@ class ApiService{
|
|
|
->where(DB::raw('DATE(lrsj)'), $val->lrdate)
|
|
|
->where('lrr', $val->lrr)->count();
|
|
|
|
|
|
+ if ($detail <= 0) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
if ($detail >= $allcount) {
|
|
|
$data[$val->lrr] = [
|
|
|
'department' => $val->dwmc,
|
|
@@ -274,6 +278,10 @@ class ApiService{
|
|
|
->where(DB::raw('DATE(lrsj)'), $val->lrdate)
|
|
|
->where('lrr', $person_id)->count();
|
|
|
|
|
|
+ if ($detail <= 0) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
if ($detail >= $allcount) {
|
|
|
$data[] = [
|
|
|
'lastname' => $lastname,
|
|
@@ -400,6 +408,10 @@ class ApiService{
|
|
|
->where(DB::raw('DATE(lrsj)'), $val->lrdate)
|
|
|
->where('lrr', $val->lrr)->count();
|
|
|
|
|
|
+ if ($detail <= 0) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
if ($detail >= $allcount) {
|
|
|
$data[] = [
|
|
|
'depart' => $val->xjdw,
|