新增查看患者病例接口
This commit is contained in:
@@ -49,17 +49,17 @@ class PatientCaseService extends BaseService
|
||||
$inquiry_case_product = InquiryCaseProduct::getWithProductList($params);
|
||||
if (!empty($inquiry_case_product)){
|
||||
foreach ($inquiry_case_product as &$item){
|
||||
if (!empty($item['product'])){
|
||||
$item['product_name'] = $item['product']['product_name'];
|
||||
$item['product_price'] = $item['product']['product_price'];
|
||||
$item['product_type'] = $item['product']['product_type'];
|
||||
$item['product_cover_img'] = addAliyunOssWebsite($item['product']['product_cover_img']);
|
||||
$item['product_spec'] = $item['product']['product_spec'];
|
||||
$item['license_number'] = $item['product']['license_number'];
|
||||
$item['manufacturer'] = $item['product']['manufacturer'];
|
||||
$item['packaging_unit'] = $item['product']['packaging_unit'];
|
||||
if (!empty($item['Product'])){
|
||||
$item['product_name'] = $item['Product']['product_name'];
|
||||
$item['product_price'] = $item['Product']['product_price'];
|
||||
$item['product_type'] = $item['Product']['product_type'];
|
||||
$item['product_cover_img'] = addAliyunOssWebsite($item['Product']['product_cover_img']);
|
||||
$item['product_spec'] = $item['Product']['product_spec'];
|
||||
$item['license_number'] = $item['Product']['license_number'];
|
||||
$item['manufacturer'] = $item['Product']['manufacturer'];
|
||||
$item['packaging_unit'] = $item['Product']['packaging_unit'];
|
||||
|
||||
unset($item['product']);
|
||||
unset($item['Product']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user