|
@@ -88,7 +88,6 @@ class HouseKeepingController extends JBaseController
|
|
$status_time = intval(Yii::app()->request->getParam('status_time', ''));
|
|
$status_time = intval(Yii::app()->request->getParam('status_time', ''));
|
|
$server_end_time = intval(Yii::app()->request->getParam('server_end_time', ''));
|
|
$server_end_time = intval(Yii::app()->request->getParam('server_end_time', ''));
|
|
$id = Yii::app()->request->getParam('id');
|
|
$id = Yii::app()->request->getParam('id');
|
|
-
|
|
|
|
if (!CommonFn::isMongoId($id)) {
|
|
if (!CommonFn::isMongoId($id)) {
|
|
CommonFn::requestAjax(false, '修改失败', array());
|
|
CommonFn::requestAjax(false, '修改失败', array());
|
|
}
|
|
}
|
|
@@ -158,6 +157,19 @@ class HouseKeepingController extends JBaseController
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ public function actionFlag()
|
|
|
|
+ {
|
|
|
|
+ $id = Yii::app()->request->getParam('id');
|
|
|
|
+ if (!CommonFn::isMongoId($id)) {
|
|
|
|
+ CommonFn::requestAjax(false, '修改失败', array());
|
|
|
|
+ }
|
|
|
|
+ $h = HouseKeeping::get(new MongoId($id));
|
|
|
|
+ $h->flag = 1;
|
|
|
|
+ $success = $h->save();
|
|
|
|
+ CommonFn::requestAjax($success, '修改成功', array());
|
|
|
|
+ }
|
|
|
|
+
|
|
public function actionAdd()
|
|
public function actionAdd()
|
|
{
|
|
{
|
|
$mobile = (Yii::app()->request->getParam('mobile', ''));
|
|
$mobile = (Yii::app()->request->getParam('mobile', ''));
|
|
@@ -194,6 +206,7 @@ class HouseKeepingController extends JBaseController
|
|
$h->status_time = $status_time;
|
|
$h->status_time = $status_time;
|
|
$h->tech = $tech;
|
|
$h->tech = $tech;
|
|
$h->contract = 1;
|
|
$h->contract = 1;
|
|
|
|
+ $h->flag = 0;
|
|
$h->time = time();
|
|
$h->time = time();
|
|
$result = $h->save();
|
|
$result = $h->save();
|
|
if ($result) {
|
|
if ($result) {
|