陈少旭 10 mēnešus atpakaļ
vecāks
revīzija
ffd05725e8
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      controllers/sg/his_api_controller.go

+ 5 - 0
controllers/sg/his_api_controller.go Parādīt failu

187
 		}
187
 		}
188
 		cFYLJG001.RxDrugCnt = count
188
 		cFYLJG001.RxDrugCnt = count
189
 		cFYLJG001.ValiDays = "5"
189
 		cFYLJG001.ValiDays = "5"
190
+		ts := time.Unix(item.PreTime, 0)
191
+		record_time = ts.AddDate(0, 0, int(5)).Unix()
192
+		tempTime3 := time.Unix(record_time, 0)
193
+		timeFormat3 := tempTime3.Format("2006-01-02 15:04:05")
194
+		cFYLJG001.ValiEndTime = timeFormat3
190
 		cFYLJG001.RxCotnFlag = "0"
195
 		cFYLJG001.RxCotnFlag = "0"
191
 		for _, subItem := range item.HisDoctorAdviceInfo {
196
 		for _, subItem := range item.HisDoctorAdviceInfo {
192
 			var drug models.RxDrug
197
 			var drug models.RxDrug