Commit f4818fb7 authored by hujun's avatar hujun

已审核退款-转审核状态

parent dc3e4bce
<?php
/**
* Created by PhpStorm.
* User: 43897
* Date: 2019/9/2
* Time: 10:09
*/
namespace app\index\controller;
use app\index\extend\Basic;
use app\model\OfficeORefundModel;
class OfficeRefund extends Basic
{
/**
* 已审核退款-转审核状态
*
* @return \think\Response
*/
public function recoverCheckRefund()
{
if (empty($this->params['refund_id'])) {
return $this->response(101, '参数错误');
}
$m_refund = new OfficeORefundModel();
$where['id'] = $this->params['refund_id'];
$where['status'] = 3;
$refund_id = $m_refund->getFieldOneValue('id', $where);
if (empty($refund_id)) {
return $this->response(101, '没有该记录');
}
$num = $m_refund->updateRefund(['id' => $refund_id, 'status' => 1]);
if ($num > 0) {
$code = 200;
$msg = '修改成功';
} else {
$code = 101;
$msg = '修改失败';
}
return $this->response($code, $msg);
}
}
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: 43897
* Date: 2019/9/2
* Time: 10:09
*/
namespace app\index\controller;
use app\index\extend\Basic;
use app\model\ORefundModel;
class Refund extends Basic
{
/**
* 已审核退款-转审核状态
*
* @return \think\Response
*/
public function recoverCheckRefund()
{
$this->params['refund_id']=229;
if (empty($this->params['refund_id'])) {
return $this->response(101, '参数错误');
}
$m_refund = new ORefundModel();
$where['id'] = $this->params['refund_id'];
$where['status'] = 3;
$refund_id = $m_refund->getFieldOneValue('id', $where);
if (empty($refund_id)) {
return $this->response(101, '没有该记录');
}
$num = $m_refund->updateRefund(['id' => $refund_id, 'status' => 1]);
if ($num > 0) {
$code = 200;
$msg = '修改成功';
} else {
$code = 101;
$msg = '修改失败';
}
return $this->response($code, $msg);
}
}
\ No newline at end of file
......@@ -583,6 +583,7 @@ Route::group('index', [
'storeDataExcel' => ['index/CostParameter/storeDataExcel', ['method' => 'POST']],
'intentionsWarning' => ['index/PayLog/intentionsWarning', ['method' => 'GET']],//意向金预警
'recoverPayLog' => ['index/PayLog/recoverPayLog', ['method' => 'POST']],//恢复删除收款
'recoverCheckRefund' => ['index/Refund/recoverCheckRefund', ['method' => 'POST|get']], //已审核退款-转审核状态
]);
......@@ -1268,6 +1269,7 @@ Route::group('office_index', [
'selectStorePerformance' => ['index/OfficePerformance/selectStorePerformance', ['method' => 'GET|POST']],//门店排行
'selectIndividualPerformance' => ['index/OfficePerformance/selectIndividualPerformance', ['method' => 'GET|POST']],//个人业绩排行
'getEditLog' => ['index/OfficeRoom/getEditLog', ['method' => 'get']],//楼盘修改日志
'recoverCheckRefund' => ['index/OfficeRefund/recoverCheckRefund', ['method' => 'POST']], //已审核退款-转审核状态
]);
Route::group('office_api', [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment