示例#1
0
 public static function getDateBetween($employee = null)
 {
     if ($employee = ModuleGraph::getEmployee($employee)) {
         return ' \'' . $employee->stats_date_from . ' 00:00:00\' AND \'' . $employee->stats_date_to . ' 23:59:59\' ';
     }
     return ' \'' . date('Y-m') . '-01 00:00:00\' AND \'' . date('Y-m-t') . ' 23:59:59\' ';
 }
示例#2
0
 public static function getDateBetween($employee = null)
 {
     $employee = ModuleGraph::getEmployee($employee);
     return ' \'' . $employee->stats_date_from . ' 00:00:00\' AND \'' . $employee->stats_date_to . ' 23:59:59\' ';
 }