瀏覽代碼

修改核对医嘱功能

csx 4 年之前
父節點
當前提交
20560f0d2d
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      controllers/mobile_api_controllers/patient_api_controller.go

+ 5 - 5
controllers/mobile_api_controllers/patient_api_controller.go 查看文件

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