|
@@ -782,11 +782,11 @@ func (c *PatientApiController) CheckDoctorAdvice() {
|
782
|
782
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeUpdateDoctorAdviceFail)
|
783
|
783
|
return
|
784
|
784
|
} else {
|
785
|
|
- t := time.Now().Format("2006-01-02")
|
786
|
|
- timeLayout2 := "2006-01-02"
|
787
|
|
- loc, _ := time.LoadLocation("Local")
|
788
|
|
- theTime, _ := time.ParseInLocation(timeLayout2, t, loc)
|
789
|
|
- err = service.BatchCheckOldDoctorAdvice(&advices, ids, adminUserInfo.Org.Id, theTime.Unix())
|
|
785
|
+ //t := time.Now().Format("2006-01-02")/**/
|
|
786
|
+ //timeLayout2 := "2006-01-02"
|
|
787
|
+ //loc, _ := time.LoadLocation("Local")
|
|
788
|
+ //theTime, _ := time.ParseInLocation(timeLayout2, t, loc)
|
|
789
|
+ err = service.BatchCheckOldDoctorAdvice(&advices, ids, adminUserInfo.Org.Id, advice.AdviceDate)
|
790
|
790
|
|
791
|
791
|
}
|
792
|
792
|
}
|