|
@@ -4643,19 +4643,22 @@ func (c *DialysisAPIController) BatchDeleteMonitor() {
|
4643
|
4643
|
}
|
4644
|
4644
|
|
4645
|
4645
|
func (c *DialysisAPIController) GetPatientDialysisRecordList() {
|
4646
|
|
-
|
|
4646
|
+
|
4647
|
4647
|
id, _ := c.GetInt64("id")
|
4648
|
4648
|
fmt.Println(id)
|
4649
|
4649
|
timeLayout := "2006-01-02"
|
4650
|
4650
|
loc, _ := time.LoadLocation("Local")
|
4651
|
4651
|
start_time := time.Now().Format("2006-01-02")
|
|
4652
|
+
|
4652
|
4653
|
startime, _ := time.ParseInLocation(timeLayout+" 15:04:05", start_time+" 00:00:00", loc)
|
|
4654
|
+ fmt.Println("start_timestart_time",start_time)
|
4653
|
4655
|
nowTime := time.Now()
|
4654
|
4656
|
endTime := nowTime.AddDate(-1, 0, 0)
|
4655
|
4657
|
endTimes := endTime.Format("2006-01-02")
|
4656
|
4658
|
endtime, _ := time.ParseInLocation(timeLayout+" 15:04:05", endTimes+" 00:00:00", loc)
|
4657
|
4659
|
adminUserInfo := c.GetAdminUserInfo()
|
4658
|
4660
|
orgId := adminUserInfo.CurrentOrgId
|
|
4661
|
+ fmt.Println("sdsd",endTimes)
|
4659
|
4662
|
list, _ := service.GetPatientDialysisRecordList(id, startime.Unix(), endtime.Unix(), orgId)
|
4660
|
4663
|
c.ServeSuccessJSON(map[string]interface{}{
|
4661
|
4664
|
"list": list,
|