|
@@ -86,6 +86,7 @@ class HouseKeepingController extends JBaseController
|
|
|
public function actionEdit()
|
|
|
{
|
|
|
$status = intval(Yii::app()->request->getParam('status', ''));
|
|
|
+ $flag = intval(Yii::app()->request->getParam('flag', 0));
|
|
|
$contract = intval(Yii::app()->request->getParam('contract', ''));
|
|
|
$type = intval(Yii::app()->request->getParam('type', ''));
|
|
|
$cart = intval(Yii::app()->request->getParam('cart', ''));
|
|
@@ -151,7 +152,7 @@ class HouseKeepingController extends JBaseController
|
|
|
$h->tech_mobile = $tech_mobile;
|
|
|
}
|
|
|
$success = $h->save();
|
|
|
- if ($success && intval($h->status) == 2) {//status_time
|
|
|
+ if ($success && intval($h->status) == 2 || $flag == 1) {//status_time
|
|
|
$c = new EMongoCriteria();
|
|
|
$c->store_id('==',$h->store_id);
|
|
|
$store = Store::model()->find($c);
|