Explorar el Código

Merge branch '20200710_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20200710_xt_api_new_branch

csx hace 4 años
padre
commit
1f7ced3f35

+ 4 - 2
controllers/dialysis_api_controller.go Ver fichero

3172
 	venous_catheterization_part_other := c.GetString("venous_catheterization_part_other")
3172
 	venous_catheterization_part_other := c.GetString("venous_catheterization_part_other")
3173
 	venous_catheterization_part, _ := c.GetInt64("venous_catheterization_part", 0)
3173
 	venous_catheterization_part, _ := c.GetInt64("venous_catheterization_part", 0)
3174
 	venous_catheterization, _ := c.GetInt64("venous_catheterization", 0)
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
 	blood_access_noise, _ := c.GetInt64("blood_access_noise", 0)
3177
 	blood_access_noise, _ := c.GetInt64("blood_access_noise", 0)
3177
 	internal_fistula_other := c.GetString("internal_fistula_other")
3178
 	internal_fistula_other := c.GetString("internal_fistula_other")
3178
 	blood_access_internal_fistula := c.GetString("blood_access_internal_fistula")
3179
 	blood_access_internal_fistula := c.GetString("blood_access_internal_fistula")
3181
 
3182
 
3182
 	is_infect, _ := c.GetInt64("is_infect", 0)
3183
 	is_infect, _ := c.GetInt64("is_infect", 0)
3183
 	exposed, _ := c.GetFloat("exposed", 0)
3184
 	exposed, _ := c.GetFloat("exposed", 0)
3184
-	skin, _ := c.GetInt64("skin", 0)
3185
+	//skin, _ := c.GetInt64("skin", 0)
3186
+	skin := c.GetString("skin")
3185
 	skin_other := c.GetString("skin_other")
3187
 	skin_other := c.GetString("skin_other")
3186
 	infect_other := c.GetString("infect_other")
3188
 	infect_other := c.GetString("infect_other")
3187
 	ductus_arantii_other := c.GetString("ductus_arantii_other")
3189
 	ductus_arantii_other := c.GetString("ductus_arantii_other")

+ 2 - 3
controllers/mobile_api_controllers/login_api_controller.go Ver fichero

31
 		return
31
 		return
32
 	}
32
 	}
33
 	ip := utils.GetIP(this.Ctx.Request)
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
 	api := ssoDomain + "/m/login/pwd"
36
 	api := ssoDomain + "/m/login/pwd"
38
 	values := make(url.Values)
37
 	values := make(url.Values)
39
 	values.Set("mobile", mobile)
38
 	values.Set("mobile", mobile)

+ 5 - 10
controllers/mobile_api_controllers/patient_api_controller.go Ver fichero

578
 		return
578
 		return
579
 	}
579
 	}
580
 
580
 
581
-	fmt.Println(theTime)
582
-	fmt.Println(theTime.Unix())
583
-	fmt.Println(advice.StartTime)
584
-
585
 	if advice.StartTime > theTime.Unix() {
581
 	if advice.StartTime > theTime.Unix() {
586
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeAdviceExceBeforeStart)
582
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeAdviceExceBeforeStart)
587
 		return
583
 		return
852
 	}
848
 	}
853
 
849
 
854
 	code := predialysisEvaluationFormData(&evaluation, c.Ctx.Input.RequestBody)
850
 	code := predialysisEvaluationFormData(&evaluation, c.Ctx.Input.RequestBody)
855
-
856
 	if code > 0 {
851
 	if code > 0 {
857
 		c.ServeFailJSONWithSGJErrorCode(code)
852
 		c.ServeFailJSONWithSGJErrorCode(code)
858
 		return
853
 		return
1579
 		evaluation.BloodAccessNoise = blood_access_noise
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
 		evaluation.PunctureWay = puncture_way
1580
 		evaluation.PunctureWay = puncture_way
1585
 	}
1581
 	}
1586
 
1582
 
1632
 
1628
 
