Commit 4db69fad authored by hujun's avatar hujun

获取费用承担办公室

parent b834518f
......@@ -376,5 +376,27 @@ class StoreFee extends Basic
}
}
/**
* 获取费用承担办公室
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getApplyForFeeStore(){
$params = $this->params;
/* $params = array(
"store_id" => 1
);*/
$storeModel = new AStore();
$field = "a.id,b.office_address";
$office_info = $storeModel->getStoreAndOffice($field,["store_id"=> $params["store_id"]]);
if($office_info){
return $this->response("200", "request success", $office_info);
}else{
return $this->response("101", "null");
}
}
}
\ No newline at end of file
......@@ -543,6 +543,7 @@ Route::group('index', [
'getCostInfo' => [ 'index/CostDetail/getCostInfo', [ 'method' => 'POST|GET' ] ],
'addApplyFor' => ['index/StoreFee/addApplyFor', ['method' => 'POST']],//新增报销申请
'editApplyFor' => ['index/StoreFee/addApplyFor', ['method' => 'POST']],//修改报销申请
'getApplyForFeeStore' => ['index/StoreFee/getApplyForFeeStore', ['method' => 'GET']],//获取费用承担办公室
]);
......
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