作者 王智

baoxiu22

@@ -109,6 +109,10 @@ class Dashboard extends Backend @@ -109,6 +109,10 @@ class Dashboard extends Backend
109 109
110 //自定义导出 110 //自定义导出
111 public function exportDayInner(){ 111 public function exportDayInner(){
  112 + //月 起止时间戳
  113 + $start_time = mktime(0, 0, 0, date('m'), 1, date('Y'));
  114 + $end_time = mktime(23, 59, 59, date('m'), date('t'), date('Y'));
  115 + $map['createtime'] = ['between', [$start_time, $end_time]];
112 $ZhanDianArr = Db::name('zhandian')->select(); 116 $ZhanDianArr = Db::name('zhandian')->select();
113 foreach ($ZhanDianArr as $k => $v) { 117 foreach ($ZhanDianArr as $k => $v) {
114 $data[$k]['id'] = $v['id']; 118 $data[$k]['id'] = $v['id'];