1633
 	if dataBody["skin"] != nil && reflect.TypeOf(dataBody["skin"]).String() == "string" {
1629
 	if dataBody["skin"] != nil && reflect.TypeOf(dataBody["skin"]).String() == "string" {
1634
 		skin, _ := dataBody["skin"].(string)
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
 	if dataBody["skin_other"] != nil && reflect.TypeOf(dataBody["skin_other"]).String() == "string" {
1635
 	if dataBody["skin_other"] != nil && reflect.TypeOf(dataBody["skin_other"]).String() == "string" {
1731
 			return
1727
 			return
1732
 		}
1728
 		}
1733
 		startTime, _ := dataBody["start_time"].(string)
1729
 		startTime, _ := dataBody["start_time"].(string)
1734
-		fmt.Println(startTime)
1735
 		if len(startTime) == 0 {
1730
 		if len(startTime) == 0 {
1736
 			utils.ErrorLog("len(start_time) == 0")
1731
 			utils.ErrorLog("len(start_time) == 0")
1737
 			code = enums.ErrorCodeParamWrong
1732
 			code = enums.ErrorCodeParamWrong

+ 0 - 8
controllers/new_mobile_api_controllers/common_api_controller.go Ver fichero

265
 
265
 
266
 func (this *CommonApiController) UpdateConfiguration() {
266
 func (this *CommonApiController) UpdateConfiguration() {
267
 	id, _ := this.GetInt64("id")
267
 	id, _ := this.GetInt64("id")
268
-	//fmt.Println("id", id)
269
 	dataBody := make(map[string]interface{}, 0)
268
 	dataBody := make(map[string]interface{}, 0)
270
 	err := json.Unmarshal(this.Ctx.Input.RequestBody, &dataBody)
269
 	err := json.Unmarshal(this.Ctx.Input.RequestBody, &dataBody)
271
-	//fmt.Println("err", err)
272
 	inspectionmajor := int64(dataBody["inspectionMajor"].(float64))
270
 	inspectionmajor := int64(dataBody["inspectionMajor"].(float64))
273
-	//fmt.Println("大项", inspectionmajor)
274
 	inspectionMinor := int64(dataBody["inspectionMinor"].(float64))
271
 	inspectionMinor := int64(dataBody["inspectionMinor"].(float64))
275
-	//fmt.Println("小项", inspectionMinor)
276
 	minrange := dataBody["min_range"].(string)
272
 	minrange := dataBody["min_range"].(string)
277
-	//fmt.Println("minragne", minrange)
278
 	largerange := dataBody["large_range"].(string)
273
 	largerange := dataBody["large_range"].(string)
279
-	//fmt.Println("largerange", largerange)
280
 	sort := int64(dataBody["sort"].(float64))
274
 	sort := int64(dataBody["sort"].(float64))
281
-	//fmt.Println("排序", sort)
282
 	rangvalue := dataBody["range_value"].(string)
275
 	rangvalue := dataBody["range_value"].(string)
283
-	//fmt.Println("范围", rangvalue)
284
 	if rangvalue == "0" {
276
 	if rangvalue == "0" {
285
 		rangvalue = ""
277
 		rangvalue = ""
286
 	}
278
 	}

+ 2 - 2
models/dialysis.go Ver fichero

245
 	InternalFistulaOther        string  `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
245
 	InternalFistulaOther        string  `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
246
 
246
 
247
 	BloodAccessNoise               int64   `gorm:"column:blood_access_noise" json:"blood_access_noise"`
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
 	VenousCatheterization          int64   `gorm:"column:venous_catheterization" json:"venous_catheterization"`
249
 	VenousCatheterization          int64   `gorm:"column:venous_catheterization" json:"venous_catheterization"`
250
 	VenousCatheterizationPart      int64   `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
250
 	VenousCatheterizationPart      int64   `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
251
 	VenousCatheterizationPartOther string  `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
251
 	VenousCatheterizationPartOther string  `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
258
 	MachineType                    string  `gorm:"column:machine_type" json:"machine_type"`
258
 	MachineType                    string  `gorm:"column:machine_type" json:"machine_type"`
259
 	IsInfect                       int64   `gorm:"column:is_infect" json:"is_infect"`
259
 	IsInfect                       int64   `gorm:"column:is_infect" json:"is_infect"`
260
 	Exposed                        float64 `gorm:"column:exposed" json:"exposed"`
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
 	SkinOther                      string  `gorm:"column:skin_other" json:"skin_other"`
262
 	SkinOther                      string  `gorm:"column:skin_other" json:"skin_other"`
263
 	InfectOther                    string  `gorm:"column:infect_other" json:"infect_other"`
263
 	InfectOther                    string  `gorm:"column:infect_other" json:"infect_other"`
264
 	DuctusArantiiOther             string  `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
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 Ver fichero

235
 	BloodAccessInternalFistula     string  `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
235
 	BloodAccessInternalFistula     string  `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
236
 	InternalFistulaOther           string  `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
236
 	InternalFistulaOther           string  `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
237
 	BloodAccessNoise               int64   `gorm:"column:blood_access_noise" json:"blood_access_noise"`
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
 	VenousCatheterization          int64   `gorm:"column:venous_catheterization" json:"venous_catheterization"`
239
 	VenousCatheterization          int64   `gorm:"column:venous_catheterization" json:"venous_catheterization"`
240
 	VenousCatheterizationPart      int64   `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
240
 	VenousCatheterizationPart      int64   `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
241
 	VenousCatheterizationPartOther string  `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
241
 	VenousCatheterizationPartOther string  `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
248
 	MachineType                    string  `gorm:"column:machine_type" json:"machine_type"`
248
 	MachineType                    string  `gorm:"column:machine_type" json:"machine_type"`
249
 	IsInfect                       int64   `gorm:"column:is_infect" json:"is_infect"`
249
 	IsInfect                       int64   `gorm:"column:is_infect" json:"is_infect"`
250
 	Exposed                        float64 `gorm:"column:exposed" json:"exposed"`
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
 	SkinOther                      string  `gorm:"column:skin_other" json:"skin_other"`
252
 	SkinOther                      string  `gorm:"column:skin_other" json:"skin_other"`
253
 	InfectOther                    string  `gorm:"column:infect_other" json:"infect_other"`
253
 	InfectOther                    string  `gorm:"column:infect_other" json:"infect_other"`
254
 	DuctusArantiiOther             string  `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
254
 	DuctusArantiiOther             string  `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
476
 	BloodPressureType         int64   `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
476
 	BloodPressureType         int64   `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
477
 	BloodFlowVolume           float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
477
 	BloodFlowVolume           float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
478
 	VenousPressure            float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
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
 	ArterialPressure          float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
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
 	TransmembranePressure     float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
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
 	UltrafiltrationRate       float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
484
 	UltrafiltrationRate       float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
485
 	UltrafiltrationVolume     float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
485
 	UltrafiltrationVolume     float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
486
 	SodiumConcentration       float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
486
 	SodiumConcentration       float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`