|
|
|
@ -46,6 +46,9 @@ class AggregateFinanceSetController extends Controller {
|
|
|
|
|
}
|
|
|
|
|
public function setDailyCount($stime="now")
|
|
|
|
|
{
|
|
|
|
|
if(!IS_CLI){
|
|
|
|
|
die("只支持脚本访问");
|
|
|
|
|
}
|
|
|
|
|
if($stime=="now"){
|
|
|
|
|
$stime=time();
|
|
|
|
|
}else{
|
|
|
|
@ -70,13 +73,13 @@ class AggregateFinanceSetController extends Controller {
|
|
|
|
|
echo $nowdate."非周一和月初,无需任何处理".PHP_EOL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public function setWeekCount($stime)//进行周结
|
|
|
|
|
protected function setWeekCount($stime)//进行周结
|
|
|
|
|
{
|
|
|
|
|
$begintime = mktime(0,0,0,date('m',$stime),date('d',$stime)-7,date('Y',$stime));
|
|
|
|
|
$endtime = mktime(0,0,0,date('m',$stime),date('d',$stime),date('Y',$stime))-1;
|
|
|
|
|
$this->getAndSaveData(0,$begintime,$endtime);
|
|
|
|
|
}
|
|
|
|
|
public function setMonthCount($stime)//进行周结
|
|
|
|
|
protected function setMonthCount($stime)//进行周结
|
|
|
|
|
{
|
|
|
|
|
$thismonth = date('m',$stime);
|
|
|
|
|
$thisyear = date('Y',$stime);
|
|
|
|
|