Browse Source

编辑病人问题处理

XMLWAN 4 years ago
parent
commit
ac2353b257
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/patient_api_controller.go

+ 1 - 1
controllers/patient_api_controller.go View File

@@ -461,7 +461,6 @@ func (c *PatientApiController) EditPatient() {
461 461
 	patient.UpdatedTime = time.Now().Unix()
462 462
 	patient.IsInfectious = is_infectious
463 463
 	patient.RemindCycle = remind_cycle
464
-
465 464
 	err := service.UpdatePatient(&patient, contagions, diseases)
466 465
 	if err != nil {
467 466
 		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeUpdatePatient)
@@ -554,6 +553,7 @@ func (c *PatientApiController) EditPatient() {
554 553
 		TellPhone:                 patient.TellPhone,
555 554
 		ContactName:               patient.ContactName,
556 555
 		UpdatedTime:               time.Now().Unix(),
556
+		BloodPatients:             1,
557 557
 	}
558 558
 	//	//更新病人ID获取新表病人ID
559 559
 	err = service.UpdatepatientTwo(&patientsNew, id)