|
@@ -1243,8 +1243,8 @@ func (this *NewDialysisApiController) UpdatedPatient() {
|
1243
|
1243
|
fmt.Print("透析号", dialysis)
|
1244
|
1244
|
patientsoure := int64(dataBody["patientsoure"].(float64))
|
1245
|
1245
|
fmt.Print("患者来源", patientsoure)
|
1246
|
|
- lapseto := int64(dataBody["lapseto"].(float64))
|
1247
|
|
- fmt.Print("留置状态", lapseto)
|
|
1246
|
+ //lapseto := int64(dataBody["lapseto"].(float64))
|
|
1247
|
+ //fmt.Print("留置状态", lapseto)
|
1248
|
1248
|
contagions := dataBody["resultTwo"].([]interface{})
|
1249
|
1249
|
fmt.Print("传染病", contagions)
|
1250
|
1250
|
ids := make([]int64, 0)
|
|
@@ -1347,7 +1347,6 @@ func (this *NewDialysisApiController) UpdatedPatient() {
|
1347
|
1347
|
Birthday: birth,
|
1348
|
1348
|
Age: ages,
|
1349
|
1349
|
Phone: phone,
|
1350
|
|
- Lapseto: lapseto,
|
1351
|
1350
|
AdmissionNumber: adminssionNumber,
|
1352
|
1351
|
FirstDialysisDate: fisttime,
|
1353
|
1352
|
Diagnose: diagonse,
|
|
@@ -1361,12 +1360,12 @@ func (this *NewDialysisApiController) UpdatedPatient() {
|
1361
|
1360
|
IsInfectious: is_infectious,
|
1362
|
1361
|
}
|
1363
|
1362
|
err = service.UpdatedPatient(patients, patient.BloodId)
|
1364
|
|
- patientLapseto := models.PatientLapseto{
|
1365
|
|
- LapsetoType: lapseto,
|
1366
|
|
- LapsetoTime: time.Now().Unix(),
|
1367
|
|
- UpdatedTime: time.Now().Unix(),
|
1368
|
|
- }
|
1369
|
|
- err = service.UpdatePatientLapseto(patient.BloodId, patientLapseto)
|
|
1363
|
+ //patientLapseto := models.PatientLapseto{
|
|
1364
|
+ // LapsetoType: lapseto,
|
|
1365
|
+ // LapsetoTime: time.Now().Unix(),
|
|
1366
|
+ // UpdatedTime: time.Now().Unix(),
|
|
1367
|
+ //}
|
|
1368
|
+ //err = service.UpdatePatientLapseto(patient.BloodId, patientLapseto)
|
1370
|
1369
|
fmt.Println("编辑转归失败", err)
|
1371
|
1370
|
patientsNew := models.XtPatientsNew{
|
1372
|
1371
|
ID: id,
|
|
@@ -1375,7 +1374,6 @@ func (this *NewDialysisApiController) UpdatedPatient() {
|
1375
|
1374
|
Birthday: birth,
|
1376
|
1375
|
Age: ages,
|
1377
|
1376
|
Phone: phone,
|
1378
|
|
- Lapseto: lapseto,
|
1379
|
1377
|
AdmissionNumber: adminssionNumber,
|
1380
|
1378
|
FirstDialysisDate: fisttime,
|
1381
|
1379
|
Diagnose: diagonse,
|
|
@@ -1427,7 +1425,6 @@ func (this *NewDialysisApiController) UpdatedPatient() {
|
1427
|
1425
|
Birthday: birth,
|
1428
|
1426
|
Age: ages,
|
1429
|
1427
|
Phone: phone,
|
1430
|
|
- Lapseto: lapseto,
|
1431
|
1428
|
AdmissionNumber: adminssionNumber,
|
1432
|
1429
|
FirstDialysisDate: fisttime,
|
1433
|
1430
|
Diagnose: diagonse,
|
|
@@ -1480,7 +1477,6 @@ func (this *NewDialysisApiController) UpdatedPatient() {
|
1480
|
1477
|
Birthday: birth,
|
1481
|
1478
|
Age: ages,
|
1482
|
1479
|
Phone: phone,
|
1483
|
|
- Lapseto: lapseto,
|
1484
|
1480
|
AdmissionNumber: adminssionNumber,
|
1485
|
1481
|
FirstDialysisDate: fisttime,
|
1486
|
1482
|
Diagnose: diagonse,
|
|
@@ -1533,7 +1529,7 @@ func (this *NewDialysisApiController) GetAllProjectName() {
|
1533
|
1529
|
patient, _ := service.GetNewPatient(paientids)
|
1534
|
1530
|
orgid := this.GetMobileAdminUserInfo().Org.Id
|
1535
|
1531
|
projectName, err := service.GetAllProjectName(ids, orgid, patient.BloodId)
|
1536
|
|
- fmt.Println("projectname----------------------------------", err)
|
|
1532
|
+ fmt.Println("projectname", err)
|
1537
|
1533
|
if err != nil {
|
1538
|
1534
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
1539
|
1535
|
return
|