新增 获取家庭成员用药记录列表
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Constants\HttpEnumCode;
|
||||
use App\Model\BasicJob;
|
||||
use App\Model\BasicNation;
|
||||
use App\Model\DiseaseClass;
|
||||
use App\Model\OrderProduct;
|
||||
use App\Model\PatientFamily as PatientFamilyModel;
|
||||
use App\Model\PatientFamilyHealth;
|
||||
use App\Model\PatientFamilyPersonal as PatientFamilyPersonalModel;
|
||||
@@ -859,16 +860,37 @@ class PatientFamilyService extends BaseService
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo");
|
||||
|
||||
$family_id = $this->request->input('family_id');
|
||||
$family_id = $this->request->input('family_id',0);
|
||||
$page = $this->request->input('page', 1);
|
||||
$per_page = $this->request->input('per_page', 10);
|
||||
|
||||
$params = array();
|
||||
$params['patient_id'] = $user_info['client_user_id'];
|
||||
if ($family_id != 0){
|
||||
$params['family_id'] = $user_info['family_id'];
|
||||
}
|
||||
|
||||
$params['order_product_status'] = 4;// 订单状态(1:待支付 2:待发货 3:已发货 4:已签收 5:已取消)
|
||||
$params['pay_status'] = 2;// 支付状态(1:未支付 2:已支付 3:支付中 4:支付失败 5:支付超时 6:支付关闭 7:已撤销 8:转入退款)
|
||||
|
||||
$fields = [
|
||||
'order_product_id',
|
||||
'order_inquiry_id',
|
||||
'order_prescription_id',
|
||||
'family_id',
|
||||
];
|
||||
|
||||
|
||||
return success();
|
||||
$result = OrderProduct::getProductRecordPage($params,$fields,$page,$per_page);
|
||||
if (!empty($result['data'])){
|
||||
foreach ($result['data'] as &$item){
|
||||
if (!empty($item['OrderProductItem'])){
|
||||
foreach ($item['OrderProductItem'] as &$order_product_item){
|
||||
$order_product_item['product_cover_img'] = addAliyunOssWebsite($order_product_item['product_cover_img']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return success($result);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user