瀏覽代碼

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
 )