新增 获取家庭成员病情记录列表-分页

This commit is contained in:
2023-11-20 16:26:18 +08:00
parent 65a5f6bc4d
commit 7df80196c2
6 changed files with 81 additions and 37 deletions
@@ -2,6 +2,8 @@
namespace App\Services;
use App\Constants\HttpEnumCode;
use App\Model\OrderProduct;
use App\Model\PatientPathography;
/**
@@ -33,4 +35,32 @@ class PatientPathographyService extends BaseService
return success($result);
}
/**
* 获取家庭成员病情记录列表-分页
* @return array
*/
public function getFamilyPathographyList(): array
{
$user_info = $this->request->getAttribute("userInfo") ?? [];
$family_id = $this->request->input('family_id');
$page = $this->request->input('page', 1);
$per_page = $this->request->input('per_page', 10);
// 获取病情记录列表
$fields = [
"pathography_id",
"created_at",
"disease_class_name",
"disease_desc"
];
$params = array();
$params['user_id'] = $user_info['user_id'];
$params['patient_id'] = $user_info['client_user_id'];
$params['family_id'] = $family_id;
$patient_pathographys = PatientPathography::getPatientPathographyPage($params, $fields, $page, $per_page);
return success($patient_pathographys);
}
}