You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
880 B
PHP
23 lines
880 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\Admin\YeWu;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use App\Services\Admin\YeWu\HealthCheckupService;
|
|
|
|
class HealthCheckupController extends Controller
|
|
{
|
|
//创建体检记录
|
|
public function CreateRecord(){
|
|
$CheckupInfo=request('CheckupInfo');
|
|
if(!$CheckupInfo) return \Yz::echoError1('检查信息为空');
|
|
if(!$CheckupInfo['name']) return \Yz::echoError1('姓名不能为空');
|
|
if(!isset($CheckupInfo['id_card_num'])) return \Yz::echoError1('id_card_num不能为空');
|
|
if(!isset($CheckupInfo['type'])) return \Yz::echoError1('type不能为空');
|
|
if(!isset($CheckupInfo['institution_id'])) return \Yz::echoError1('institution_id不能为空');
|
|
$s=app()->make(HealthCheckupService::class);
|
|
return $s->CreateRecord($CheckupInfo);
|
|
}
|
|
}
|