任务分解 #166
企业经营状况(经营异常列入‘移出’)
0%
描述
一、列入调用接口文件(ApplyInAbnormalRecordFormTest.php)
1、添加调用接口
/*$data = array("data"=>array("type"=>"applyInAbnormalRecordForms",
"attributes"=>array("reason"=>12,
"date"=>'2259-05-05',
"decisionAuthority"=>'2decisionAuthoritydecisionAuthoritydecisionAuthority',
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyInAbnormalRecordForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
2、编辑调用接口
/*$data = array("data"=>array("type"=>"applyInAbnormalRecordForms",
"attributes"=>array("reason"=>2,
"date"=>'2052-05-05',
"decisionAuthority"=>'22222decisionAuthoritydecisionAuthoritydecisionAuthority'
)
)
);
$response = $client->request(
'PUT',
'applyInAbnormalRecordForms/17',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
3、调用单条
$response = $client->request('GET', 'applyInAbnormalRecordForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
4、调用多条
$response = $client->request('GET', 'applyInAbnormalRecordForms',['haders'=>['Content-' => 'application/vnd.api+json']]);
二、移出经营异常(ApplyExAbnormalRecordFormTest.php)
1、添加接口
/*$data = array("data"=>array("type"=>"applyExAbnormalRecordForms",
"attributes"=>array("reason"=>'reasonreasonreason121',
"date"=>'2059-05-05',
"decisionAuthority"=>'decisionAuthoritydecisionAuthoritydecisionAuthority',
"inAbnormalRecordId"=>1,
"companyId"=>1,
"uid"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'applyExAbnormalRecordForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
2、编辑接口
/*$data = array("data"=>array("type"=>"applyExAbnormalRecordForms",
"attributes"=>array("reason"=>'1reasonreasonreason33333',
"date"=>'2180-04-12',
"decisionAuthority"=>'2211111decisionAuthoritydecisionAuthoritydecisionAuthority'
)
)
);
$response = $client->request(
'PUT',
'applyExAbnormalRecordForms/19',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
3、调用单条
$response = $client->request('GET', 'applyExAbnormalRecordForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
4、调用多条
$response = $client->request('GET', 'applyExAbnormalRecordForms',['haders'=>['Content-' => 'application/vnd.api+json']]);