XMLWAN 2 gadus atpakaļ
vecāks
revīzija
bf40b8541b

+ 8 - 1
service/auto_create_week_schedules_service.go Parādīt failu

@@ -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 Parādīt failu

@@ -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) {