|
@@ -578,6 +578,7 @@ func (this *NewDialysisApiController) GetPatientDetail() {
|
578
|
578
|
id, _ := this.GetInt64("id")
|
579
|
579
|
//获取病人详情信息
|
580
|
580
|
detail, err := service.GetPatientDetailTwo(id)
|
|
581
|
+
|
581
|
582
|
//获取传染病详情
|
582
|
583
|
diseases := service.GetPatientDiseasesTwo(detail.BloodId)
|
583
|
584
|
//获取慢病传染病
|
|
@@ -1257,8 +1258,8 @@ func (this *NewDialysisApiController) UpdatedPatient() {
|
1257
|
1258
|
fmt.Print("透析号", dialysis)
|
1258
|
1259
|
patientsoure := int64(dataBody["patientsoure"].(float64))
|
1259
|
1260
|
fmt.Print("患者来源", patientsoure)
|
1260
|
|
- //lapseto := int64(dataBody["lapseto"].(float64))
|
1261
|
|
- //fmt.Print("留置状态", lapseto)
|
|
1261
|
+ lapseto := int64(dataBody["lapseto"].(float64))
|
|
1262
|
+ fmt.Print("留置状态", lapseto)
|
1262
|
1263
|
contagions := dataBody["resultTwo"].([]interface{})
|
1263
|
1264
|
fmt.Print("传染病", contagions)
|
1264
|
1265
|
ids := make([]int64, 0)
|
|
@@ -1372,6 +1373,7 @@ func (this *NewDialysisApiController) UpdatedPatient() {
|
1372
|
1373
|
Avatar: avatar,
|
1373
|
1374
|
IdCardNo: idCard,
|
1374
|
1375
|
IsInfectious: is_infectious,
|
|
1376
|
+ Lapseto: lapseto,
|
1375
|
1377
|
}
|
1376
|
1378
|
err = service.UpdatedPatient(patients, patient.BloodId)
|
1377
|
1379
|
//patientLapseto := models.PatientLapseto{
|
|
@@ -1399,6 +1401,7 @@ func (this *NewDialysisApiController) UpdatedPatient() {
|
1399
|
1401
|
Avatar: avatar,
|
1400
|
1402
|
IdCardNo: idCard,
|
1401
|
1403
|
IsInfectious: is_infectious,
|
|
1404
|
+ Lapseto: lapseto,
|
1402
|
1405
|
}
|
1403
|
1406
|
err = service.UpdateXtPatientNew(patientsNew, id)
|
1404
|
1407
|
if err != nil {
|