|
|
@@ -104,5 +104,33 @@ class PropertySurplusLogController extends BaseAdminController
|
|
|
return $this->data($result);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @notes 入账
|
|
|
+ * @return \think\response\Json
|
|
|
+ */
|
|
|
+ public function entry()
|
|
|
+ {
|
|
|
+ $params = (new PropertySurplusLogValidate())->post()->goCheck('detail');
|
|
|
+ $params['status'] = 1;
|
|
|
+ $result = PropertySurplusLogLogic::edit($params);
|
|
|
+ if (true === $result) {
|
|
|
+ return $this->success('入账成功', [], 1, 1);
|
|
|
+ }
|
|
|
+ return $this->fail(PropertySurplusLogLogic::getError());
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * @notes 取消提现
|
|
|
+ * @return \think\response\Json
|
|
|
+ */
|
|
|
+ public function cancel()
|
|
|
+ {
|
|
|
+ $params = (new PropertySurplusLogValidate())->post()->goCheck('detail');
|
|
|
+ $params['status'] = 2;
|
|
|
+ $result = PropertySurplusLogLogic::edit($params);
|
|
|
+ if (true === $result) {
|
|
|
+ return $this->success('取消成功', [], 1, 1);
|
|
|
+ }
|
|
|
+ return $this->fail(PropertySurplusLogLogic::getError());
|
|
|
+ }
|
|
|
|
|
|
}
|