XMLWAN 4 年之前
父節點
當前提交
b69e696957

+ 4 - 2
controllers/dialysis_api_controller.go 查看文件

@@ -3172,7 +3172,8 @@ func (c *DialysisApiController) PostAssessmentBeforeDislysis() {
3172 3172
 	venous_catheterization_part_other := c.GetString("venous_catheterization_part_other")
3173 3173
 	venous_catheterization_part, _ := c.GetInt64("venous_catheterization_part", 0)
3174 3174
 	venous_catheterization, _ := c.GetInt64("venous_catheterization", 0)
3175
-	puncture_way, _ := c.GetInt64("puncture_way", 0)
3175
+	//puncture_way, _ := c.GetInt64("puncture_way", 0)
3176
+	puncture_way := c.GetString("puncture_way")
3176 3177
 	blood_access_noise, _ := c.GetInt64("blood_access_noise", 0)
3177 3178
 	internal_fistula_other := c.GetString("internal_fistula_other")
3178 3179
 	blood_access_internal_fistula := c.GetString("blood_access_internal_fistula")
@@ -3181,7 +3182,8 @@ func (c *DialysisApiController) PostAssessmentBeforeDislysis() {
3181 3182
 
3182 3183
 	is_infect, _ := c.GetInt64("is_infect", 0)
3183 3184
 	exposed, _ := c.GetFloat("exposed", 0)
3184
-	skin, _ := c.GetInt64("skin", 0)
3185
+	//skin, _ := c.GetInt64("skin", 0)
3186
+	skin := c.GetString("skin")
3185 3187
 	skin_other := c.GetString("skin_other")
3186 3188
 	infect_other := c.GetString("infect_other")
3187 3189
 	ductus_arantii_other := c.GetString("ductus_arantii_other")

+ 2 - 3
controllers/mobile_api_controllers/login_api_controller.go 查看文件

@@ -31,9 +31,8 @@ func (this *LoginAPIController) LoginByPwd() {
31 31
 		return
32 32
 	}
33 33
 	ip := utils.GetIP(this.Ctx.Request)
34
-
35
-	//ssoDomain := beego.AppConfig.String("sso_domain")
36
-	ssoDomain := "http://localhost:8091"
34
+	ssoDomain := beego.AppConfig.String("sso_domain")
35
+	//ssoDomain := "http://localhost:8091"
37 36
 	api := ssoDomain + "/m/login/pwd"
38 37
 	values := make(url.Values)
39 38
 	values.Set("mobile", mobile)

+ 5 - 10
controllers/mobile_api_controllers/patient_api_controller.go 查看文件

@@ -578,10 +578,6 @@ func (c *PatientApiController) ExecDoctorAdvice() {
578 578
 		return
579 579
 	}
580 580
 
581
-	fmt.Println(theTime)
582
-	fmt.Println(theTime.Unix())
583
-	fmt.Println(advice.StartTime)
584
-
585 581
 	if advice.StartTime > theTime.Unix() {
586 582
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeAdviceExceBeforeStart)
587 583
 		return
@@ -852,7 +848,6 @@ func (c *PatientApiController) EditAssessmentBeforeDislysis() {
852 848
 	}
853 849
 
854 850
 	code := predialysisEvaluationFormData(&evaluation, c.Ctx.Input.RequestBody)
855
-
856 851
 	if code > 0 {
857 852
 		c.ServeFailJSONWithSGJErrorCode(code)
858 853
 		return
@@ -1579,8 +1574,9 @@ func predialysisEvaluationFormData(evaluation *models.PredialysisEvaluation, dat
1579 1574
 		evaluation.BloodAccessNoise = blood_access_noise
1580 1575
 	}
1581 1576
 
1582
-	if dataBody["puncture_way"] != nil && reflect.TypeOf(dataBody["puncture_way"]).String() == "float64" {
1583
-		puncture_way := int64(dataBody["puncture_way"].(float64))
1577
+	if dataBody["puncture_way"] != nil && reflect.TypeOf(dataBody["puncture_way"]).String() == "string" {
1578
+		//puncture_way := int64(dataBody["puncture_way"].(float64))
1579
+		puncture_way := dataBody["puncture_way"].(string)
1584 1580
 		evaluation.PunctureWay = puncture_way
1585 1581
 	}
1586 1582
 
@@ -1632,8 +1628,8 @@ func predialysisEvaluationFormData(evaluation *models.PredialysisEvaluation, dat
1632 1628
 
1633 1629
 	if dataBody["skin"] != nil && reflect.TypeOf(dataBody["skin"]).String() == "string" {
1634 1630
 		skin, _ := dataBody["skin"].(string)
1635
-		skins, _ := strconv.ParseInt(skin, 10, 64)
1636
-		evaluation.Skin = skins
1631
+		//skins, _ := strconv.ParseInt(skin, 10, 64)
1632
+		evaluation.Skin = skin
1637 1633
 	}
1638 1634
 
1639 1635
 	if dataBody["skin_other"] != nil && reflect.TypeOf(dataBody["skin_other"]).String() == "string" {
@@ -1731,7 +1727,6 @@ func adviceFormData(advice *models.DoctorAdvice, data []byte, action string) (co
1731 1727
 			return
1732 1728
 		}
1733 1729
 		startTime, _ := dataBody["start_time"].(string)
1734
-		fmt.Println(startTime)
1735 1730
 		if len(startTime) == 0 {
1736 1731
 			utils.ErrorLog("len(start_time) == 0")
1737 1732
 			code = enums.ErrorCodeParamWrong

+ 2 - 2
models/dialysis.go 查看文件

@@ -245,7 +245,7 @@ type PredialysisEvaluation struct {
245 245
 	InternalFistulaOther        string  `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
246 246
 
247 247
 	BloodAccessNoise               int64   `gorm:"column:blood_access_noise" json:"blood_access_noise"`
248
-	PunctureWay                    int64   `gorm:"column:puncture_way" json:"puncture_way"`
248
+	PunctureWay                    string  `gorm:"column:puncture_way" json:"puncture_way"`
249 249
 	VenousCatheterization          int64   `gorm:"column:venous_catheterization" json:"venous_catheterization"`
250 250
 	VenousCatheterizationPart      int64   `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
251 251
 	VenousCatheterizationPartOther string  `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
@@ -258,7 +258,7 @@ type PredialysisEvaluation struct {
258 258
 	MachineType                    string  `gorm:"column:machine_type" json:"machine_type"`
259 259
 	IsInfect                       int64   `gorm:"column:is_infect" json:"is_infect"`
260 260
 	Exposed                        float64 `gorm:"column:exposed" json:"exposed"`
261
-	Skin                           int64   `gorm:"column:skin" json:"skin"`
261
+	Skin                           string  `gorm:"column:skin" json:"skin"`
262 262
 	SkinOther                      string  `gorm:"column:skin_other" json:"skin_other"`
263 263
 	InfectOther                    string  `gorm:"column:infect_other" json:"infect_other"`
264 264
 	DuctusArantiiOther             string  `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`

+ 5 - 5
service/print_data_service/schedule_dialysis/print_schedule_dialysis_models.go 查看文件

@@ -235,7 +235,7 @@ type AssessmentBeforeDislysisVM struct {
235 235
 	BloodAccessInternalFistula     string  `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
236 236
 	InternalFistulaOther           string  `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
237 237
 	BloodAccessNoise               int64   `gorm:"column:blood_access_noise" json:"blood_access_noise"`
238
-	PunctureWay                    int64   `gorm:"column:puncture_way" json:"puncture_way"`
238
+	PunctureWay                    string  `gorm:"column:puncture_way" json:"puncture_way"`
239 239
 	VenousCatheterization          int64   `gorm:"column:venous_catheterization" json:"venous_catheterization"`
240 240
 	VenousCatheterizationPart      int64   `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
241 241
 	VenousCatheterizationPartOther string  `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
@@ -248,7 +248,7 @@ type AssessmentBeforeDislysisVM struct {
248 248
 	MachineType                    string  `gorm:"column:machine_type" json:"machine_type"`
249 249
 	IsInfect                       int64   `gorm:"column:is_infect" json:"is_infect"`
250 250
 	Exposed                        float64 `gorm:"column:exposed" json:"exposed"`
251
-	Skin                           int64   `gorm:"column:skin" json:"skin"`
251
+	Skin                           string  `gorm:"column:skin" json:"skin"`
252 252
 	SkinOther                      string  `gorm:"column:skin_other" json:"skin_other"`
253 253
 	InfectOther                    string  `gorm:"column:infect_other" json:"infect_other"`
254 254
 	DuctusArantiiOther             string  `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
@@ -476,11 +476,11 @@ type MonitoringRecordVM struct {
476 476
 	BloodPressureType         int64   `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
477 477
 	BloodFlowVolume           float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
478 478
 	VenousPressure            float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
479
-	VenousPressureType        int64  `gorm:"column:venous_pressure_type" json:"venous_pressure_type"`
479
+	VenousPressureType        int64   `gorm:"column:venous_pressure_type" json:"venous_pressure_type"`
480 480
 	ArterialPressure          float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
481
-	ArterialPressureType      int64 `gorm:"column:arterial_pressure_type" json:"arterial_pressure_type"`
481
+	ArterialPressureType      int64   `gorm:"column:arterial_pressure_type" json:"arterial_pressure_type"`
482 482
 	TransmembranePressure     float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
483
-	TransmembranePressureType int64  `gorm:"column:transmembrane_pressure_type" json:"transmembrane_pressure_type"`
483
+	TransmembranePressureType int64   `gorm:"column:transmembrane_pressure_type" json:"transmembrane_pressure_type"`
484 484
 	UltrafiltrationRate       float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
485 485
 	UltrafiltrationVolume     float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
486 486
 	SodiumConcentration       float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`