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