ソースを参照

Merge branch '20230223_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20230223_xt_api_new_branch

陈少旭 2 ヶ月 前
コミット
743293cd24
共有3 個のファイルを変更した4 個の追加3 個の削除を含む
  1. 2 2
      controllers/schedule_api_controller.go
  2. 1 0
      models/doctor_advice_models.go
  3. 1 1
      service/patient_service.go

+ 2 - 2
controllers/schedule_api_controller.go ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

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