|
@@ -88,6 +88,7 @@ class HouseKeepingController extends JBaseController
|
|
|
$status_time = intval(Yii::app()->request->getParam('status_time', ''));
|
|
|
$server_end_time = intval(Yii::app()->request->getParam('server_end_time', ''));
|
|
|
$id = Yii::app()->request->getParam('id');
|
|
|
+ $cancel_cause = Yii::app()->request->getParam('cancel_cause','');
|
|
|
if (!CommonFn::isMongoId($id)) {
|
|
|
CommonFn::requestAjax(false, '修改失败', array());
|
|
|
}
|
|
@@ -96,6 +97,7 @@ class HouseKeepingController extends JBaseController
|
|
|
if (!empty($contract)) {
|
|
|
$h->contract = $contract;
|
|
|
}
|
|
|
+
|
|
|
if (!empty($type)) {
|
|
|
$h->type = $type;
|
|
|
}
|
|
@@ -113,6 +115,11 @@ class HouseKeepingController extends JBaseController
|
|
|
}
|
|
|
if (!empty($status)) {
|
|
|
$h->status = $status;
|
|
|
+ if (intval($status) == 4) {
|
|
|
+ if (!empty($cancel_cause)) {
|
|
|
+ $h->cancel_cause = $cancel_cause;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
if (!empty($status_time)) {
|
|
|
$h->status_time = $status_time;
|