|
|
@@ -2,7 +2,9 @@ |
|
|
|
|
|
|
|
namespace app\admin\controller; |
|
|
|
|
|
|
|
use app\admin\command\Util; |
|
|
|
use app\admin\dao\GroupDao; |
|
|
|
use app\admin\model\AuthGroup; |
|
|
|
use app\admin\service\ReceiptOrderDao; |
|
|
|
use app\admin\service\ReceiptOrderService; |
|
|
|
use app\common\controller\Backend; |
|
|
@@ -74,6 +76,12 @@ class ReceiptOrder extends Backend |
|
|
|
* @return \think\response\Json |
|
|
|
*/ |
|
|
|
public function setStatus(){ |
|
|
|
$groupIds = $this->auth->getGroupIds(); |
|
|
|
$authGroup = new AuthGroup(); |
|
|
|
$cnt = $authGroup->where(["id" => ["in",$groupIds], "finance_flag" => 1])->count("*"); |
|
|
|
if ($cnt==0) { |
|
|
|
return json(Util::returnArrEr("未获取财务部门权限")); |
|
|
|
} |
|
|
|
$params=$this->request->post(); |
|
|
|
$service = new ReceiptOrderService(); |
|
|
|
$result = $service->setStatus($params['id'],$params['status']); |
|
|
|