|
|
@@ -55,13 +55,16 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
* 无逻辑日志,直接传文案
|
|
|
* @param int $periodNum
|
|
|
* @param int $calcMonth 业绩期
|
|
|
+ * @param string $desc 文案
|
|
|
+ * @param int $sort 展示顺序,太快用时间戳判断不出来
|
|
|
*/
|
|
|
- public static function noParamsLog($periodNum, $calcMonth, $desc) {
|
|
|
+ public static function noParamsLog($periodNum, $calcMonth, $desc, $sort) {
|
|
|
$logData[] = [
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => $sort
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -79,7 +82,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => "期数:$periodNum,结算年月:$calcMonth,开始计算业绩",
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 100
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -111,7 +115,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 200
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -135,7 +140,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 300
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -166,7 +172,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 500
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -191,7 +198,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 600
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -216,7 +224,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 700
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -240,7 +249,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 800
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -276,7 +286,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 3100
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -309,7 +320,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 3200
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -334,7 +346,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 3300
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -359,7 +372,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 3400
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -384,7 +398,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 3500
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -453,7 +468,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 3600
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -488,7 +504,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 3800
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -523,7 +540,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 3900
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|
|
|
@@ -558,7 +576,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
// 'PERIOD_NUM' => $periodNum,
|
|
|
// 'CALC_MONTH' => $calcMonth,
|
|
|
// 'LOG_DESCRIBE' => $desc,
|
|
|
- // 'CREATE_AT' => time()
|
|
|
+ // 'CREATE_AT' => time(),
|
|
|
+ // 'RECORD_SORT' => 4000
|
|
|
// ];
|
|
|
|
|
|
// ServeLog::batchInsert($logData);
|
|
|
@@ -603,7 +622,8 @@ class ServeLog extends \common\components\ActiveRecord
|
|
|
'PERIOD_NUM' => $periodNum,
|
|
|
'CALC_MONTH' => $calcMonth,
|
|
|
'LOG_DESCRIBE' => $desc,
|
|
|
- 'CREATE_AT' => time()
|
|
|
+ 'CREATE_AT' => time(),
|
|
|
+ 'RECORD_SORT' => 4200
|
|
|
];
|
|
|
|
|
|
ServeLog::batchInsert($logData);
|