1
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use App\Model\BasicAgreement;
|
||||
use App\Model\BasicBank;
|
||||
use App\Model\BasicJob;
|
||||
use App\Model\BasicNation;
|
||||
@@ -113,7 +114,7 @@ class BasicDataService extends BaseService
|
||||
$params = array();
|
||||
$params['status'] = 1;
|
||||
|
||||
$operation_manual = OperationManual::getList($params);
|
||||
$operation_manual = OperationManual::getList($params,$fields);
|
||||
if (empty($operation_manual)) {
|
||||
return success();
|
||||
}
|
||||
@@ -326,4 +327,23 @@ class BasicDataService extends BaseService
|
||||
}
|
||||
return success($basic_job->toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取协议内容
|
||||
* @return array
|
||||
*/
|
||||
public function getAgreementInfo(): array
|
||||
{
|
||||
$agreement_id = $this->request->route('agreement_id');
|
||||
|
||||
$params = array();
|
||||
$params['agreement_id'] = $agreement_id;
|
||||
$params['agreement_status'] = 1;
|
||||
$basic_agreement = BasicAgreement::getOne($params);
|
||||
if (empty($basic_agreement)){
|
||||
return success(NULL);
|
||||
}
|
||||
|
||||
return success($basic_agreement->toArray());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user