public function actionCreate()
 {
     $productId = Yii::app()->request->getParam('productId');
     $model = new ProductSpecial();
     $model->dpid = $this->companyId;
     $product = Product::model()->find('lid=:lid and dpid=:dpid and delete_flag=0', array(':lid' => $productId, ':dpid' => $this->companyId));
     //		$productSets = ProductSet::model()->findAll('dpid=:dpid and delete_flag=0 and is_discount=1 and status=0',array(':dpid'=>$this->companyId));
     if (Yii::app()->request->isPostRequest) {
         $postData = Yii::app()->request->getPost('ProductSpecial');
         $model->attributes = $postData;
         $se = new Sequence("retreat");
         $model->lid = $se->nextval();
         $model->create_at = date('Y-m-d H:i:s', time());
         $model->update_at = date('Y-m-d H:i:s', time());
         if ($model->save()) {
             Yii::app()->user->setFlash('success', yii::t('app', '添加成功'));
             $this->redirect(array('productSpecial/updatedetail', 'companyId' => $this->companyId, 'id' => $productId));
         }
     }
     //		var_dump($products);exit;
     $this->render('create', array('model' => $model, 'product' => $product));
 }