Commit 2507abb6 authored by yinxiaoling's avatar yinxiaoling

excel数据错误

parent cc202358
...@@ -235,7 +235,8 @@ class StrategyService ...@@ -235,7 +235,8 @@ class StrategyService
$startDay = date('Y-m-d'); //执行当天时间 $startDay = date('Y-m-d'); //执行当天时间
//这个月最后一天日期 //这个月最后一天日期
$endDay = date('Y-m-d',strtotime("-1 day",strtotime("+1 month",strtotime(date('Y-m-01'))))); $endDay = date('Y-m-d',strtotime("-1 day",strtotime("+1 month",strtotime(date('Y-m-01')))));
$day = date('j',strtotime($endDay)) - date('j') + 1;
$doubleTotal = $doubleTotal*$day;
for ($i=$startDay;$i<=$endDay;$i=date("Y-m-d",strtotime("+1 day",strtotime($i)))){ for ($i=$startDay;$i<=$endDay;$i=date("Y-m-d",strtotime("+1 day",strtotime($i)))){
foreach ($data as $k=>$v){ foreach ($data as $k=>$v){
$tempi = $tempi+2; $tempi = $tempi+2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment