|
@@ -282,10 +282,10 @@ class Cron
|
|
|
|
|
|
for($i=0; $i<=$day; $i++) {
|
|
|
$where = array();
|
|
|
- $where['start'] = $start + 86400*$i;
|
|
|
- $where['end'] = $start + 86400*$i + 86399;
|
|
|
+ $where['fstart'] = $start + 86400*$i;
|
|
|
+ $where['fend'] = $start + 86400*$i + 86399;
|
|
|
$data = array();
|
|
|
- $data['day'] = $where['start'];
|
|
|
+ $data['day'] = $where['fstart'];
|
|
|
$info = Dever::db('bill/cash_in_stat')->find($data);
|
|
|
|
|
|
$where['status'] = 4;
|
|
@@ -305,7 +305,8 @@ class Cron
|
|
|
$data['goods_cash'] = $cash['total'];
|
|
|
}
|
|
|
unset($where['status']);
|
|
|
-
|
|
|
+ $where['start'] = $where['fstart'];
|
|
|
+ $where['end'] = $where['fend'];
|
|
|
$where['type'] = 1;
|
|
|
|
|
|
$data['zt_cash'] = 0;
|