|
@@ -74,4 +74,24 @@ class UserController extends O2oBaseController{
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public function actionGetUserBalanceLog(){
|
|
|
+ $id = Yii::app()->request->getParam('id', '');
|
|
|
+
|
|
|
+ $params = CommonFn::getPageParams();
|
|
|
+ $criteria = new EMongoCriteria($params);
|
|
|
+
|
|
|
+ if ($id != ''){
|
|
|
+ $id = new MongoId($id);
|
|
|
+ $criteria->user('==', $id);
|
|
|
+ }else{
|
|
|
+ CommonFn::requestAjax(false, "缺少必须参数");
|
|
|
+ }
|
|
|
+
|
|
|
+ $cursor = BalanceLog::model()->findAll($criteria);
|
|
|
+ $total = $cursor->count();
|
|
|
+ $rows = CommonFn::getRowsFromCursor($cursor);
|
|
|
+ $parsedRows = BalanceLog::model()->parse($rows);
|
|
|
+ return CommonFn::requestAjax(true,$parsedRows);
|
|
|
+ }
|
|
|
+
|
|
|
}
|