Trippest自动生成账单:缩短周期

feature/trippest
lyt 6 years ago
parent 931c60c258
commit b9c66f168b

@ -180,8 +180,8 @@ class Orders_model extends CI_Model {
public function get_groupCombineInfo_finance() public function get_groupCombineInfo_finance()
{ {
// return array(); // 历史数据已获取完毕 // return array(); // 历史数据已获取完毕
$to_update_month_begin = date('Y-m-01', strtotime("-3 months", strtotime(date("Y-m-d")))); $to_update_month_begin = date('Y-m-01', strtotime("-2 months", strtotime(date("Y-m-d"))));
$to_update_month_end = date('Y-m-01', strtotime("-2 months", strtotime(date("Y-m-d")))); $to_update_month_end = date('Y-m-01', strtotime("-1 months", strtotime(date("Y-m-d"))));
$end_d = strtotime($to_update_month_end)-1; $end_d = strtotime($to_update_month_end)-1;
$to_update_month_end = date("Y-m-d 23:59:59", $end_d); $to_update_month_end = date("Y-m-d 23:59:59", $end_d);
$set_time = date("Y-m-d 00:00:00", strtotime("+50 days",$end_d)); $set_time = date("Y-m-d 00:00:00", strtotime("+50 days",$end_d));

Loading…
Cancel
Save