28169 hace 2 meses
padre
commit
54f0edf9b6

+ 2 - 2
controllers/schedule_api_controller.go Ver fichero

@@ -2013,8 +2013,8 @@ func (c *ScheduleApiController) DeleteSchedule() {
2013 2013
 	}
2014 2014
 
2015 2015
 	if adminINfo.CurrentOrgId == 10206 {
2016
-		advice, _ := service.GetHisDoctorAdviceListTwenty(schedule.PatientId, schedule.ScheduleDate, adminINfo.CurrentOrgId)
2017
-		if len(advice) > 0 {
2016
+		hisAdvice, _ := service.GetHisDoctorAdviceListTwenty(schedule.PatientId, schedule.ScheduleDate, adminINfo.CurrentOrgId)
2017
+		if len(hisAdvice) > 0 {
2018 2018
 			service.UpdateHisAdviceObj(schedule.PatientId, schedule.ScheduleDate, adminINfo.CurrentOrgId)
2019 2019
 		}
2020 2020
 	}

+ 1 - 0
models/doctor_advice_models.go Ver fichero

@@ -44,6 +44,7 @@ type ExecutionFrequencyDic struct {
44 44
 	UpdatedTime int64  `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
45 45
 	OrgId       int64  `gorm:"column:org_id" json:"org_id" form:"org_id"`
46 46
 	Creator     int64  `gorm:"column:creator" json:"creator" form:"creator"`
47
+	Count       int64  `gorm:"column:count" json:"count" form:"count"`
47 48
 }
48 49
 
49 50
 func (ExecutionFrequencyDic) TableName() string {

+ 1 - 1
service/patient_service.go Ver fichero

@@ -2090,7 +2090,7 @@ func FindRemindAdvice(user_org_id int64, advice_name string, advice_desc string,
2090 2090
 }
2091 2091
 
2092 2092
 func UpdateScheduleByDeathTime(patientid int64, shcheduledate int64) error {
2093
-	err := XTWriteDB().Model(models.XtSchedule{}).Where("patient_id = ? and schedule_date > ?", patientid, shcheduledate).Updates(map[string]interface{}{"status": 0}).Error
2093
+	err := XTWriteDB().Model(models.XtSchedule{}).Where("patient_id = ? and schedule_date > ?", patientid, shcheduledate).Updates(map[string]interface{}{"status": 12}).Error
2094 2094
 	return err
2095 2095
 }
2096 2096