|
|
@@ -224,7 +224,10 @@ class BonusController extends BaseController {
|
|
|
*/
|
|
|
public function actionWalletFlow(){
|
|
|
$walletType = \Yii::$app->request->get('walletType');
|
|
|
- if(!in_array($walletType,['bonus', 'cash', 'exchange'/**, 'tourism_points', 'garage_points', 'villa_points'*/])) return static::notice('walletType error',400);
|
|
|
+ if(!in_array($walletType,['bonus', 'cash', 'exchange', 'prp'/**, 'tourism_points', 'garage_points', 'villa_points'*/])) {
|
|
|
+ return static::notice('walletType error',400);
|
|
|
+ }
|
|
|
+
|
|
|
$dealType = \Yii::$app->request->get('dealType');
|
|
|
$createAt = \Yii::$app->request->get('createAt');
|
|
|
$remark = \Yii::$app->request->get('remark');
|
|
|
@@ -310,6 +313,13 @@ class BonusController extends BaseController {
|
|
|
// 'select' => 'AMOUNT,TOTAL,IS_INCR,REMARK,REMARK_IS_SHOW,PERIOD_NUM,CALC_MONTH,CREATED_AT,DEAL_TYPE_ID,DEAL_TYPE_IS_PRESET',
|
|
|
// 'orderBy' => 'CREATED_AT DESC',
|
|
|
// ]);
|
|
|
+ }else if ($walletType == 'prp') {
|
|
|
+ $dealLists = FlowExchangePoints::find()->groupBy('DEAL_TYPE_ID')->select('DEAL_TYPE_ID')->where('USER_ID=:USER_ID', [':USER_ID' => \Yii::$app->user->id])->asArray()->all();
|
|
|
+ $data = FlowExchangePoints::lists($condition, $params, [
|
|
|
+ 'useSlaves' => true,
|
|
|
+ 'select' => 'AMOUNT,TOTAL,IS_INCR,REMARK,REMARK_IS_SHOW,PERIOD_NUM,CALC_MONTH,CREATED_AT,DEAL_TYPE_ID,DEAL_TYPE_IS_PRESET',
|
|
|
+ 'orderBy' => 'CREATED_AT DESC',
|
|
|
+ ]);
|
|
|
} else {
|
|
|
return static::notice('walletType error',400);
|
|
|
}
|