Files
xk-docs/docs/projects/xk-api-yii/models.md
2026-07-08 15:04:42 +08:00

6.9 KiB

xk-api-yii 模型分析

所有模型对应 z_o_xk 库的 yii_* 表。

配置/系统 (config/)

模型 表名 说明
AdminModel yii_admin 管理员
AdminAccessTokenModel yii_admin_access_token 管理员令牌
AdminRoleModel yii_admin_role 管理员角色关联
AttachmentModel yii_attachment 文件附件
AttachmentGroupModel yii_attachment_group 附件分组
AuthAssignmentModel yii_auth_assignment RBAC 分配
AuthItemModel yii_auth_item RBAC 项
AuthItemChildModel yii_auth_item_child RBAC 层级
AuthRoleModel yii_auth_role 认证角色
AuthRuleModel yii_auth_rule 认证规则(菜单/权限)
BaseConfigModel yii_base_config 基础配置(协议)
BillsModel yii_bills 账单
CallbackModel yii_callback 回调记录
CategoriesModel yii_categories 分类
ConfigModel yii_config 系统配置
MenuModel yii_menu 菜单
NavModel yii_nav 轮播图
PayConfigModel yii_pay_config 支付配置
PlatformModel yii_platform 平台配置
PlateModel yii_plate 平台(旧)
RegionModel yii_region 地区
RoleModel yii_role 角色
RoleMenuModel yii_role_menu 角色-菜单
SystemConfigModel yii_system_config 系统配置
SystemNoticeModel yii_system_notice 系统通知

医生 (doctor/)

模型 表名 说明
DoctorInfoModel yii_doctor_info 医生基本信息
DoctorServiceModel yii_doctor_service 医生服务设置
DoctorIdentityModel yii_doctor_identity 医生身份验证
DoctorPracticingModel yii_doctor_practicing 医生执业证书
DoctorRegisterModel yii_doctor_register 医生挂号
DoctorRosteringModel yii_doctor_rostering 医生排班
DoctorNoticeModel yii_doctor_notice 医生停诊通知
DoctorPatientModel yii_doctor_patient 医生患者列表
DoctorPatientRemarkModel yii_doctor_patient_remark 患者备注
DoctorArticleModel yii_doctor_article 医生文章
DoctorApplyModel yii_doctor_apply 医生升级申请
DoctorCommonModel yii_doctor_common 医生常用药品
DoctorTagIllModel yii_doctor_tag_ill 医生疾病标签
DoctorTagWordModel yii_doctor_tag_word 医生常用语
DoctorTitleModel yii_doctor_title 医生职称
DoctorStoreModel yii_store_doctor 门店-医生关联
DepartmentModel yii_department 科室
DiagnoseCommonModel yii_diagnose_common 常用医嘱
DiseaseModel yii_disease 疾病库
DiseaseCommonModel yii_disease_common 常用疾病
PharmacistIdentityModel yii_pharmacist_identity 药师身份验证

药品 (drug/)

模型 表名 说明
DrugModel yii_drug 药品主表
DrugCategoriesModel yii_drug_categories 药品分类
DrugStoreRelationsModel yii_drug_store_relations 药品-门店定价
DrugNatureModel yii_drug_nature 药品配伍(十八反十九畏)
DrugDosageModel yii_drug_dosage 中药剂量
DrugUseFrequencyModel yii_drug_use_frequency 用药频率
DrugUseNumModel yii_drug_use_num 用药数量
DrugUseTimeModel yii_drug_use_time 用药时间
DrugUseTypeModel yii_drug_use_type 用药方式
DrugUseWayModel yii_drug_use_way 煎煮方式
DrugStoreModel yii_drugstore 药品仓库
DrugStoreDrugModel yii_drugstore_drug 仓库药品
CartModel yii_carts 购物车
PackageMethodModel package_method 包装方式
ProcessRuleModel yii_process_rule 加工规则
ProcessRuleNoteModel yii_process_rule_note 加工规则说明
WestUnitModel yii_west_unit 西药单位

订单 (order/)

模型 表名 说明
OrderModel yii_order 咨询订单
ProductOrderModel yii_product_order 产品订单
ProductOrderItemsModel yii_product_order_items 订单明细
RegisterOrderModel yii_register 挂号订单
OrderRefundModel yii_order_refund 咨询退款
RegisterRefundModel yii_register_refund 挂号退款
ProductOrderRefundModel yii_product_order_refund 产品退款
OrderNumberChangeModel yii_order_number_change 回复次数变更
OrderVideoInfoModel yii_order_video_info 视频通话信息
PaymentOrderModel yii_payment_order 咨询支付记录
PaymentProductOrderModel yii_payment_product_order 产品支付记录
PaymentRegisterModel yii_payment_register 挂号支付记录
PaymentRefundModel yii_payment_refund 咨询退款记录
PaymentProductRefundModel yii_payment_product_refund 产品退款记录
PaymentRegisterRefundModel yii_payment_register_refund 挂号退款记录
RefundReasonModel yii_refund_reason 退款原因

处方 (prescription/)

模型 表名 说明
PrescriptionModel yii_prescription 主处方表
PrescriptionChineseModel yii_prescription_chinese 中药处方
PrescriptionWestModel yii_prescription_west 西药处方
PrescriptionGranularModel yii_prescription_granular 颗粒处方
PrescriptionServerModel yii_prescription_server 服务包处方
TransferPrescriptionModel yii_transfer_prescription 转诊处方
PrescripOrderLogModel yii_prescrip_order_log 处方订单日志
PrescripOrderRefundModel yii_prescrip_order_refund 处方订单退款

财务 (finacne/)

模型 表名 说明
LedgerModel yii_ledger 分账记录
LedgerLogModel yii_ledger_log 分账变更日志
CashAccountModel yii_cash_account 提现账户
CashApplyModel yii_cash_apply 提现申请
ChargeCashPayRecordModel yii_charge_cash_pay_record 代理付款记录
FundWaterModel yii_fund_water 资金流水
ReconciliationModel yii_reconciliation 对账记录
RefundBillsModel yii_refund_bills 退款账单

其他

目录 主要模型 说明
user/ UserModel, ServiceUserModel, UserPatientModel 用户、服务用户、患者
recipe/ ChineseRecipeModel, WestRecipeModel, GranularRecipeModel 处方笺
hospital/ HospitalModel, HospitalYardModel 医院、院区
im/ ImMessageModel, ImMessageSessionModel 即时通讯
log/ LogModel, OldOpLogModel 日志
physical/ PhysicalPackageModel, PhysicalReserveModel 体检
express/ ExpressFeesModel 快递费用