瀏覽代碼

提交代码

陈少旭 7 月之前
父節點
當前提交
ab2e800edd
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      controllers/his_api_controller.go

+ 4 - 4
controllers/his_api_controller.go 查看文件

@@ -3241,8 +3241,8 @@ func (c *HisApiController) CreateHisPrescription() {
3241 3241
 					timeLayout := "2006-01-02"
3242 3242
 					loc, _ := time.LoadLocation("Local")
3243 3243
 					theTime2, err := time.ParseInLocation(timeLayout+" 15:04", preTime, loc)
3244
-					result := strings.Split(preTime, " ")
3245
-					theTime3, _ := time.ParseInLocation(timeLayout, result[0], loc)
3244
+					//result := strings.Split(preTime, " ")
3245
+					theTime3, _ := time.ParseInLocation(timeLayout, record_date, loc)
3246 3246
 					if err != nil {
3247 3247
 						c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
3248 3248
 						return
@@ -4421,8 +4421,8 @@ func (c *HisApiController) CreateHisPrescription() {
4421 4421
 					timeLayout := "2006-01-02"
4422 4422
 					loc, _ := time.LoadLocation("Local")
4423 4423
 					theTime2, err := time.ParseInLocation(timeLayout+" 15:04", preTime, loc)
4424
-					result := strings.Split(preTime, " ")
4425
-					theTime3, _ := time.ParseInLocation(timeLayout, result[0], loc)
4424
+					//result := strings.Split(preTime, " ")
4425
+					theTime3, _ := time.ParseInLocation(timeLayout, record_date, loc)
4426 4426
 					if err != nil {
4427 4427
 						c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
4428 4428
 						return