This commit is contained in:
2023-04-18 13:27:35 +08:00
parent fde2f44766
commit 9acd823317
6 changed files with 61 additions and 54 deletions
+21 -1
View File
@@ -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());
}
}