张保健 5 months ago
parent
commit
3779b53684
9 changed files with 8396 additions and 3249 deletions
  1. BIN
      Data_Upload_Api
  2. 884 148
      controllers/sync.go
  3. 1 3
      main.go
  4. 574 222
      models/src_data.go
  5. 573 327
      models/sz/target_data.go
  6. 2 2
      routers/router.go
  7. 5859 2436
      service/city/auto_create_week_schedules_service.go
  8. 490 98
      service/city_data_uoload_service.go
  9. 13 13
      service/db.go

BIN
Data_Upload_Api View File


File diff suppressed because it is too large
+ 884 - 148
controllers/sync.go


+ 1 - 3
main.go View File

@@ -4,8 +4,6 @@ import (
4 4
 	_ "Data_Upload_Api/routers"
5 5
 	"Data_Upload_Api/service"
6 6
 	"Data_Upload_Api/service/city"
7
-	_ "Data_Upload_Api/service/city"
8
-
9 7
 	"github.com/astaxie/beego"
10 8
 )
11 9
 
@@ -15,6 +13,6 @@ func init() {
15 13
 
16 14
 func main() {
17 15
 	city.BeginAutoJob()
18
-
16
+	city.SyncToLhblYxxxzx()
19 17
 	beego.Run()
20 18
 }

+ 574 - 222
models/src_data.go View File

@@ -81,6 +81,29 @@ func (UserAdminRole) TableName() string {
81 81
 	return "sgj_user_admin_role"
82 82
 }
83 83
 
84
+type DeviceZone struct {
85
+	ID         int64  `gorm:"column:id" json:"id"`
86
+	OrgID      int64  `gorm:"column:org_id" json:"-"`
87
+	Name       string `json:"name"`
88
+	Type       int64  `json:"type"`
89
+	Status     int8   `json:"-"`
90
+	CreateTime int64  `gorm:"column:ctime" json:"-"`
91
+	ModifyTime int64  `gorm:"column:mtime" json:"-"`
92
+}
93
+
94
+func (DeviceZone) TableName() string {
95
+	return "xt_device_zone"
96
+}
97
+
98
+type ResultOne struct {
99
+	Sumamt float64 `gorm:"column:sumamt" json:"sumamt" form:"sumamt"`
100
+	Amt    float64 `gorm:"column:amt" json:"amt" form:"amt"`
101
+}
102
+
103
+func (ResultOne) TableName() string {
104
+	return "ResultOne"
105
+}
106
+
84 107
 type HisPatient struct {
85 108
 	ID                     int64   `gorm:"column:id" json:"id" form:"id"`
86 109
 	BalanceAccountsType    int64   `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
@@ -125,7 +148,7 @@ type HisPatient struct {
125 148
 	YiliaoNumber           string  `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
126 149
 	MzNumber               string  `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
127 150
 	PatientInfo            string  `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
128
-	Diagnosis              string   `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
151
+	Diagnosis              string  `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
129 152
 	SickType               int64   `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
130 153
 }
131 154
 
@@ -261,19 +284,19 @@ func (DeviceNumber) TableName() string {
261 284
 	return "xt_device_number"
262 285
 }
263 286
 
264
-type DeviceZone struct {
265
-	ID     int64  `gorm:"column:id" json:"id"`
266
-	OrgId  int64  `gorm:"column:org_id" json:"org_id"`
267
-	Name   string `gorm:"column:name" json:"name"`
268
-	Type   int64  `gorm:"column:type" json:"type"`
269
-	Status int64  `gorm:"column:status" json:"status"`
270
-	Ctime  int64  `gorm:"column:ctime" json:"ctime"`
271
-	Mtime  int64  `gorm:"column:mtime" json:"mtime"`
272
-}
287
+// type DeviceZone struct {
288
+// 	ID     int64  `gorm:"column:id" json:"id"`
289
+// 	OrgId  int64  `gorm:"column:org_id" json:"org_id"`
290
+// 	Name   string `gorm:"column:name" json:"name"`
291
+// 	Type   int64  `gorm:"column:type" json:"type"`
292
+// 	Status int64  `gorm:"column:status" json:"status"`
293
+// 	Ctime  int64  `gorm:"column:ctime" json:"ctime"`
294
+// 	Mtime  int64  `gorm:"column:mtime" json:"mtime"`
295
+// }
273 296
 
274
-func (DeviceZone) TableName() string {
275
-	return "xt_device_zone"
276
-}
297
+// func (DeviceZone) TableName() string {
298
+// 	return "xt_device_zone"
299
+// }
277 300
 
278 301
 type Schedule struct {
279 302
 	ID           int64        `gorm:"column:id" json:"id"`
@@ -448,66 +471,68 @@ func (DoctorAdviceTemplate) TableName() string {
448 471
 }
449 472
 
450 473
 type AssessmentAfterDislysis struct {
451
-	ID                              int64   `gorm:"column:id" json:"id"`
452
-	UserOrgId                       int64   `gorm:"column:user_org_id" json:"user_org_id"`
453
-	PatientId                       int64   `gorm:"column:patient_id" json:"patient_id"`
454
-	AssessmentDate                  int64   `gorm:"column:assessment_date" json:"assessment_date"`
455
-	DialysisOrderId                 int64   `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
456
-	Temperature                     float64 `gorm:"column:temperature" json:"temperature"`
457
-	PulseFrequency                  float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
458
-	BreathingRate                   float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
459
-	SystolicBloodPressure           float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
460
-	DiastolicBloodPressure          float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
461
-	BloodPressureType               int64   `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
462
-	ActualUltrafiltration           float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
463
-	ActualDisplacement              float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
464
-	ActualTreatmentHour             int64   `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
465
-	ActualTreatmentMinute           int64   `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
466
-	WeighingWay                     string  `gorm:"column:weighing_way" json:"weighing_way"`
467
-	WeightAfter                     float64 `gorm:"column:weight_after" json:"weight_after"`
468
-	WeightLoss                      float64 `gorm:"column:weight_loss" json:"weight_loss"`
469
-	Cruor                           string  `gorm:"column:cruor" json:"cruor"`
470
-	SymptomAfterDialysis            string  `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
471
-	InternalFistula                 string  `gorm:"column:internal_fistula" json:"internal_fistula"`
472
-	Catheter                        string  `gorm:"column:catheter" json:"catheter"`
473
-	Complication                    string  `gorm:"column:complication" json:"complication"`
474
-	Evaluator                       int64   `gorm:"column:evaluator" json:"evaluator"`
475
-	Remark                          string  `gorm:"column:remark" json:"remark"`
476
-	DialysisIntakes                 int64   `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
477
-	DialysisIntakesFeed             int64   `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
478
-	DialysisIntakesTransfusion      int64   `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
479
-	DialysisIntakesBloodTransfusion int64   `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
480
-	DialysisIntakesWashpipe         int64   `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
481
-	Status                          int64   `gorm:"column:status" json:"status"`
482
-	CreatedTime                     int64   `gorm:"column:created_time" json:"created_time"`
483
-	UpdatedTime                     int64   `gorm:"column:updated_time" json:"updated_time"`
484
-	Creater                         int64   `gorm:"column:creater" json:"creater"`
485
-	Modifier                        int64   `gorm:"column:modifier" json:"modifier"`
486
-	BloodAccessPartId               int64   `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
487
-	BloodAccessPartOperaId          int64   `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
488
-	PuncturePointOozingBlood        int64   `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
489
-	PuncturePointHaematoma          int64   `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
490
-	InternalFistulaTremorAc         int64   `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
491
-	PatientGose                     int64   `gorm:"column:patient_gose" json:"patient_gose"`
492
-	InpatientDepartment             string  `gorm:"column:inpatient_department" json:"inpatient_department"`
493
-	ObservationContent              string  `gorm:"column:observation_content" json:"observation_content"`
494
-	ObservationContentOther         string  `gorm:"column:observation_content_other" json:"observation_content_other"`
495
-	DryWeight                       float64 `gorm:"column:dry_weight" json:"dry_weight"`
496
-	DialysisProcess                 int64   `gorm:"column:dialysis_process" json:"dialysis_process"`
497
-	InAdvanceMinute                 float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
498
-	InAdvanceReason                 string  `gorm:"column:in_advance_reason" json:"in_advance_reason"`
499
-	HemostasisMinute                int64   `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
500
-	HemostasisOpera                 int64   `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
501
-	TremorNoise                     int64   `gorm:"column:tremor_noise" json:"tremor_noise"`
502
-	DisequilibriumSyndrome          int64   `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
503
-	DisequilibriumSyndromeOption    string  `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
504
-	ArterialTube                    int64   `gorm:"column:arterial_tube" json:"arterial_tube"`
505
-	IntravenousTube                 int64   `gorm:"column:intravenous_tube" json:"intravenous_tube"`
506
-	Dialyzer                        int64   `gorm:"column:dialyzer" json:"dialyzer"`
507
-	InAdvanceReasonOther            string  `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
508
-	AssessmentDoctor                int64   `gorm:"column:assessment_doctor" json:"assessment_doctor"`
509
-	AssessmentTime                  int64   `gorm:"column:assessment_time" json:"assessment_time"`
510
-	IsEat                           int64   `gorm:"column:is_eat" json:"is_eat"`
474
+	ID                     int64   `gorm:"column:id" json:"id"`
475
+	UserOrgId              int64   `gorm:"column:user_org_id" json:"user_org_id"`
476
+	PatientId              int64   `gorm:"column:patient_id" json:"patient_id"`
477
+	AssessmentDate         int64   `gorm:"column:assessment_date" json:"assessment_date"`
478
+	DialysisOrderId        int64   `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
479
+	Temperature            float64 `gorm:"column:temperature" json:"temperature"`
480
+	PulseFrequency         float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
481
+	BreathingRate          string  `gorm:"column:breathing_rate" json:"breathing_rate"`
482
+	SystolicBloodPressure  float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
483
+	DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
484
+	BloodPressureType      int64   `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
485
+	ActualUltrafiltration  float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
486
+	ActualDisplacement     float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
487
+	ActualTreatmentHour    int64   `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
488
+	ActualTreatmentMinute  int64   `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
489
+	WeighingWay            string  `gorm:"column:weighing_way" json:"weighing_way"`
490
+	WeightAfter            float64 `gorm:"column:weight_after" json:"weight_after"`
491
+	WeightLoss             float64 `gorm:"column:weight_loss" json:"weight_loss"`
492
+	Cruor                  string  `gorm:"column:cruor" json:"cruor"`
493
+	SymptomAfterDialysis   string  `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
494
+	InternalFistula        string  `gorm:"column:internal_fistula" json:"internal_fistula"`
495
+	Catheter               string  `gorm:"column:catheter" json:"catheter"`
496
+	Complication           string  `gorm:"column:complication" json:"complication"`
497
+	Evaluator              int64   `gorm:"column:evaluator" json:"evaluator"`
498
+	Remark                 string  `gorm:"column:remark" json:"remark"`
499
+	// DialysisIntakes                 int64   `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
500
+	// DialysisIntakesFeed             int64   `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
501
+	// DialysisIntakesTransfusion      int64   `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
502
+	// DialysisIntakesBloodTransfusion int64   `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
503
+	// DialysisIntakesWashpipe         int64   `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
504
+	Ktv                          string  `gorm:"column:ktv" json:"ktv"`
505
+	Urr                          string  `gorm:"column:urr" json:"urr"`
506
+	Status                       int64   `gorm:"column:status" json:"status"`
507
+	CreatedTime                  int64   `gorm:"column:created_time" json:"created_time"`
508
+	UpdatedTime                  int64   `gorm:"column:updated_time" json:"updated_time"`
509
+	Creater                      int64   `gorm:"column:creater" json:"creater"`
510
+	Modifier                     int64   `gorm:"column:modifier" json:"modifier"`
511
+	BloodAccessPartId            int64   `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
512
+	BloodAccessPartOperaId       int64   `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
513
+	PuncturePointOozingBlood     int64   `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
514
+	PuncturePointHaematoma       int64   `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
515
+	InternalFistulaTremorAc      int64   `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
516
+	PatientGose                  int64   `gorm:"column:patient_gose" json:"patient_gose"`
517
+	InpatientDepartment          string  `gorm:"column:inpatient_department" json:"inpatient_department"`
518
+	ObservationContent           string  `gorm:"column:observation_content" json:"observation_content"`
519
+	ObservationContentOther      string  `gorm:"column:observation_content_other" json:"observation_content_other"`
520
+	DryWeight                    float64 `gorm:"column:dry_weight" json:"dry_weight"`
521
+	DialysisProcess              int64   `gorm:"column:dialysis_process" json:"dialysis_process"`
522
+	InAdvanceMinute              float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
523
+	InAdvanceReason              string  `gorm:"column:in_advance_reason" json:"in_advance_reason"`
524
+	HemostasisMinute             int64   `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
525
+	HemostasisOpera              int64   `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
526
+	TremorNoise                  int64   `gorm:"column:tremor_noise" json:"tremor_noise"`
527
+	DisequilibriumSyndrome       int64   `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
528
+	DisequilibriumSyndromeOption string  `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
529
+	ArterialTube                 int64   `gorm:"column:arterial_tube" json:"arterial_tube"`
530
+	IntravenousTube              int64   `gorm:"column:intravenous_tube" json:"intravenous_tube"`
531
+	Dialyzer                     int64   `gorm:"column:dialyzer" json:"dialyzer"`
532
+	InAdvanceReasonOther         string  `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
533
+	AssessmentDoctor             int64   `gorm:"column:assessment_doctor" json:"assessment_doctor"`
534
+	AssessmentTime               int64   `gorm:"column:assessment_time" json:"assessment_time"`
535
+	IsEat                        int64   `gorm:"column:is_eat" json:"is_eat"`
511 536
 }
512 537
 
513 538
 func (AssessmentAfterDislysis) TableName() string {
@@ -522,7 +547,7 @@ type AssessmentBeforeDislysis struct {
522 547
 	DialysisOrderId                int64   `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
523 548
 	Temperature                    float64 `gorm:"column:temperature" json:"temperature"`
524 549
 	PulseFrequency                 float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
525
-	BreathingRate                  float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
550
+	BreathingRate                  string  `gorm:"column:breathing_rate" json:"breathing_rate"`
526 551
 	SystolicBloodPressure          float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
527 552
 	DiastolicBloodPressure         float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
528 553
 	BloodPressureType              int64   `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
@@ -566,7 +591,7 @@ type AssessmentBeforeDislysis struct {
566 591
 	DuctusArantii                  string  `gorm:"column:ductus_arantii" json:"ductus_arantii"`
567 592
 	EmergencyTreatment             int64   `gorm:"column:emergency_treatment" json:"emergency_treatment"`
568 593
 	EmergencyTreatmentOther        string  `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
569
-	DialysisCount                  int64   `gorm:"column:dialysis_count" json:"dialysis_count"`
594
+	DialysisCount                  string  `gorm:"column:dialysis_count" json:"dialysis_count"`
570 595
 	AssessmentDoctor               int64   `gorm:"column:assessment_doctor" json:"assessment_doctor"`
571 596
 	AssessmentTime                 int64   `gorm:"column:assessment_time" json:"assessment_time"`
572 597
 	MachineType                    string  `gorm:"column:machine_type" json:"machine_type"`
@@ -590,7 +615,7 @@ type MonitoringRecord struct {
590 615
 	MonitoringDate            int64         `gorm:"column:monitoring_date" json:"monitoring_date"`
591 616
 	MonitoringTime            string        `gorm:"column:monitoring_time" json:"monitoring_time"`
592 617
 	PulseFrequency            float64       `gorm:"column:pulse_frequency" json:"pulse_frequency"`
593
-	BreathingRate             float64       `gorm:"column:breathing_rate" json:"breathing_rate"`
618
+	BreathingRate             string        `gorm:"column:breathing_rate" json:"breathing_rate"`
594 619
 	SystolicBloodPressure     float64       `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
595 620
 	DiastolicBloodPressure    float64       `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
596 621
 	BloodPressureType         int64         `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
@@ -640,6 +665,24 @@ func (PatientLapseto) TableName() string {
640 665
 	return "xt_patient_lapseto"
641 666
 }
642 667
 
668
+type XtPatientAllergic struct {
669
+	ID             int64  `gorm:"column:id" json:"id" form:"id"`
670
+	PatientId      int64  `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
671
+	UserOrgId      int64  `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
672
+	StartTime      int64  `gorm:"column:start_time" json:"start_time" form:"start_time"`
673
+	EndTime        int64  `gorm:"column:end_time" json:"end_time" form:"end_time"`
674
+	PatientSource  int64  `gorm:"column:patient_source" json:"patient_source" form:"patient_source"`
675
+	Status         int64  `gorm:"column:status" json:"status" form:"status"`
676
+	Ctime          int64  `gorm:"column:ctime" json:"ctime" form:"ctime"`
677
+	Mtime          int64  `gorm:"column:mtime" json:"mtime" form:"mtime"`
678
+	Remake         string `gorm:"column:remake" json:"remake" form:"remake"`
679
+	PatientAddress string `gorm:"column:patient_address" json:"patient_address" form:"patient_address"`
680
+}
681
+
682
+func (XtPatientAllergic) TableName() string {
683
+	return "xt_patient_allergic"
684
+}
685
+
643 686
 type DialysisOrder struct {
644 687
 	ID             int64  `gorm:"column:id" json:"id"`
645 688
 	DialysisDate   int64  `gorm:"column:dialysis_date" json:"dialysis_date"`
@@ -801,6 +844,61 @@ func (VMDialysisPrescription) TableName() string {
801 844
 	return "xt_dialysis_prescription"
802 845
 }
803 846
 
847
+type DeviceInformation struct {
848
+	ID                    int64             `gorm:"column:id" json:"id" form:"id"`
849
+	Date                  int64             `gorm:"column:date" json:"date" form:"date"`
850
+	Class                 int64             `gorm:"column:class" json:"class" form:"class"`
851
+	Zone                  int64             `gorm:"column:zone" json:"zone" form:"zone"`
852
+	BedNumber             int64             `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
853
+	PatientId             int64             `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
854
+	Contagion             string            `gorm:"column:contagion" json:"contagion" form:"contagion"`
855
+	DialysisMode          int64             `gorm:"column:dialysis_mode" json:"dialysis_mode" form:"dialysis_mode"`
856
+	StartTime             int64             `gorm:"column:start_time" json:"start_time" form:"start_time"`
857
+	EndTime               int64             `gorm:"column:end_time" json:"end_time" form:"end_time"`
858
+	DialysisHour          string            `gorm:"column:dialysis_hour" json:"dialysis_hour" form:"dialysis_hour"`
859
+	Hyperfiltratio        float64           `gorm:"column:hyperfiltratio" json:"hyperfiltratio" form:"hyperfiltratio"`
860
+	WeightLoss            float64           `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
861
+	WarningValue          string            `gorm:"column:warning_value" json:"warning_value" form:"warning_value"`
862
+	UserTotal             string            `gorm:"column:user_total" json:"user_total" form:"user_total"`
863
+	Move                  int64             `gorm:"column:move" json:"move" form:"move"`
864
+	FailureStage          int64             `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
865
+	FaultDescription      string            `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
866
+	CodeInformation       string            `gorm:"column:code_information" json:"code_information" form:"code_information"`
867
+	DisinfectType         int64             `gorm:"column:disinfect_type" json:"disinfect_type" form:"disinfect_type"`
868
+	DisinfectantType      int64             `gorm:"column:disinfectant_type" json:"disinfectant_type" form:"disinfectant_type"`
869
+	Disinfection          int64             `gorm:"column:disinfection" json:"disinfection" form:"disinfection"`
870
+	MachineRun            int64             `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
871
+	FluidPath             int64             `gorm:"column:fluid_path" json:"fluid_path" form:"fluid_path"`
872
+	Disinfectant          int64             `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
873
+	DisinfectionStatus    int64             `gorm:"column:disinfection_status" json:"disinfection_status" form:"disinfection_status"`
874
+	DisinfectionResidue   int64             `gorm:"column:disinfection_residue" json:"disinfection_residue" form:"disinfection_residue"`
875
+	LongTime              string            `gorm:"column:long_time" json:"long_time" form:"long_time"`
876
+	DisinfecStartime      int64             `gorm:"column:disinfec_startime" json:"disinfec_startime" form:"disinfec_startime"`
877
+	DisinfecEndtime       int64             `gorm:"column:disinfec_endtime" json:"disinfec_endtime" form:"disinfec_endtime"`
878
+	DialysisChecked       int64             `gorm:"column:dialysis_checked" json:"dialysis_checked" form:"dialysis_checked"`
879
+	DialysisName          int64             `gorm:"column:dialysis_name" json:"dialysis_name" form:"dialysis_name"`
880
+	Norms                 string            `gorm:"column:norms" json:"norms" form:"norms"`
881
+	DialysisConcentration int64             `gorm:"column:dialysis_concentration" json:"dialysis_concentration" form:"dialysis_concentration"`
882
+	GermChecked           int64             `gorm:"column:germ_checked" json:"germ_checked" form:"germ_checked"`
883
+	GermName              int64             `gorm:"column:germ_name" json:"germ_name" form:"germ_name"`
884
+	GermNumber            string            `gorm:"column:germ_number" json:"germ_number" form:"germ_number"`
885
+	Clean                 int64             `gorm:"column:clean" json:"clean" form:"clean"`
886
+	SignName              int64             `gorm:"column:sign_name" json:"sign_name" form:"sign_name"`
887
+	Status                int64             `gorm:"column:status" json:"status" form:"status"`
888
+	Ctime                 int64             `gorm:"column:ctime" json:"ctime" form:"ctime"`
889
+	Mtime                 int64             `gorm:"column:mtime" json:"mtime" form:"mtime"`
890
+	UserOrgId             int64             `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
891
+	EquimentId            int64             `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
892
+	Bed                   string            `gorm:"column:bed" json:"bed" form:"bed"`
893
+	Stime                 int64             `gorm:"column:stime" json:"stime" form:"stime"`
894
+	VMDeviceAddmacher     VMDeviceAddmacher `gorm:"ForeignKey:ID;AssociationForeignKey:EquimentId"`
895
+}
896
+
897
+func (DeviceInformation) TableName() string {
898
+
899
+	return "xt_device_information"
900
+}
901
+
804 902
 type VMDeviceAddmacher struct {
805 903
 	ID                  int64        `gorm:"column:id" json:"id" form:"id"`
806 904
 	SerialNumber        string       `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
@@ -840,6 +938,30 @@ func (VMDeviceAddmacher) TableName() string {
840 938
 	return "xt_device_addmacher"
841 939
 }
842 940
 
941
+type DevicePlan struct {
942
+	ID                  int64             `gorm:"column:id" json:"id" form:"id"`
943
+	DeviceType          int64             `gorm:"column:device_type" json:"device_type" form:"device_type"`
944
+	DisinfecTime        int64             `gorm:"column:disinfec_time" json:"disinfec_time" form:"disinfec_time"`
945
+	Time                int64             `gorm:"column:time" json:"time" form:"time"`
946
+	Classtime           int64             `gorm:"column:classtime" json:"classtime" form:"classtime"`
947
+	Way                 int64             `gorm:"column:way" json:"way" form:"way"`
948
+	MachineDisinfectant int64             `gorm:"column:machine_disinfectant" json:"machine_disinfectant" form:"machine_disinfectant"`
949
+	DisinfectanWay      int64             `gorm:"column:disinfectan_way" json:"disinfectan_way" form:"disinfectan_way"`
950
+	Disinfectant        int64             `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
951
+	Status              int64             `gorm:"column:status" json:"status" form:"status"`
952
+	Ctime               int64             `gorm:"column:ctime" json:"ctime" form:"ctime"`
953
+	Mtime               int64             `gorm:"column:mtime" json:"mtime" form:"mtime"`
954
+	UserOrgId           int64             `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
955
+	EquimentId          int64             `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
956
+	BedId               int64             `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
957
+	VMDeviceAddmacher   VMDeviceAddmacher `gorm:"ForeignKey:ID;AssociationForeignKey:EquimentId"`
958
+}
959
+
960
+func (DevicePlan) TableName() string {
961
+
962
+	return "xt_device_plan"
963
+}
964
+
843 965
 type DeviceRepair struct {
844 966
 	ID                int64             `gorm:"column:id" json:"id" form:"id"`
845 967
 	GuaranteeDate     int64             `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
@@ -1047,6 +1169,41 @@ func (XtDeviceWater) TableName() string {
1047 1169
 	return "xt_device_water"
1048 1170
 }
1049 1171
 
1172
+//透析液离子浓度检测
1173
+type DeviceIon struct {
1174
+	ID              int64  `gorm:"column:id" json:"id" form:"id"`
1175
+	SamplingDate    int64  `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
1176
+	Samplerc        int64  `gorm:"column:samplerc" json:"samplerc" form:"samplerc"`
1177
+	DetectionUnit   string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
1178
+	ConcentrateNof  string `gorm:"column:concentrate_nof" json:"concentrate_nof" form:"concentrate_nof"`
1179
+	ConcentrateNog  string `gorm:"column:concentrate_nog" json:"concentrate_nog" form:"concentrate_nog"`
1180
+	DateReportc     int64  `gorm:"column:date_reportc" json:"date_reportc" form:"date_reportc"`
1181
+	ActualNa        string `gorm:"column:actual_na" json:"actual_na" form:"actual_na"`
1182
+	ActualPna       string `gorm:"column:actual_pna" json:"actual_pna" form:"actual_pna"`
1183
+	ActualK         string `gorm:"column:actual_k" json:"actual_k" form:"actual_k"`
1184
+	ActualCa        string `gorm:"column:actual_ca" json:"actual_ca" form:"actual_ca"`
1185
+	ActualCi        string `gorm:"column:actual_ci" json:"actual_ci" form:"actual_ci"`
1186
+	ActualHco       string `gorm:"column:actual_hco" json:"actual_hco" form:"actual_hco"`
1187
+	ActualMg        string `gorm:"column:actual_mg" json:"actual_mg" form:"actual_mg"`
1188
+	ActualPh        string `gorm:"column:actual_ph" json:"actual_ph" form:"actual_ph"`
1189
+	Remakes         string `gorm:"column:remakes" json:"remakes" form:"remakes"`
1190
+	Status          int64  `gorm:"column:status" json:"status" form:"status"`
1191
+	UserOrgId       int64  `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1192
+	Ctime           int64  `gorm:"column:ctime" json:"ctime" form:"ctime"`
1193
+	Mtime           int64  `gorm:"column:mtime" json:"mtime" form:"mtime"`
1194
+	BedId           int64  `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
1195
+	EquitmentId     int64  `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
1196
+	Bed             string `gorm:"column:bed" json:"bed" form:"bed"`
1197
+	Sort            string `gorm:"column:sort" json:"sort" form:"sort"`
1198
+	PassExamination int64  `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
1199
+	Modifications   int64  `gorm:"column:modifications" json:"modifications" form:"modifications"`
1200
+}
1201
+
1202
+func (DeviceIon) TableName() string {
1203
+
1204
+	return "xt_device_ion"
1205
+}
1206
+
1050 1207
 type XtDeviceOxygenates struct {
1051 1208
 	ID                int64  `gorm:"column:id" json:"id" form:"id"`
1052 1209
 	SamplingDate      int64  `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
@@ -1158,21 +1315,21 @@ func (XtPatientVascularAccess) TableName() string {
1158 1315
 }
1159 1316
 
1160 1317
 type App_Role struct {
1161
-	Id            int64     `gorm:"PRIMARY_KEY;AUTO_INCREMENT" json:"id"`
1162
-	AdminUserId   int64     `gorm:"column:admin_user_id" json:"admin_user_id"`
1163
-	OrgId         int64     `gorm:"column:org_id" json:"org_id"`
1164
-	AppId         int64     `gorm:"column:app_id" json:"app_id"`
1165
-	RoleId        int64     `gorm:"column:role_id" json:"role_id"`
1166
-	Avatar        string    `json:"avatar" json:"avatar"`
1167
-	UserName      string    `gorm:"column:user_name" json:"user_name"`   // 用户名称
1168
-	Intro         string    `json:"intro"`                               // 简介
1169
-	UserType      int8      `gorm:"column:user_type" json:"user_type"`   // 用户类型(1.管理员;2.医生;3.护士;4.运营)
1170
-	UserTitle     int8      `gorm:"column:user_title" json:"user_title"` // 用户职称(1.医士;2.医师;3.住院医师;4.主治医师;5.副主任医师;6.主任医师;7.护士;8.护师;9.主管护师;10.副主任护师;11.主任护师;12.运营专员;13.运营主管)
1171
-	Status        int8      `json:"status"`                              // 状态 0.无效 1.有效
1172
-	CreateTime    int64     `gorm:"column:ctime" json:"ctime"`           // 创建时间
1173
-	ModifyTime    int64     `gorm:"column:mtime" json:"mtime"`           // 修改时间UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
1174
-	UserTitleName string    `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
1175
-	RoleIds       string    `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
1318
+	Id              int64  `gorm:"PRIMARY_KEY;AUTO_INCREMENT" json:"id"`
1319
+	AdminUserId     int64  `gorm:"column:admin_user_id" json:"admin_user_id"`
1320
+	OrgId           int64  `gorm:"column:org_id" json:"org_id"`
1321
+	AppId           int64  `gorm:"column:app_id" json:"app_id"`
1322
+	RoleId          int64  `gorm:"column:role_id" json:"role_id"`
1323
+	Avatar          string `json:"avatar" json:"avatar"`
1324
+	UserName        string `gorm:"column:user_name" json:"user_name"`   // 用户名称
1325
+	Intro           string `json:"intro"`                               // 简介
1326
+	UserType        int8   `gorm:"column:user_type" json:"user_type"`   // 用户类型(1.管理员;2.医生;3.护士;4.运营)
1327
+	UserTitle       int8   `gorm:"column:user_title" json:"user_title"` // 用户职称(1.医士;2.医师;3.住院医师;4.主治医师;5.副主任医师;6.主任医师;7.护士;8.护师;9.主管护师;10.副主任护师;11.主任护师;12.运营专员;13.运营主管)
1328
+	Status          int8   `json:"status"`                              // 状态 0.无效 1.有效
1329
+	CreateTime      int64  `gorm:"column:ctime" json:"ctime"`           // 创建时间
1330
+	ModifyTime      int64  `gorm:"column:mtime" json:"mtime"`           // 修改时间UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
1331
+	UserTitleName   string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
1332
+	RoleIds         string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
1176 1333
 	IsSubSuperAdmin bool   `gorm:"-" json:"is_sub_super_admin" form:"is_sub_super_admin"`
1177 1334
 	Message         string `gorm:"column:message" json:"message" form:"message"`
1178 1335
 	Sex             int64  `gorm:"column:sex" json:"sex" form:"sex"`
@@ -1214,28 +1371,27 @@ func (App_Role) TableName() string {
1214 1371
 	return "sgj_user_admin_role"
1215 1372
 }
1216 1373
 
1217
-
1218 1374
 type HisPrescriptionInfo struct {
1219
-	ID                 int64           `gorm:"column:id" json:"id" form:"id"`
1220
-	UserOrgId          int64           `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1221
-	RecordDate         int64           `gorm:"column:record_date" json:"record_date" form:"record_date"`
1222
-	PatientId          int64           `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
1223
-	HisPatientId       int64           `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
1224
-	Status             int64           `gorm:"column:status" json:"status" form:"status"`
1225
-	Ctime              int64           `gorm:"column:ctime" json:"ctime" form:"ctime"`
1226
-	Mtime              int64           `gorm:"column:mtime" json:"mtime" form:"mtime"`
1227
-	Creator            int64           `gorm:"column:creator" json:"creator" form:"creator"`
1228
-	Modifier           int64           `gorm:"column:modifier" json:"modifier" form:"modifier"`
1229
-	Diagnosis          int64           `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
1230
-	RegisterType       int64           `gorm:"column:register_type" json:"register_type" form:"register_type"`
1231
-	Doctor             string          `gorm:"column:doctor" json:"doctor" form:"doctor"`
1232
-	Departments        int64           `gorm:"column:departments" json:"departments" form:"departments"`
1233
-	SickHistory        string          `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
1234
-	PrescriptionNumber string          `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
1235
-	PrescriptionStatus int64           `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
1236
-	BatchNumber        string          `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
1237
-	DoctorId           int64           `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
1238
-	SickType           int64           `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
1375
+	ID                 int64  `gorm:"column:id" json:"id" form:"id"`
1376
+	UserOrgId          int64  `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1377
+	RecordDate         int64  `gorm:"column:record_date" json:"record_date" form:"record_date"`
1378
+	PatientId          int64  `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
1379
+	HisPatientId       int64  `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
1380
+	Status             int64  `gorm:"column:status" json:"status" form:"status"`
1381
+	Ctime              int64  `gorm:"column:ctime" json:"ctime" form:"ctime"`
1382
+	Mtime              int64  `gorm:"column:mtime" json:"mtime" form:"mtime"`
1383
+	Creator            int64  `gorm:"column:creator" json:"creator" form:"creator"`
1384
+	Modifier           int64  `gorm:"column:modifier" json:"modifier" form:"modifier"`
1385
+	Diagnosis          string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
1386
+	RegisterType       int64  `gorm:"column:register_type" json:"register_type" form:"register_type"`
1387
+	Doctor             string `gorm:"column:doctor" json:"doctor" form:"doctor"`
1388
+	Departments        int64  `gorm:"column:departments" json:"departments" form:"departments"`
1389
+	SickHistory        string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
1390
+	PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
1391
+	PrescriptionStatus int64  `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
1392
+	BatchNumber        string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
1393
+	DoctorId           int64  `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
1394
+	SickType           int64  `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
1239 1395
 }
1240 1396
 
1241 1397
 func (HisPrescriptionInfo) TableName() string {
@@ -1243,22 +1399,22 @@ func (HisPrescriptionInfo) TableName() string {
1243 1399
 }
1244 1400
 
1245 1401
 type HisPrescription struct {
1246
-	ID                     int64                     `gorm:"column:id" json:"id" form:"id"`
1247
-	UserOrgId              int64                     `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1248
-	RecordDate             int64                     `gorm:"column:record_date" json:"record_date" form:"record_date"`
1249
-	PatientId              int64                     `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
1250
-	HisPatientId           int64                     `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
1251
-	Status                 int64                     `gorm:"column:status" json:"status" form:"status"`
1252
-	Ctime                  int64                     `gorm:"column:ctime" json:"ctime" form:"ctime"`
1253
-	Mtime                  int64                     `gorm:"column:mtime" json:"mtime" form:"mtime"`
1254
-	Number                 string                    `gorm:"column:number" json:"number" form:"number"`
1255
-	Type                   int64                     `gorm:"column:type" json:"type" form:"type"`
1256
-	Doctor                 string                    `gorm:"column:doctor" json:"doctor" form:"doctor"`
1257
-	Creator                int64                     `gorm:"column:creator" json:"creator" form:"creator"`
1258
-	Modifier               int64                     `gorm:"column:modifier" json:"modifier" form:"modifier"`
1259
-	OrderStatus            int64                     `gorm:"column:order_status" json:"order_status" form:"order_status"`
1260
-	BatchNumber            string                    `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
1261
-	PrescriptionNumber     string                    `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
1402
+	ID                 int64  `gorm:"column:id" json:"id" form:"id"`
1403
+	UserOrgId          int64  `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1404
+	RecordDate         int64  `gorm:"column:record_date" json:"record_date" form:"record_date"`
1405
+	PatientId          int64  `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
1406
+	HisPatientId       int64  `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
1407
+	Status             int64  `gorm:"column:status" json:"status" form:"status"`
1408
+	Ctime              int64  `gorm:"column:ctime" json:"ctime" form:"ctime"`
1409
+	Mtime              int64  `gorm:"column:mtime" json:"mtime" form:"mtime"`
1410
+	Number             string `gorm:"column:number" json:"number" form:"number"`
1411
+	Type               int64  `gorm:"column:type" json:"type" form:"type"`
1412
+	Doctor             string `gorm:"column:doctor" json:"doctor" form:"doctor"`
1413
+	Creator            int64  `gorm:"column:creator" json:"creator" form:"creator"`
1414
+	Modifier           int64  `gorm:"column:modifier" json:"modifier" form:"modifier"`
1415
+	OrderStatus        int64  `gorm:"column:order_status" json:"order_status" form:"order_status"`
1416
+	BatchNumber        string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
1417
+	PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
1262 1418
 }
1263 1419
 
1264 1420
 func (HisPrescription) TableName() string {
@@ -1323,6 +1479,184 @@ func (HisDoctorAdviceInfo) TableName() string {
1323 1479
 	return "his_doctor_advice_info"
1324 1480
 }
1325 1481
 
1482
+type HisPrescriptionProject struct {
1483
+	ID                 int64      `gorm:"column:id" json:"id" form:"id"`
1484
+	ProjectId          int64      `gorm:"column:project_id" json:"project_id" form:"project_id"`
1485
+	Price              float64    `gorm:"column:price" json:"price" form:"price"`
1486
+	UserOrgId          int64      `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1487
+	Status             int64      `gorm:"column:status" json:"status" form:"status"`
1488
+	Ctime              int64      `gorm:"column:ctime" json:"ctime" form:"ctime"`
1489
+	Mtime              int64      `gorm:"column:mtime" json:"mtime" form:"mtime"`
1490
+	PatientId          int64      `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
1491
+	HisPatientId       int64      `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
1492
+	RecordDate         int64      `gorm:"column:record_date" json:"record_date" form:"record_date"`
1493
+	PrescriptionId     int64      `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
1494
+	Count              string     `gorm:"column:count" json:"count" form:"count"`
1495
+	FeedetlSn          string     `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
1496
+	MedListCodg        string     `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
1497
+	SingleDose         string     `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
1498
+	DeliveryWay        string     `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
1499
+	ExecutionFrequency string     `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
1500
+	Day                string     `gorm:"column:day" json:"day" form:"day"`
1501
+	HisProject         HisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
1502
+	GoodInfo           GoodInfo   `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
1503
+
1504
+	Remark string `gorm:"column:remark" json:"remark" form:"remark"`
1505
+	Unit   string `gorm:"column:unit" json:"unit" form:"unit"`
1506
+	Type   int64  `gorm:"column:type" json:"type" form:"type"`
1507
+
1508
+	Doctor         int64  `gorm:"column:doctor" json:"doctor" form:"doctor"`
1509
+	ExecutionTime  int64  `gborm:"column:execution_time" json:"execution_time" form:"execution_time"`
1510
+	ExecutionStaff int64  `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
1511
+	ExecutionState int64  `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
1512
+	CheckTime      int64  `gorm:"column:check_time" json:"check_time" form:"check_time"`
1513
+	CheckState     int64  `gorm:"column:check_state" json:"check_state" form:"check_state"`
1514
+	Checker        int64  `gorm:"column:checker" json:"checker" form:"checker"`
1515
+	StartTime      int64  `gorm:"column:start_time" json:"start_time" form:"start_time"`
1516
+	TeamId         int64  `gorm:"column:team_id" json:"team_id" form:"team_id"`
1517
+	FrequencyType  int64  `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
1518
+	DayCount       int64  `gorm:"column:day_count" json:"day_count" form:"day_count"`
1519
+	WeekDay        string `gorm:"column:week_day" json:"week_day" form:"week_day"`
1520
+	IsCheckTeam    int64  `gorm:"-" json:"is_check_team" form:"is_check_team"`
1521
+}
1522
+
1523
+func (HisPrescriptionProject) TableName() string {
1524
+	return "his_prescription_project"
1525
+}
1526
+
1527
+type GoodInfo struct {
1528
+	ID                     int64   `gorm:"column:id" json:"id" form:"id"`
1529
+	GoodCode               string  `gorm:"column:good_code" json:"good_code" form:"good_code"`
1530
+	SpecificationName      string  `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
1531
+	GoodTypeId             int64   `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
1532
+	GoodUnit               int64   `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
1533
+	BuyPrice               float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
1534
+	SellPrice              float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
1535
+	Remark                 string  `gorm:"column:remark" json:"remark" form:"remark"`
1536
+	Ctime                  int64   `gorm:"column:ctime" json:"ctime" form:"ctime"`
1537
+	Mtime                  int64   `gorm:"column:mtime" json:"mtime" form:"mtime"`
1538
+	Manufacturer           int64   `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
1539
+	Dealer                 int64   `gorm:"column:dealer" json:"dealer" form:"dealer"`
1540
+	ExpiryDateWarnDayCount int64   `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
1541
+	StockWarnCount         int64   `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
1542
+	IsReuse                int64   `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
1543
+	Status                 int64   `gorm:"column:status" json:"status" form:"status"`
1544
+	FilmArea               string  `gorm:"column:film_area" json:"film_area" form:"film_area"`
1545
+	IsUse                  int64   `gorm:"column:is_use" json:"is_use" form:"is_use"`
1546
+	FilmMaterialQuality    string  `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
1547
+	OrgId                  int64   `gorm:"column:org_id" json:"org_id" form:"org_id"`
1548
+	Modifier               int64   `gorm:"column:modifier" json:"modifier" form:"modifier"`
1549
+	Creater                int64   `gorm:"column:creater" json:"creater" form:"creater"`
1550
+	GoodName               string  `gorm:"column:good_name" json:"good_name" form:"good_name"`
1551
+	Pinyin                 string  `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
1552
+	Wubi                   string  `gorm:"column:wubi" json:"wubi" form:"wubi"`
1553
+	GoodKind               int64   `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
1554
+	MedicalInsuranceLevel  int64   `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
1555
+	RetailPrice            float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
1556
+	MedicalInsuranceNumber string  `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
1557
+	ProvincesCode          string  `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
1558
+
1559
+	IsSpecialDiseases           int64   `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
1560
+	IsRecord                    int64   `gorm:"column:is_record" json:"is_record" form:"is_record"`
1561
+	StatisticsCategory          int64   `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
1562
+	GoodStatus                  string  `gorm:"column:good_status" json:"good_status" form:"good_status"`
1563
+	DefaultCount                int64   `gorm:"column:default_count" json:"default_count" form:"default_count"`
1564
+	Sign                        int64   `gorm:"column:sign" json:"sign" form:"sign"`
1565
+	IsDefault                   int64   `gorm:"column:is_default" json:"is_default" form:"is_default"`
1566
+	IsChargeUse                 int64   `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
1567
+	IsChargePredict             int64   `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
1568
+	IsStatisticsWork            int64   `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
1569
+	Sort                        int64   `gorm:"column:sort" json:"sort" form:"sort"`
1570
+	IsDoctorUse                 int64   `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
1571
+	Agent                       string  `gorm:"column:agent" json:"agent" form:"agent"`
1572
+	GoodNumber                  string  `gorm:"column:good_number" json:"good_number" form:"good_number"`
1573
+	CommdityCode                string  `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
1574
+	SocialSecurityDirectoryCode string  `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
1575
+	ProductionType              string  `gorm:"column:production_type" json:"production_type" form:"production_type"`
1576
+	SpecialMedical              string  `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
1577
+	IsMark                      int64   `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
1578
+	MinNumber                   int64   `gorm:"column:min_number" json:"min_number" form:"min_number"`
1579
+	PackingUnit                 string  `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
1580
+	PackingPrice                float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
1581
+	DefaultCountUnit            string  `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
1582
+	MinUnit                     string  `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
1583
+	Total                       float64 `gorm:"column:total" json:"total" form:"total"`
1584
+
1585
+	RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
1586
+
1587
+	IsUser          int64   `gorm:"column:is_user" json:"is_user" form:"is_user"`
1588
+	Number          string  `gorm:"column:number" json:"number" form:"number"`
1589
+	IsWarehouse     int64   `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
1590
+	SumCount        int64   `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
1591
+	BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
1592
+	SumInCount      int64   `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
1593
+}
1594
+
1595
+func (GoodInfo) TableName() string {
1596
+	return "xt_good_information"
1597
+}
1598
+
1599
+type HisProject struct {
1600
+	ID                          int64   `gorm:"column:id" json:"id" form:"id"`
1601
+	ProjectName                 string  `gorm:"column:project_name" json:"project_name" form:"project_name"`
1602
+	Pinyin                      string  `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
1603
+	Wubi                        string  `gorm:"column:wubi" json:"wubi" form:"wubi"`
1604
+	Price                       float64 `gorm:"column:price" json:"price" form:"price"`
1605
+	Unit                        string  `gorm:"column:unit" json:"unit" form:"unit"`
1606
+	CostClassify                int64   `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
1607
+	ExecutiveSection            int64   `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
1608
+	MedicalCoverage             int64   `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
1609
+	StatisticalClassification   int64   `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
1610
+	DiseaseDirectory            int64   `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
1611
+	IsRecord                    int64   `gorm:"column:is_record" json:"is_record" form:"is_record"`
1612
+	MedicalCode                 string  `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
1613
+	TubeColor                   int64   `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
1614
+	MedicalStatus               int64   `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
1615
+	Remark                      string  `gorm:"column:remark" json:"remark" form:"remark"`
1616
+	Sign                        int64   `gorm:"column:sign" json:"sign" form:"sign"`
1617
+	DefaultNumber               string  `gorm:"column:default_number" json:"default_number" form:"default_number"`
1618
+	IsDefault                   int64   `gorm:"column:is_default" json:"is_default" form:"is_default"`
1619
+	IsCharge                    int64   `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
1620
+	IsEstimate                  int64   `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
1621
+	IsWorkload                  int64   `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
1622
+	Sort                        string  `gorm:"column:sort" json:"sort" form:"sort"`
1623
+	DoctorAdvice                int64   `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
1624
+	UserOrgId                   int64   `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1625
+	Status                      int64   `gorm:"column:status" json:"status" form:"status"`
1626
+	CreatedTime                 int64   `gorm:"column:created_time" json:"created_time" form:"created_time"`
1627
+	UpdatedTime                 int64   `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
1628
+	DeliveryWay                 string  `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
1629
+	NumberDays                  string  `gorm:"column:number_days" json:"number_days" form:"number_days"`
1630
+	Total                       string  `gorm:"column:total" json:"total" form:"total"`
1631
+	Category                    int64   `gorm:"column:category" json:"category" form:"category"`
1632
+	IsMark                      int64   `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
1633
+	SpecailProject              int64   `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
1634
+	SocialSecurityDirectoryCode string  `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
1635
+	RecordDate                  int64   `gorm:"column:record_date" json:"record_date" form:"record_date"`
1636
+	SingleDose                  string  `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
1637
+	ExecutionFrequency          string  `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
1638
+}
1639
+
1640
+func (HisProject) TableName() string {
1641
+	return "xt_his_project"
1642
+}
1643
+
1644
+type HisChargeDoctorAdviceInfo struct {
1645
+	ID                    int64  `gorm:"column:id" json:"id" form:"id"`
1646
+	UserOrgId             int64  `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1647
+	PatientId             int64  `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
1648
+	AdviceName            string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
1649
+	PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
1650
+	Status                int64  `gorm:"column:status" json:"status" form:"status"`
1651
+	DrugId                int64  `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
1652
+	Remark                string `gorm:"column:remark" json:"remark" form:"remark"`
1653
+	AdviceDate            int64  `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
1654
+}
1655
+
1656
+func (HisChargeDoctorAdviceInfo) TableName() string {
1657
+	return "his_doctor_advice_info"
1658
+}
1659
+
1326 1660
 type BaseDrugLib struct {
1327 1661
 	ID                          int64   `gorm:"column:id" json:"id" form:"id"`
1328 1662
 	DrugName                    string  `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
@@ -1389,105 +1723,123 @@ func (BaseDrugLib) TableName() string {
1389 1723
 	return "xt_base_drug"
1390 1724
 }
1391 1725
 
1392
-type HisPrescriptionProject struct {
1393
-	ID                 int64      `gorm:"column:id" json:"id" form:"id"`
1394
-	ProjectId          int64      `gorm:"column:project_id" json:"project_id" form:"project_id"`
1395
-	Price              float64    `gorm:"column:price" json:"price" form:"price"`
1396
-	UserOrgId          int64      `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1397
-	Status             int64      `gorm:"column:status" json:"status" form:"status"`
1398
-	Ctime              int64      `gorm:"column:ctime" json:"ctime" form:"ctime"`
1399
-	Mtime              int64      `gorm:"column:mtime" json:"mtime" form:"mtime"`
1400
-	PatientId          int64      `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
1401
-	HisPatientId       int64      `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
1402
-	RecordDate         int64      `gorm:"column:record_date" json:"record_date" form:"record_date"`
1403
-	PrescriptionId     int64      `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
1404
-	Count              int64      `gorm:"column:count" json:"count" form:"count"`
1405
-	FeedetlSn          string     `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
1406
-	MedListCodg        string     `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
1407
-	SingleDose         string     `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
1408
-	DeliveryWay        string     `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
1409
-	ExecutionFrequency string     `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
1410
-	Day                string     `gorm:"column:day" json:"day" form:"day"`
1411
-	Remark             string     `gorm:"column:remark" json:"remark" form:"remark"`
1412
-	Unit               string     `gorm:"column:unit" json:"unit" form:"unit"`
1726
+type XtHisProject struct {
1727
+	ID                          int64   `gorm:"column:id" json:"id" form:"id"`
1728
+	ProjectName                 string  `gorm:"column:project_name" json:"project_name" form:"project_name"`
1729
+	Pinyin                      string  `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
1730
+	Wubi                        string  `gorm:"column:wubi" json:"wubi" form:"wubi"`
1731
+	Price                       float64 `gorm:"column:price" json:"price" form:"price"`
1732
+	Unit                        string  `gorm:"column:unit" json:"unit" form:"unit"`
1733
+	CostClassify                int64   `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
1734
+	ExecutiveSection            int64   `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
1735
+	MedicalCoverage             int64   `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
1736
+	StatisticalClassification   int64   `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
1737
+	DiseaseDirectory            int64   `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
1738
+	IsRecord                    int64   `gorm:"column:is_record" json:"is_record" form:"is_record"`
1739
+	MedicalCode                 string  `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
1740
+	TubeColor                   int64   `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
1741
+	MedicalStatus               int64   `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
1742
+	Remark                      string  `gorm:"column:remark" json:"remark" form:"remark"`
1743
+	Sign                        int64   `gorm:"column:sign" json:"sign" form:"sign"`
1744
+	DefaultNumber               string  `gorm:"column:default_number" json:"default_number" form:"default_number"`
1745
+	IsDefault                   int64   `gorm:"column:is_default" json:"is_default" form:"is_default"`
1746
+	IsCharge                    int64   `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
1747
+	IsEstimate                  int64   `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
1748
+	IsWorkload                  int64   `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
1749
+	Sort                        string  `gorm:"column:sort" json:"sort" form:"sort"`
1750
+	DoctorAdvice                int64   `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
1751
+	UserOrgId                   int64   `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1752
+	Status                      int64   `gorm:"column:status" json:"status" form:"status"`
1753
+	CreatedTime                 int64   `gorm:"column:created_time" json:"created_time" form:"created_time"`
1754
+	UpdatedTime                 int64   `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
1755
+	SingleDose                  string  `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
1756
+	ExecutionFrequency          string  `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
1757
+	DeliveryWay                 string  `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
1758
+	NumberDays                  string  `gorm:"column:number_days" json:"number_days" form:"number_days"`
1759
+	Total                       string  `gorm:"column:total" json:"total" form:"total"`
1760
+	Category                    int64   `gorm:"column:category" json:"category" form:"category"`
1761
+	IsMark                      int64   `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
1762
+	SpecailProject              int64   `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
1763
+	SocialSecurityDirectoryCode string  `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
1764
+	RecordDate                  int64   `gorm:"column:record_date" json:"record_date" form:"record_date"`
1413 1765
 }
1414 1766
 
1415
-func (HisPrescriptionProject) TableName() string {
1416
-	return "his_prescription_project"
1767
+func (XtHisProject) TableName() string {
1768
+	return "xt_his_project"
1417 1769
 }
1418 1770
 
1419 1771
 type HisOrder struct {
1420
-	ID                    int64     `gorm:"column:id" json:"id" form:"id"`
1421
-	UserOrgId             int64     `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1422
-	HisPatientId          int64     `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
1423
-	SettleAccountsDate    int64     `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
1424
-	Ctime                 int64     `gorm:"column:ctime" json:"ctime" form:"ctime"`
1425
-	Mtime                 int64     `gorm:"column:mtime" json:"mtime" form:"mtime"`
1426
-	Status                int64     `gorm:"column:status" json:"status" form:"status"`
1427
-	Number                string    `gorm:"column:number" json:"number" form:"number"`
1428
-	PatientId             int64     `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
1429
-	Infcode               int64     `gorm:"column:infcode" json:"infcode" form:"infcode"`
1430
-	WarnMsg               string    `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
1431
-	Cainfo                string    `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
1432
-	ErrMsg                string    `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
1433
-	RespondTime           string    `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
1434
-	InfRefmsgid           string    `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
1435
-	OrderStatus           int64     `gorm:"column:order_status" json:"order_status" form:"order_status"`
1436
-	MdtrtId               string    `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
1437
-	SetlId                string    `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
1438
-	PsnNo                 string    `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
1439
-	PsnName               string    `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
1440
-	PsnCertType           string    `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
1441
-	Certno                string    `gorm:"column:certno" json:"certno" form:"certno"`
1442
-	Gend                  string    `gorm:"column:gend" json:"gend" form:"gend"`
1443
-	Naty                  string    `gorm:"column:naty" json:"naty" form:"naty"`
1444
-	Brdy                  string 	`gorm:"column:brdy" json:"brdy" form:"brdy"`
1445
-	Age                   float64   `gorm:"column:age" json:"age" form:"age"`
1446
-	Insutype              string    `gorm:"column:insutype" json:"insutype" form:"insutype"`
1447
-	PsnType               string    `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
1448
-	CvlservFlag           string    `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
1449
-	SetlTime              string    `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
1450
-	MdtrtCertType         string    `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
1451
-	MedType               string    `gorm:"column:med_type" json:"med_type" form:"med_type"`
1452
-	MedfeeSumamt          float64   `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
1453
-	FulamtOwnpayAmt       float64   `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
1454
-	OverlmtSelfPay        float64   `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
1455
-	PreselfpayAmt         float64   `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
1456
-	InscpScpAmt           float64   `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
1457
-	ActPayDedc            float64   `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
1458
-	HifpPay               float64   `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
1459
-	CvlservPay            float64   `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
1460
-	PoolPropSelfpay       float64   `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
1461
-	HifesPay              float64   `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
1462
-	HifmiPay              float64   `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
1463
-	HifobPay              float64   `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
1464
-	MafPay                float64   `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
1465
-	OthPay                float64   `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
1466
-	FundPaySumamt         float64   `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
1467
-	PsnPartAmt            float64   `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
1468
-	AcctPay               float64   `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
1469
-	PsnCashPay            float64   `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
1470
-	HospPartAmt           float64   `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
1471
-	Balc                  float64   `gorm:"column:balc" json:"balc" form:"balc"`
1472
-	AcctMulaidPay         float64   `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
1473
-	MedinsSetlId          string    `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
1474
-	ClrOptins             string    `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
1475
-	ClrWay                string    `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
1476
-	ClrType               string    `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
1477
-	SetlDetail            string    `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
1478
-	IsMedicineInsurance   int64     `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
1479
-	PayWay                int64     `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
1480
-	PayPrice              float64   `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
1481
-	PayCardNo             string    `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
1482
-	DiscountPrice         float64   `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
1483
-	PreferentialPrice     float64   `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
1484
-	RealityPrice          float64   `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
1485
-	FoundPrice            float64   `gorm:"column:found_price" json:"found_price" form:"found_price"`
1486
-	MedicalInsurancePrice float64   `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
1487
-	PrivatePrice          float64   `gorm:"column:private_price" json:"private_price" form:"private_price"`
1488
-	Creator               int64     `gorm:"column:creator" json:"creator" form:"creator"`
1489
-	Modify                int64     `gorm:"column:modify" json:"modify" form:"modify"`
1490
-	AccountPrice          float64   `gorm:"column:account_price" json:"account_price" form:"account_price"`
1772
+	ID                    int64   `gorm:"column:id" json:"id" form:"id"`
1773
+	UserOrgId             int64   `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
1774
+	HisPatientId          int64   `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
1775
+	SettleAccountsDate    int64   `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
1776
+	Ctime                 int64   `gorm:"column:ctime" json:"ctime" form:"ctime"`
1777
+	Mtime                 int64   `gorm:"column:mtime" json:"mtime" form:"mtime"`
1778
+	Status                int64   `gorm:"column:status" json:"status" form:"status"`
1779
+	Number                string  `gorm:"column:number" json:"number" form:"number"`
1780
+	PatientId             int64   `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
1781
+	Infcode               int64   `gorm:"column:infcode" json:"infcode" form:"infcode"`
1782
+	WarnMsg               string  `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
1783
+	Cainfo                string  `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
1784
+	ErrMsg                string  `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
1785
+	RespondTime           string  `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
1786
+	InfRefmsgid           string  `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
1787
+	OrderStatus           int64   `gorm:"column:order_status" json:"order_status" form:"order_status"`
1788
+	MdtrtId               string  `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
1789
+	SetlId                string  `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
1790
+	PsnNo                 string  `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
1791
+	PsnName               string  `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
1792
+	PsnCertType           string  `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
1793
+	Certno                string  `gorm:"column:certno" json:"certno" form:"certno"`
1794
+	Gend                  string  `gorm:"column:gend" json:"gend" form:"gend"`
1795
+	Naty                  string  `gorm:"column:naty" json:"naty" form:"naty"`
1796
+	Brdy                  string  `gorm:"column:brdy" json:"brdy" form:"brdy"`
1797
+	Age                   float64 `gorm:"column:age" json:"age" form:"age"`
1798
+	Insutype              string  `gorm:"column:insutype" json:"insutype" form:"insutype"`
1799
+	PsnType               string  `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
1800
+	CvlservFlag           string  `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
1801
+	SetlTime              string  `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
1802
+	MdtrtCertType         string  `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
1803
+	MedType               string  `gorm:"column:med_type" json:"med_type" form:"med_type"`
1804
+	MedfeeSumamt          float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
1805
+	FulamtOwnpayAmt       float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
1806
+	OverlmtSelfPay        float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
1807
+	PreselfpayAmt         float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
1808
+	InscpScpAmt           float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
1809
+	ActPayDedc            float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
1810
+	HifpPay               float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
1811
+	CvlservPay            float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
1812
+	PoolPropSelfpay       float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
1813
+	HifesPay              float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
1814
+	HifmiPay              float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
1815
+	HifobPay              float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
1816
+	MafPay                float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
1817
+	OthPay                float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
1818
+	FundPaySumamt         float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
1819
+	PsnPartAmt            float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
1820
+	AcctPay               float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
1821
+	PsnCashPay            float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
1822
+	HospPartAmt           float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
1823
+	Balc                  float64 `gorm:"column:balc" json:"balc" form:"balc"`
1824
+	AcctMulaidPay         float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
1825
+	MedinsSetlId          string  `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
1826
+	ClrOptins             string  `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
1827
+	ClrWay                string  `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
1828
+	ClrType               string  `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
1829
+	SetlDetail            string  `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
1830
+	IsMedicineInsurance   int64   `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
1831
+	PayWay                int64   `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
1832
+	PayPrice              float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
1833
+	PayCardNo             string  `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
1834
+	DiscountPrice         float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
1835
+	PreferentialPrice     float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
1836
+	RealityPrice          float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
1837
+	FoundPrice            float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
1838
+	MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
1839
+	PrivatePrice          float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
1840
+	Creator               int64   `gorm:"column:creator" json:"creator" form:"creator"`
1841
+	Modify                int64   `gorm:"column:modify" json:"modify" form:"modify"`
1842
+	AccountPrice          float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
1491 1843
 
1492 1844
 	SzChargeInfo            string `gorm:"column:sz_charge_info" json:"sz_charge_info" form:"sz_charge_info"`
1493 1845
 	SzProjectInfo           string `gorm:"column:sz_project_info" json:"sz_project_info" form:"sz_project_info"`

File diff suppressed because it is too large
+ 573 - 327
models/sz/target_data.go


+ 2 - 2
routers/router.go View File

@@ -1,16 +1,16 @@
1 1
 package routers
2 2
 
3 3
 import (
4
+	"Data_Upload_Api/controllers"
4 5
 	admin_api "Data_Upload_Api/controllers/admin_api_controllers"
5 6
 	"github.com/astaxie/beego"
6
-	"Data_Upload_Api/controllers"
7 7
 	"github.com/astaxie/beego/plugins/cors"
8 8
 )
9 9
 
10 10
 func init() {
11 11
 	beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{
12 12
 		// AllowAllOrigins:  true,
13
-		AllowOrigins:     []string{"http://api.szjkhd.com", "http://admin.xt.test.szjkhd.com", "http://admin.xt.szjkhd.com", "http://localhost:9527"},
13
+		AllowOrigins:     []string{"http://api.szjkhd.com", "http://admin.xt.test.szjkhd.com", "http://127.0.0.1:9555", "http://localhost:9527"},
14 14
 		AllowMethods:     []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
15 15
 		AllowHeaders:     []string{"Origin", "Authorization", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type"},
16 16
 		ExposeHeaders:    []string{"Content-Length", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type"},

File diff suppressed because it is too large
+ 5859 - 2436
service/city/auto_create_week_schedules_service.go


File diff suppressed because it is too large
+ 490 - 98
service/city_data_uoload_service.go


+ 13 - 13
service/db.go View File

@@ -20,7 +20,7 @@ import (
20 20
 	"fmt"
21 21
 	"github.com/astaxie/beego"
22 22
 	"github.com/jinzhu/gorm"
23
-	 _"github.com/jinzhu/gorm/dialects/mssql"
23
+	_ "github.com/jinzhu/gorm/dialects/mssql"
24 24
 	_ "github.com/jinzhu/gorm/dialects/mysql" // mysql
25 25
 )
26 26
 
@@ -62,28 +62,28 @@ func CloseDB(DB *gorm.DB) {
62 62
 }
63 63
 
64 64
 func ConnectDB() {
65
-	readHost := beego.AppConfig.String("readmysqlhost")
65
+	readHost := "kuyicloud2024lt.mysql.rds.aliyuncs.com"
66 66
 	readPort := beego.AppConfig.String("readmysqlport")
67
-	readUser := beego.AppConfig.String("readmysqluser")
68
-	readPass := beego.AppConfig.String("readmysqlpass")
67
+	readUser := "syh"
68
+	readPass := "Zc8xxwN4jkZswprx8VKHRSd2rBMRWgC4"
69 69
 	readName := beego.AppConfig.String("readmysqlname")
70 70
 
71
-	writeHost := beego.AppConfig.String("writemysqlhost")
71
+	writeHost := "kuyicloud2024lt.mysql.rds.aliyuncs.com"
72 72
 	writePort := beego.AppConfig.String("writemysqlport")
73
-	writeUser := beego.AppConfig.String("writemysqluser")
74
-	writePass := beego.AppConfig.String("writemysqlpass")
73
+	writeUser := "syh"
74
+	writePass := "Zc8xxwN4jkZswprx8VKHRSd2rBMRWgC4"
75 75
 	writeName := beego.AppConfig.String("writemysqlname")
76 76
 
77
-	readUserHost := beego.AppConfig.String("readuserhost")
77
+	readUserHost := "kuyicloud2024lt.mysql.rds.aliyuncs.com"
78 78
 	readUserPort := beego.AppConfig.String("readuserport")
79
-	readUserUser := beego.AppConfig.String("readuseruser")
80
-	readUserPass := beego.AppConfig.String("readuserpass")
79
+	readUserUser := "syh"
80
+	readUserPass := "Zc8xxwN4jkZswprx8VKHRSd2rBMRWgC4"
81 81
 	readUserName := beego.AppConfig.String("readusername")
82 82
 
83
-	writeUserHost := beego.AppConfig.String("writeuserhost")
83
+	writeUserHost := "kuyicloud2024lt.mysql.rds.aliyuncs.com"
84 84
 	writeUserPort := beego.AppConfig.String("writeuserport")
85
-	writeUserUser := beego.AppConfig.String("writeuseruser")
86
-	writeUserPass := beego.AppConfig.String("writeuserpass")
85
+	writeUserUser := "syh"
86
+	writeUserPass := "Zc8xxwN4jkZswprx8VKHRSd2rBMRWgC4"
87 87
 	writeUserName := beego.AppConfig.String("writeusername")
88 88
 
89 89
 	rdsn := fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?charset=utf8mb4&parseTime=true", readUser, readPass, readHost, readPort, readName)