浏览代码

hisbug346

mainqaq 3 年前
父节点
当前提交
8caaca496f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/his_project_api_controller.go

+ 2 - 2
controllers/his_project_api_controller.go 查看文件

@@ -1061,8 +1061,8 @@ func (this *HisProjectApiController) GetHisPatientHistory() {
1061 1061
 	register_type, _ := this.GetInt64("register_type")
1062 1062
 	limit, _ := this.GetInt64("limit")
1063 1063
 	page, _ := this.GetInt64("page")
1064
-	startTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", start_time+" 00:00:00", loc)
1065
-	endTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", end_time+" 23:59:59", loc)
1064
+	startTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", start_time+":00", loc)
1065
+	endTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", end_time+":59", loc)
1066 1066
 	adminUserInfo := this.GetAdminUserInfo()
1067 1067
 	orgId := adminUserInfo.CurrentOrgId
1068 1068
 	history, total, err := service.GetHisPatientHistory(keyword, startTime.Unix(), endTime.Unix(), register_type, limit, page, orgId)