Beispiel #1
0
 public static function checkValidateTable($dcTable, $occur_date, $facility_id)
 {
     $lockTable = AuditValidateTable::where(['TABLE_NAME' => $dcTable, 'FACILITY_ID' => $facility_id])->whereDate('DATE_FROM', '<=', $occur_date)->whereDate('DATE_TO', '>=', $occur_date)->first();
     return $lockTable != null && $lockTable != false;
 }