|
|
@@ -808,6 +808,11 @@ class PreparePerfCalc {
|
|
|
if (!$this->_isCalcMonth) {
|
|
|
return true;
|
|
|
}
|
|
|
+ file_put_contents('ccctxt.txt',var_export([
|
|
|
+ 'offset' => $offset,
|
|
|
+ 'CALC_MONTH' => $this->_calcYearMonth,
|
|
|
+ 'PERIOD_NUM' => $this->_periodNum
|
|
|
+ ],true), FILE_APPEND);
|
|
|
// AR_PERF_ORDER_PREPARE\AR_PERF_PERIOD_PREPARE\AR_PERIOD_PREPARE\AR_PERF_MONTH_PREPARE
|
|
|
// AR_PERIOD_PREPARE 表只需要是结算月的数据
|
|
|
// AR_PERF_PERIOD_PREPARE 表特殊,需要增加一个字段,是否存在于前三期中 已被第一次算月业绩使用过了
|
|
|
@@ -946,7 +951,10 @@ class PreparePerfCalc {
|
|
|
if (!$this->_isCalcMonth) {
|
|
|
return true;
|
|
|
}
|
|
|
-
|
|
|
+ var_export('aatxt.txt',var_export([
|
|
|
+ 'offset' => $offset,
|
|
|
+ 'CALC_MONTH' => $this->_calcYearMonth
|
|
|
+ ],true), FILE_APPEND);
|
|
|
// 上面的计算月业绩,计算了前三期有的用户,此次只计算此结算周期未含有前三期业绩的用户
|
|
|
|
|
|
echo sprintf("时间:[%s]预计月业绩,结算月新添加的用户,当前offset为:【%s】" . PHP_EOL, date('Y-m-d H:i:s', time()) , $offset);
|