Browse Source

2024/6/17

28169 1 month ago
parent
commit
0d906621a1

BIN
XT_New.exe View File


+ 4 - 4
controllers/base_api_controller.go View File

83
 		userAdmin.ModifyTime = 1530786071
83
 		userAdmin.ModifyTime = 1530786071
84
 		var subscibe models.ServeSubscibe
84
 		var subscibe models.ServeSubscibe
85
 		subscibe.ID = 11
85
 		subscibe.ID = 11
86
-		subscibe.OrgId = 10567 //机构id
86
+		subscibe.OrgId = 10164 //机构id
87
 		subscibe.PeriodStart = 1547447814
87
 		subscibe.PeriodStart = 1547447814
88
 		subscibe.PeriodEnd = 1550039814
88
 		subscibe.PeriodEnd = 1550039814
89
 		subscibe.State = 1
89
 		subscibe.State = 1
93
 		subscibes := make(map[int64]*models.ServeSubscibe, 0)
93
 		subscibes := make(map[int64]*models.ServeSubscibe, 0)
94
 		subscibes[4] = &subscibe
94
 		subscibes[4] = &subscibe
95
 		var adminUserInfo service.AdminUserInfo
95
 		var adminUserInfo service.AdminUserInfo
96
-		adminUserInfo.CurrentOrgId = 10567 //机构id小英9675或4
96
+		adminUserInfo.CurrentOrgId = 10164 //机构id小英9675或4
97
 		adminUserInfo.CurrentAppId = 10697 //4
97
 		adminUserInfo.CurrentAppId = 10697 //4
98
 		adminUserInfo.AdminUser = &userAdmin
98
 		adminUserInfo.AdminUser = &userAdmin
99
 		adminUserInfo.Subscibes = subscibes
99
 		adminUserInfo.Subscibes = subscibes
329
 		userAdmin.ModifyTime = 1530786071
329
 		userAdmin.ModifyTime = 1530786071
330
 		var subscibe models.ServeSubscibe
330
 		var subscibe models.ServeSubscibe
331
 		subscibe.ID = 11
331
 		subscibe.ID = 11
332
-		subscibe.OrgId = 10567 //机构id小英9675或4
332
+		subscibe.OrgId = 10164 //机构id小英9675或4
333
 		subscibe.PeriodStart = 1538035409
333
 		subscibe.PeriodStart = 1538035409
334
 		subscibe.PeriodEnd = 1569571409
334
 		subscibe.PeriodEnd = 1569571409
335
 		subscibe.State = 1
335
 		subscibe.State = 1
339
 		subscibes := make(map[int64]*models.ServeSubscibe, 0)
339
 		subscibes := make(map[int64]*models.ServeSubscibe, 0)
340
 		subscibes[4] = &subscibe
340
 		subscibes[4] = &subscibe
341
 		var adminUserInfo service.AdminUserInfo
341
 		var adminUserInfo service.AdminUserInfo
342
-		adminUserInfo.CurrentOrgId = 10567 //机构id小英9675或4
342
+		adminUserInfo.CurrentOrgId = 10164 //机构id小英9675或4
343
 		adminUserInfo.CurrentAppId = 16787 //4
343
 		adminUserInfo.CurrentAppId = 16787 //4
344
 		adminUserInfo.AdminUser = &userAdmin
344
 		adminUserInfo.AdminUser = &userAdmin
345
 		adminUserInfo.Subscibes = subscibes
345
 		adminUserInfo.Subscibes = subscibes

+ 13 - 0
controllers/dialysis_api_controller.go View File

6114
 	blood_access_set, _ := this.GetInt64("blood_access_set")
6114
 	blood_access_set, _ := this.GetInt64("blood_access_set")
6115
 	dialyzer_perfusion_apparatus_set, _ := this.GetInt64("dialyzer_perfusion_apparatus_set")
6115
 	dialyzer_perfusion_apparatus_set, _ := this.GetInt64("dialyzer_perfusion_apparatus_set")
6116
 	displace_liqui_part_set, _ := this.GetInt64("displace_liqui_part_set")
6116
 	displace_liqui_part_set, _ := this.GetInt64("displace_liqui_part_set")
