Bladeren bron

体积小

XMLWAN 2 jaren geleden
bovenliggende
commit
bf40b8541b
2 gewijzigde bestanden met toevoegingen van 9 en 2 verwijderingen
  1. 8 1
      service/auto_create_week_schedules_service.go
  2. 1 1
      service/xcx_mobile_api_service.go

+ 8 - 1
service/auto_create_week_schedules_service.go Bestand weergeven

@@ -154,7 +154,14 @@ func _refreshWeekSchedulesWithTemplateItems(tx *gorm.DB, orgID int64, week time.
154 154
 			if deviceNumber == nil {
155 155
 				continue
156 156
 			}
157
-
157
+			fmt.Println("orgID", orgID)
158
+			fmt.Println("deviceNumber.ZoneID", deviceNumber.ZoneID)
159
+			fmt.Println("item.DeviceNumberID", item.DeviceNumberID)
160
+			fmt.Println("item.PatientID", item.PatientID)
161
+			fmt.Println("monday.AddDate(0, 0, int(item.Weekday-1)).Unix()", monday.AddDate(0, 0, int(item.Weekday-1)).Unix())
162
+			fmt.Println("monday.AddDate(0, 0, int(item.Weekday-1)).Unix()", item.Weekday)
163
+			fmt.Println("monday.AddDate(0, 0, int(item.Weekday-1)).Unix()", item.TimeType)
164
+			fmt.Println("monday.AddDate(0, 0, int(item.Weekday-1)).Unix()", item.TreatMode)
158 165
 			valueStrs = append(valueStrs, "(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")
159 166
 			values = append(values, orgID)
160 167
 			values = append(values, deviceNumber.ZoneID)

+ 1 - 1
service/xcx_mobile_api_service.go Bestand weergeven

@@ -9,9 +9,9 @@ import (
9 9
 	"errors"
10 10
 	"fmt"
11 11
 	"github.com/jinzhu/gorm"
12
+
12 13
 	"net/http"
13 14
 	"time"
14
-	"net/http"
15 15
 )
16 16
 
17 17
 func GetXcxMobileInformation(mobile string) (*models.XcxAdminUserRole, error) {