lis_model.go 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. package models
  2. type DoctorAdvice struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  5. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  6. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  7. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  8. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  9. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  10. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  11. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  12. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  13. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  14. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  15. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  16. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  17. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  18. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  19. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  20. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  21. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  22. Status int64 `gorm:"column:status" json:"status" form:"status"`
  23. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  24. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  25. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  26. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  27. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  28. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  29. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  30. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  31. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  32. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  33. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  34. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  35. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  36. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  37. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  38. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  39. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  40. AdviceId int64 `gorm:"-"`
  41. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  42. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  43. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  44. WeekDay string `gorm:"column:week_day" json:"week_day"`
  45. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  46. TemplateId string `gorm:"column:template_id" json:"template_id"`
  47. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  48. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  49. }
  50. func (DoctorAdvice) TableName() string {
  51. return "xt_doctor_advice"
  52. }
  53. type FiledConfig struct {
  54. ID int64 `gorm:"column:id" json:"id"`
  55. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  56. Module int64 `gorm:"column:module" json:"module"`
  57. FiledName string `gorm:"column:filed_name" json:"filed_name"`
  58. FiledNameCn string `gorm:"column:filed_name_cn" json:"filed_name_cn"`
  59. IsShow int64 `gorm:"column:is_show" json:"is_show"`
  60. CreateTime int64 `gorm:"column:create_time" json:"create_time"`
  61. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  62. SysModule int64 `gorm:"column:sys_module" json:"sys_module" form:"sys_module"`
  63. }
  64. func (FiledConfig) TableName() string {
  65. return "xt_filed_config"
  66. }
  67. type MiddlePatients struct {
  68. ID int64 `gorm:"column:id" json:"id" form:"id"`
  69. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  70. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  71. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  72. XtPatientId int64 `gorm:"column:xt_patient_id" json:"xt_patient_id" form:"xt_patient_id"`
  73. SelectType int64 `gorm:"column:select_type" json:"select_type" form:"select_type"`
  74. Status int `gorm:"column:status" json:"status" form:"status"`
  75. }
  76. func (MiddlePatients) TableName() string {
  77. return "xt_middle_patients"
  78. }
  79. type Patients struct {
  80. ID int64 `gorm:"column:id" json:"id" form:"id"`
  81. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  82. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  83. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  84. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  85. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  86. Name string `gorm:"column:name" json:"name" form:"name"`
  87. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  88. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  89. }
  90. func (Patients) TableName() string {
  91. return "xt_patients"
  92. }
  93. type DialysisSchedule struct {
  94. ID int64 `gorm:"column:id" json:"id" form:"id"`
  95. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  96. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  97. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  98. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  99. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  100. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  101. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  102. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  103. Status int64 `gorm:"column:status" json:"status" form:"status"`
  104. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  105. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  106. Patients Patients `gorm:"ForeignKey:PatientId" json:"patient"`
  107. }
  108. func (DialysisSchedule) TableName() string {
  109. return "xt_schedule"
  110. }
  111. type MiddleSyncInfo struct {
  112. ID int64 `gorm:"column:id" json:"id" form:"id"`
  113. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  114. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  115. SyncTime int64 `gorm:"column:sync_time" json:"sync_time" form:"sync_time"`
  116. SyncResultType int `gorm:"column:sync_result_type" json:"sync_result_type" form:"sync_result_type"`
  117. SyncRsultRemark string `gorm:"column:sync_result_remark" json:"sync_result_remark" form:"sync_result_remark"`
  118. SyncTotalNum int64 `gorm:"column:sync_total_num" json:"sync_total_num" form:"sync_total_num"`
  119. SyncSuccessNum int64 `gorm:"column:sync_success_num" json:"sync_success_num" form:"sync_success_num"`
  120. SyncInfo string `gorm:"column:sync_info" json:"sync_info" form:"sync_info"`
  121. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  122. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  123. }
  124. func (MiddleSyncInfo) TableName() string {
  125. return "xt_middle_sync_info"
  126. }
  127. type TBLISItem struct {
  128. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  129. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  130. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  131. PatientName string `gorm:"column:patient_name" json:"patient_name" form:"patient_name"`
  132. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  133. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  134. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  135. ItemType int `gorm:"column:item_type" json:"item_type" form:"item_type"`
  136. ItemValue string `gorm:"column:item_value" json:"item_value" form:"item_value"`
  137. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  138. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  139. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  140. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  141. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  142. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  143. }
  144. func (TBLISItem) TableName() string {
  145. return "TB_LIS_Item"
  146. }
  147. type Inspection struct {
  148. ID int64 `gorm:"column:id" json:"id" form:"id"`
  149. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  150. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  151. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  152. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  153. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  154. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  155. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  156. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  157. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  158. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  159. Status int64 `gorm:"column:status" json:"status" form:"status"`
  160. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  161. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  162. }
  163. func (Inspection) TableName() string {
  164. return "xt_inspection"
  165. }
  166. type InspectionReference struct {
  167. ID int64 `gorm:"column:id" json:"id" form:"id"`
  168. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  169. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  170. Project string `gorm:"column:project" json:"project" form:"project"`
  171. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  172. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  173. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  174. Item string `gorm:"column:item" json:"item" form:"item"`
  175. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  176. RangeType int `gorm:"column:range_type" json:"range_type" form:"range_type"`
  177. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  178. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  179. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  180. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  181. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  182. Status int64 `gorm:"column:status" json:"status" form:"status"`
  183. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  184. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  185. }
  186. func (InspectionReference) TableName() string {
  187. return "xt_inspection_reference"
  188. }
  189. type MiddleReportHandle struct {
  190. ID int64 `gorm:"column:id" json:"id" form:"id"`
  191. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  192. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  193. ApplyNo string `gorm:"column:apply_no" json:"apply_no" form:"apply_no"`
  194. ReportId string `gorm:"column:report_id" json:"report_id" form:"report_id"`
  195. Name string `gorm:"column:name" json:"name" form:"name"`
  196. Sex string `gorm:"column:sex" json:"sex" form:"sex"`
  197. Age string `gorm:"column:age" json:"age" form:"age"`
  198. Dept string `gorm:"column:dept" json:"dept" form:"dept"`
  199. PatientId string `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  200. RequestTime string `gorm:"column:request_time" json:"request_time" form:"request_time"`
  201. ExecuteTime string `gorm:"column:execute_time" json:"execute_time" form:"execute_time"`
  202. ReceiveTime string `gorm:"column:receive_time" json:"receive_time" form:"receive_time"`
  203. Item string `gorm:"column:item" json:"item" form:"item"`
  204. CheckTime string `gorm:"column:check_time" json:"check_time" form:"check_time"`
  205. PatientType string `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  206. ReportInfo string `gorm:"column:report_info" json:"report_info" form:"report_info"`
  207. ReportInfoItemNum int64 `gorm:"column:report_info_item_num" json:"report_info_item_num" form:"report_info_item_num"`
  208. ReportInfoItemHandleNum int64 `gorm:"column:report_info_item_handle_num" json:"report_info_item_handle_num" form:"report_info_item_handle_num"`
  209. HandleType int64 `gorm:"column:handle_type" json:"handle_type" form:"handle_type"`
  210. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  211. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  212. }
  213. func (MiddleReportHandle) TableName() string {
  214. return "xt_middle_report_handle"
  215. }
  216. type MiddleInspection struct {
  217. ID int64 `gorm:"column:id" json:"id" form:"id"`
  218. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  219. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  220. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  221. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  222. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  223. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  224. InspectType int `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  225. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  226. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  227. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  228. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  229. Status int64 `gorm:"column:status" json:"status" form:"status"`
  230. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  231. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  232. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  233. IsSync int `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  234. // SyncItemId int64 `gorm:"column:sync_item_id" json:"sync_item_id" form:"sync_item_id"`
  235. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  236. SyncId int64 `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  237. }
  238. func (MiddleInspection) TableName() string {
  239. return "xt_middle_inspection"
  240. }
  241. type MiddleInspectionReference struct {
  242. ID int64 `gorm:"column:id" json:"id" form:"id"`
  243. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  244. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  245. Project string `gorm:"column:project" json:"project" form:"project"`
  246. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  247. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  248. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  249. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  250. Item string `gorm:"column:item" json:"item" form:"item"`
  251. RangeType int `gorm:"column:range_type" json:"range_type" form:"range_type"`
  252. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  253. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  254. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  255. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  256. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  257. Status int64 `gorm:"column:status" json:"status" form:"status"`
  258. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  259. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  260. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  261. IsSync int `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  262. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  263. SyncId int64 `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  264. }
  265. func (MiddleInspectionReference) TableName() string {
  266. return "xt_middle_inspection_reference"
  267. }
  268. type XtDoctorAdvice struct {
  269. ID int64 `gorm:"column:id" json:"id" form:"id"`
  270. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  271. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  272. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  273. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  274. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  275. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  276. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  277. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  278. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  279. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  280. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  281. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  282. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  283. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  284. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  285. Status int64 `gorm:"column:status" json:"status" form:"status"`
  286. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  287. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  288. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  289. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  290. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  291. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  292. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  293. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  294. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  295. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  296. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  297. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  298. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  299. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  300. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  301. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  302. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  303. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  304. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  305. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  306. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  307. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  308. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  309. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  310. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  311. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  312. SyncAdviceId int64 `gorm:"column:sync_advice_id" json:"sync_advice_id" form:"sync_advice_id"`
  313. IsSync int64 `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  314. }
  315. func (XtDoctorAdvice) TableName() string {
  316. return "xt_doctor_advice"
  317. }
  318. type UserAdminRole struct {
  319. ID int64 `gorm:"column:id" json:"id"`
  320. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  321. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  322. AppId int64 `gorm:"column:app_id" json:"app_id"`
  323. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  324. UserName string `gorm:"column:user_name" json:"user_name"`
  325. Avatar string `gorm:"column:avatar" json:"avatar"`
  326. UserType int64 `gorm:"column:user_type" json:"user_type"`
  327. UserTitle int64 `gorm:"column:user_title" json:"user_title"`
  328. Intro string `gorm:"column:intro" json:"intro"`
  329. Status int64 `gorm:"column:status" json:"status"`
  330. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  331. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  332. }
  333. func (UserAdminRole) TableName() string {
  334. return "sgj_user_admin_role"
  335. }
  336. type VMHisProjectTeam struct {
  337. ID int64 `gorm:"column:id" json:"id" form:"id"`
  338. ProjectTeam string `gorm:"column:project_team" json:"project_team" form:"project_team"`
  339. Price float64 `gorm:"column:price" json:"price" form:"price"`
  340. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  341. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  342. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  343. TeamType int64 `gorm:"column:team_type" json:"team_type" form:"team_type"`
  344. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  345. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  346. Status int64 `gorm:"column:status" json:"status" form:"status"`
  347. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  348. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  349. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  350. VMItemProjectList []*VMItemProjectList `gorm:"-" json:"list" form:"list"`
  351. ItemId string `gorm:"column:item_id" json:"item_id" form:"item_id"`
  352. }
  353. func (VMHisProjectTeam) TableName() string {
  354. return "xt_his_project_team"
  355. }
  356. type VMItemProjectList struct {
  357. ID int64 `gorm:"column:id" json:"id" form:"id"`
  358. Number int64 `gorm:"column:number" json:"number" form:"number"`
  359. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  360. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  361. Status int64 `gorm:"column:status" json:"status" form:"status"`
  362. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  363. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  364. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  365. Type int64 `gorm:"column:type" json:"type" form:"type"`
  366. }
  367. func (VMItemProjectList) TableName() string {
  368. return "xt_his_project_list"
  369. }