6117
+
6118
+	cuhong_set, _ := this.GetInt64("cuhong_set")
6119
+	zuoka_set, _ := this.GetInt64("zuoka_set")
6120
+	difenzi_set, _ := this.GetInt64("difenzi_set")
6121
+	gansuna_set, _ := this.GetInt64("gansuna_set")
6122
+	zhetangtie_set, _ := this.GetInt64("zhetangtie_set")
6123
+	niaojimei_set, _ := this.GetInt64("niaojimei_set")
6117
 	dialysisSetting := models.XtDialysisSetting{
6124
 	dialysisSetting := models.XtDialysisSetting{
6118
 		Sodium:                     sodium_set,
6125
 		Sodium:                     sodium_set,
6119
 		Calcium:                    calcium_set,
6126
 		Calcium:                    calcium_set,
6146
 		Glucose:                    glucose_set,
6153
 		Glucose:                    glucose_set,
6147
 		Ctime:                      time.Now().Unix(),
6154
 		Ctime:                      time.Now().Unix(),
6148
 		Mtime:                      time.Now().Unix(),
6155
 		Mtime:                      time.Now().Unix(),
6156
+		CuhongSet:                  cuhong_set,
6157
+		ZuokaSet:                   zuoka_set,
6158
+		DifenziSet:                 difenzi_set,
6159
+		GansunaSet:                 gansuna_set,
6160
+		ZhetangtieSet:              zhetangtie_set,
6161
+		NiaojimeiSet:               niaojimei_set,
6149
 	}
6162
 	}
6150
 	err := service.SaveDialysisSetting(dialysisSetting)
6163
 	err := service.SaveDialysisSetting(dialysisSetting)
6151
 	if err == nil {
6164
 	if err == nil {

+ 2 - 0
controllers/schedule_api_controller.go View File

4263
 	timeStringToTime, _ := utils.ParseTimeStringToTime(timeLayout, timeStr+" 00:00:00")
4263
 	timeStringToTime, _ := utils.ParseTimeStringToTime(timeLayout, timeStr+" 00:00:00")
4264
 	timenow := timeStringToTime.Unix()
4264
 	timenow := timeStringToTime.Unix()
4265
 	for _, it := range patientList {
4265
 	for _, it := range patientList {
4266
+
4266
 		service.UpdateScheduleByDeathTime(it.ID, timenow)
4267
 		service.UpdateScheduleByDeathTime(it.ID, timenow)
4268
+
4267
 		service.UpdateScheduleItemByPatientId(it.ID)
4269
 		service.UpdateScheduleItemByPatientId(it.ID)
4268
 	}
4270
 	}
4269
 
4271
 

+ 6 - 0
models/new_stock_models.go View File

213
 	BloodAccess                int64 `gorm:"column:blood_access" json:"blood_access" form:"blood_access"`
213
 	BloodAccess                int64 `gorm:"column:blood_access" json:"blood_access" form:"blood_access"`
214
 	DialyzerPerfusionApparatus int64 `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
214
 	DialyzerPerfusionApparatus int64 `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
215
 	DisplaceLiquiPart          int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part" form:"displace_liqui_part"`
215
 	DisplaceLiquiPart          int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part" form:"displace_liqui_part"`
216
+	CuhongSet                  int64 `gorm:"column:cuhong_set" json:"cuhong_set" form:"cuhong_set"`
217
+	ZuokaSet                   int64 `gorm:"column:zuoka_set" json:"zuoka_set" form:"zuoka_set"`
218
+	DifenziSet                 int64 `gorm:"column:difenzi_set" json:"difenzi_set" form:"difenzi_set"`
219
+	GansunaSet                 int64 `gorm:"column:gansuna_set" json:"gansuna_set" form:"gansuna_set"`
220
+	ZhetangtieSet              int64 `gorm:"column:zhetangtie_set" json:"zhetangtie_set" form:"zhetangtie_set"`
221
+	NiaojimeiSet               int64 `gorm:"column:niaojimei_set" json:"niaojimei_set" form:"niaojimei_set"`
216
 }
222
 }
217
 
223
 
218
 func (XtDialysisSetting) TableName() string {
224
 func (XtDialysisSetting) TableName() string {