Browse Source

修改核对医嘱功能

csx 4 years ago
parent
commit
20560f0d2d
1 changed files with 5 additions and 5 deletions
  1. 5 5
      controllers/mobile_api_controllers/patient_api_controller.go

+ 5 - 5
controllers/mobile_api_controllers/patient_api_controller.go View File

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