feat: 实现TCP Server
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace app\model;
|
||||
|
||||
use support\Model;
|
||||
|
||||
/**
|
||||
* EctActions 模型
|
||||
* 表说明:ect_actions 数据表模型
|
||||
* 对应数据表:ect_actions
|
||||
* @property int $action_id action_id(非空,主键)
|
||||
* @property string $reader_no reader_no 读卡器号码(原始数据)
|
||||
* @property int $reader_id reader_id 读卡器ID
|
||||
* @property int $action_type action_type 0诊疗 1手工洗 2机洗 3 手工洗(晨洗)4机洗(晨洗)5手工洗(加强)6机洗(加强)
|
||||
* @property string $action_type_name action_type_name
|
||||
* @property string $process_order process_order
|
||||
* @property string $process_name process_name 流程名称
|
||||
* @property string $op_batchno op_batchno 编号 年月日0001
|
||||
* @property int $op_enhance op_enhance 0 普通洗 1 加强洗
|
||||
* @property int $op_morning op_morning 0 普通洗 1 晨洗
|
||||
* @property int $opuser_type opuser_type 0 医生 1 洗消工
|
||||
* @property int $opuser_id opuser_id 操作人ID:诊疗医生ID,或,清洗工ID
|
||||
* @property string $opuser_rfid opuser_rfid 操作人RFID
|
||||
* @property string $opuser_name opuser_name 姓名
|
||||
* @property int $endoscope_id endoscope_id 内镜ID
|
||||
* @property string $endoscope_rfid endoscope_rfid 内镜RFID
|
||||
* @property string $endoscope_name endoscope_name 内镜名称
|
||||
* @property int $patient_id patient_id 病人ID
|
||||
* @property string $patient_code patient_code 病人编号
|
||||
* @property string $patient_name patient_name 病人姓名
|
||||
* @property string $created_at created_at 写入数据表时间
|
||||
* @property string $op_starttime op_starttime(非空)
|
||||
* @property int $op_duration op_duration 流程持续时间(秒)
|
||||
* @property string $op_endtime op_endtime 流程结束时间
|
||||
* @property int $action2cycle action2cycle
|
||||
*/
|
||||
class EctActions extends Model
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'ect_actions';
|
||||
|
||||
/**
|
||||
* 主键字段名
|
||||
* @var string
|
||||
*/
|
||||
protected $primaryKey = 'action_id';
|
||||
|
||||
/**
|
||||
* 关闭自动时间戳
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* 允许批量赋值所有字段
|
||||
* @var array
|
||||
*/
|
||||
protected $guarded = [];
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace app\model;
|
||||
|
||||
use support\Model;
|
||||
|
||||
/**
|
||||
* EctMetaEndoscope 模型
|
||||
* 表说明:内镜
|
||||
* 对应数据表:ect_meta_endoscope
|
||||
* @property string $endoscope_id endoscope_id(非空,主键)
|
||||
* @property string $endoscope_name endoscope_name 内镜名称
|
||||
* @property string $endoscope_type endoscope_type 1.喉镜 2.胃镜 3.肠镜 4.十二指肠镜
|
||||
* @property string $endoscope_model endoscope_model
|
||||
* @property string $note note
|
||||
* @property string $endoscope_rfid endoscope_rfid 01 镜子
|
||||
* @property int $endoscope_status endoscope_status 1存储中 2诊疗中 3清洗中 4检修中
|
||||
* @property int $hospital_id hospital_id
|
||||
* @property int $department_id department_id
|
||||
* @property string $created_at created_at
|
||||
* @property string $endoscope_steel_no endoscope_steel_no
|
||||
* @property string $department department
|
||||
* @property string $rfid2 rfid2
|
||||
* @property string $rfid3 rfid3
|
||||
*/
|
||||
class EctMetaEndoscope extends Model
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'ect_meta_endoscope';
|
||||
|
||||
/**
|
||||
* 主键字段名
|
||||
* @var string
|
||||
*/
|
||||
protected $primaryKey = 'endoscope_id';
|
||||
|
||||
/**
|
||||
* 关闭自动时间戳
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* 允许批量赋值所有字段
|
||||
* @var array
|
||||
*/
|
||||
protected $guarded = [];
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace app\model;
|
||||
|
||||
use support\Model;
|
||||
|
||||
/**
|
||||
* EctMetaFacilities 模型
|
||||
* 表说明:设施表
|
||||
* 对应数据表:ect_meta_facilities
|
||||
* @property string $facility_id facility_id(非空,主键)
|
||||
* @property string $facility_name facility_name 槽/清洗机名称
|
||||
* @property string $facility_description facility_description 描述
|
||||
* @property string $extend_brand extend_brand 品牌
|
||||
* @property string $extend_model extend_model 型号
|
||||
* @property string $created_at created_at 创建时间
|
||||
* @property int $facility_type facility_type 1 工作站 2 洗消槽 3 清洗机 4 诊疗主机 5 镜柜 6 结束 7测漏 8 免干燥
|
||||
* @property int $facility_parent_id facility_parent_id 父ID
|
||||
* @property int $reader_id reader_id 读卡器ID
|
||||
* @property int $process_id process_id 流程ID
|
||||
* @property int $process_order process_order 流程顺序
|
||||
* @property string $status status 1.启用 2.禁用
|
||||
* @property string $department_id department_id 所属科室ID
|
||||
* @property int $detection_device_id detection_device_id
|
||||
*/
|
||||
class EctMetaFacilities extends Model
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'ect_meta_facilities';
|
||||
|
||||
/**
|
||||
* 主键字段名
|
||||
* @var string
|
||||
*/
|
||||
protected $primaryKey = 'facility_id';
|
||||
|
||||
/**
|
||||
* 关闭自动时间戳
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* 允许批量赋值所有字段
|
||||
* @var array
|
||||
*/
|
||||
protected $guarded = [];
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace app\model;
|
||||
|
||||
use support\Model;
|
||||
|
||||
/**
|
||||
* EctMetaProcess 模型
|
||||
* 表说明:流程表
|
||||
* 对应数据表:ect_meta_process
|
||||
* @property string $process_id process_id(非空,主键)
|
||||
* @property string $process_name process_name 流程名称
|
||||
* @property int $process_duration process_duration 流程时长
|
||||
* @property int $process_duration_special process_duration_special 特殊流程时长
|
||||
* @property string $process_type process_type 洗消类型
|
||||
* @property int $optional optional 是否必备 0 选配 1 必配
|
||||
* @property int $process_order process_order 顺序
|
||||
* @property int $status status 状态 1 启用 0 不起用
|
||||
*/
|
||||
class EctMetaProcess extends Model
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'ect_meta_process';
|
||||
|
||||
/**
|
||||
* 主键字段名
|
||||
* @var string
|
||||
*/
|
||||
protected $primaryKey = 'process_id';
|
||||
|
||||
/**
|
||||
* 关闭自动时间戳
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* 允许批量赋值所有字段
|
||||
* @var array
|
||||
*/
|
||||
protected $guarded = [];
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace app\model;
|
||||
|
||||
use support\Model;
|
||||
|
||||
/**
|
||||
* EctMetaRfidreader 模型
|
||||
* 表说明:读卡器表
|
||||
* 对应数据表:ect_meta_rfidreader
|
||||
* @property string $reader_id reader_id(非空,主键)
|
||||
* @property string $reader_no reader_no 读卡器编码
|
||||
* @property string $reader_port reader_port 读卡器端口
|
||||
* @property string $reader_model reader_model 读卡器厂家
|
||||
* @property int $reader_status reader_status 1 在线 2下线
|
||||
* @property string $reader_ip reader_ip 读卡器IP
|
||||
* @property string $created_at created_at 创建时间
|
||||
* @property string $reader_name reader_name
|
||||
* @property string $rfiddevice_type rfiddevice_type
|
||||
*/
|
||||
class EctMetaRfidreader extends Model
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'ect_meta_rfidreader';
|
||||
|
||||
/**
|
||||
* 主键字段名
|
||||
* @var string
|
||||
*/
|
||||
protected $primaryKey = 'reader_id';
|
||||
|
||||
/**
|
||||
* 关闭自动时间戳
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* 允许批量赋值所有字段
|
||||
* @var array
|
||||
*/
|
||||
protected $guarded = [];
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace app\model;
|
||||
|
||||
use support\Model;
|
||||
|
||||
/**
|
||||
* EctUser 模型
|
||||
* 表说明:人员表
|
||||
* 对应数据表:ect_user
|
||||
* @property string $user_id user_id(非空,主键)
|
||||
* @property string $user_name user_name 人员名称
|
||||
* @property string $user_account user_account 账号
|
||||
* @property string $user_password user_password 密码
|
||||
* @property string $user_rfid user_rfid 人员卡RFID编码
|
||||
* @property string $login_time login_time 登录时间
|
||||
* @property string $created_at created_at 创建时间
|
||||
* @property int $role_id role_id 1 管理员 2 医生 3清洗工
|
||||
* @property string $work_number work_number 工作编码
|
||||
* @property string $supervisor supervisor 上级领导
|
||||
* @property string $work_group work_group 工作组
|
||||
* @property string $department_id department_id 所属科室ID
|
||||
* @property string $rfid3 rfid3
|
||||
*/
|
||||
class EctUser extends Model
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'ect_user';
|
||||
|
||||
/**
|
||||
* 主键字段名
|
||||
* @var string
|
||||
*/
|
||||
protected $primaryKey = 'user_id';
|
||||
|
||||
/**
|
||||
* 关闭自动时间戳
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* 允许批量赋值所有字段
|
||||
* @var array
|
||||
*/
|
||||
protected $guarded = [];
|
||||
}
|
||||
Reference in New Issue
Block a user