|
@@ -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)
|