Преглед изворни кода

Merge branch 'master' of http://git.shengws.com/xmg123/Xcx_New

张保健 пре 2 година
родитељ
комит
ecd30118bf
2 измењених фајлова са 9 додато и 1 уклоњено
  1. 8 1
      service/auto_create_week_schedules_service.go
  2. 1 0
      service/xcx_mobile_api_service.go

+ 8 - 1
service/auto_create_week_schedules_service.go Прегледај датотеку

@@ -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 - 0
service/xcx_mobile_api_service.go Прегледај датотеку

@@ -9,6 +9,7 @@ import (
9 9
 	"errors"
10 10
 	"fmt"
11 11
 	"github.com/jinzhu/gorm"
12
+
12 13
 	"net/http"
13 14
 	"time"
14 15
 )