|
|
@@ -61,6 +61,7 @@ use common\models\FlowBonus;
|
|
|
use common\models\forms\PeriodForm;
|
|
|
use common\models\forms\UserBonusForm;
|
|
|
use common\models\Period;
|
|
|
+use yii\db\Exception;
|
|
|
use yii\web\HttpException;
|
|
|
|
|
|
class BonusController extends BaseController {
|
|
|
@@ -76,21 +77,13 @@ class BonusController extends BaseController {
|
|
|
* @throws \yii\base\InvalidConfigException
|
|
|
* @throws \yii\httpclient\Exception
|
|
|
* @throws HttpException
|
|
|
+ * @throws Exception
|
|
|
*/
|
|
|
public function actionPeriod() {
|
|
|
$filter = $this->filterCondition([
|
|
|
'periodNum' => 'PERIOD_NUM',
|
|
|
'year' => 'CALC_YEAR',
|
|
|
'month' => 'CALC_MONTH',
|
|
|
- 'startTime' => 'START_TIME',
|
|
|
- 'endTime' => 'END_TIME',
|
|
|
- 'closedAt' => 'CLOSED_AT',
|
|
|
- 'perfStartedAt' => 'PERF_STARTED_AT',
|
|
|
- 'perfedAt' => 'PERFED_AT',
|
|
|
- 'calStartedAt' => 'CALCULATE_STARTED_AT',
|
|
|
- 'calculatedAt' => 'CALCULATED_AT',
|
|
|
- 'sendStartedAt' => 'SEND_STARTED_AT',
|
|
|
- 'sentAt' => 'SENT_AT',
|
|
|
]);
|
|
|
$condition = $filter['condition'];
|
|
|
$params = $filter['params'];
|