This commit is contained in:
Your Name
2026-04-15 16:31:25 +08:00
parent 906684c1ed
commit 3d9c5dd8f5
47 changed files with 7963 additions and 10 deletions
@@ -23,6 +23,8 @@ class Medicine extends BaseModel
'stock' => 'int',
'image' => 'string',
'status' => 'int',
'type' => 'string',
'gid' => 'string',
'remark' => 'string',
'create_time' => 'int',
'update_time' => 'int',
@@ -21,6 +21,12 @@ class Prescription extends BaseModel
protected $json = ['herbs', 'case_record'];
protected $jsonAssoc = true;
// 字段类型转换
protected $type = [
'dosage_amount' => 'float',
'need_decoction' => 'integer',
];
// 追加字段
protected $append = ['gender_desc'];