|
@@ -91,7 +91,9 @@ class HouseKeepingController extends AdminController
|
|
|
CommonFn::requestAjax(false, '修改失败', array());
|
|
|
}
|
|
|
$h = HouseKeeping::get(new MongoId($id));
|
|
|
-
|
|
|
+ if (!empty($cancel_cause)) {
|
|
|
+ $h->cancel_cause = $cancel_cause;
|
|
|
+ }
|
|
|
if (!empty($contract)) {
|
|
|
$h->contract = $contract;
|
|
|
}
|
|
@@ -115,11 +117,6 @@ class HouseKeepingController extends AdminController
|
|
|
}
|
|
|
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;
|