|
|
@@ -75,10 +75,12 @@ class PaymentOrder extends Backend |
|
|
|
$groupIds = $this->auth->getGroupIds(); |
|
|
|
$authGroup = new AuthGroup(); |
|
|
|
$cnt = $authGroup->where(["id" => ["in",$groupIds], "finance_flag" => 1])->count("*"); |
|
|
|
if ($cnt==0) { |
|
|
|
$params=$this->request->post(); |
|
|
|
$model = new \app\admin\model\PaymentOrder(); |
|
|
|
$info = $model->where(["id"=>$params['id']])->find(); |
|
|
|
if ($cnt==0 && ($info['status']==2 || $params['status']==2)) { |
|
|
|
return json(Util::returnArrEr("未获取财务部门权限")); |
|
|
|
} |
|
|
|
$params=$this->request->post(); |
|
|
|
$service = new PaymentOrderService(); |
|
|
|
$result = $service->setStatus($params['id'],$params['status']); |
|
|
|
return json($result); |
|
|
|