|
@@ -109,7 +109,7 @@ func (c *DialysisApiController) UpdateQueueCall() {
|
109
|
109
|
if qhsj > 0 {
|
110
|
110
|
queueConfig.Qhsj = qhsj
|
111
|
111
|
}
|
112
|
|
-
|
|
112
|
+
|
113
|
113
|
jzdcbbcs, _ := c.GetInt64("jzdcbbcs", 0)
|
114
|
114
|
if jzdcbbcs > 0 {
|
115
|
115
|
queueConfig.Jzdcbbcs = jzdcbbcs
|
|
@@ -122,7 +122,6 @@ func (c *DialysisApiController) UpdateQueueCall() {
|
122
|
122
|
|
123
|
123
|
jzjhyc, _ := c.GetInt64("jzjhyc", 0)
|
124
|
124
|
queueConfig.Jzjhyc = jzjhyc
|
125
|
|
-
|
126
|
125
|
|
127
|
126
|
sjdcbbcs, _ := c.GetInt64("sjdcbbcs", 0)
|
128
|
127
|
if sjdcbbcs > 0 {
|
|
@@ -137,13 +136,12 @@ func (c *DialysisApiController) UpdateQueueCall() {
|
137
|
136
|
sjjhyc, _ := c.GetInt64("sjjhyc", 0)
|
138
|
137
|
queueConfig.Sjjhyc = sjjhyc
|
139
|
138
|
|
140
|
|
-
|
141
|
139
|
txxqyxs, _ := c.GetInt64("txxqyxs", 0)
|
142
|
140
|
queueConfig.Txxqyxs = txxqyxs
|
143
|
141
|
|
144
|
142
|
txglsyxs, _ := c.GetInt64("txglsyxs", 0)
|
145
|
143
|
queueConfig.Txglsyxs = txglsyxs
|
146
|
|
-
|
|
144
|
+
|
147
|
145
|
queueConfig.UpdateTime = time.Now().Unix()
|
148
|
146
|
|
149
|
147
|
service.UpDateQueueCallInfo(queueConfig)
|
|
@@ -233,7 +231,7 @@ func (c *DialysisApiController) PostPrescription() {
|
233
|
231
|
safe_package, _ := c.GetInt64("package", 0)
|
234
|
232
|
a_liquid, _ := c.GetInt64("a_liquid", 0)
|
235
|
233
|
preImpules, _ := c.GetFloat("pre_impulse", 0)
|
236
|
|
- fmt.Println("========================================================", preImpules)
|
|
234
|
+ fmt.Println("", preImpules)
|
237
|
235
|
|
238
|
236
|
anticoagulant_stop_time_hour, _ := c.GetInt64("anticoagulant_stop_time_hour", 0)
|
239
|
237
|
anticoagulant_stop_time_min, _ := c.GetInt64("anticoagulant_stop_time_min", 0)
|
|
@@ -2508,8 +2506,8 @@ func (c *DialysisApiController) CreateRemindDoctorAdvice() {
|
2508
|
2506
|
}
|
2509
|
2507
|
utils.ErrorLog("%v", dataBody)
|
2510
|
2508
|
|
2511
|
|
- timeLayout := "2006-01-02 15:04"
|
2512
|
|
- loc, _ := time.LoadLocation("Local")
|
|
2509
|
+ //timeLayout := "2006-01-02 15:04"
|
|
2510
|
+ //loc, _ := time.LoadLocation("Local")
|
2513
|
2511
|
|
2514
|
2512
|
timeLayout2 := "2006-01-02"
|
2515
|
2513
|
loc2, _ := time.LoadLocation("Local")
|
|
@@ -2526,6 +2524,7 @@ func (c *DialysisApiController) CreateRemindDoctorAdvice() {
|
2526
|
2524
|
}
|
2527
|
2525
|
adviceDate, _ := dataBody["advice_date"].(string)
|
2528
|
2526
|
theTime, err := time.ParseInLocation(timeLayout2, adviceDate, loc2)
|
|
2527
|
+ fmt.Println("the-----------------", theTime)
|
2529
|
2528
|
AdviceDate := theTime.Unix()
|
2530
|
2529
|
RecordDate := theTime.Unix()
|
2531
|
2530
|
|
|
@@ -2538,13 +2537,13 @@ func (c *DialysisApiController) CreateRemindDoctorAdvice() {
|
2538
|
2537
|
utils.ErrorLog("len(start_time) == 0")
|
2539
|
2538
|
return
|
2540
|
2539
|
}
|
2541
|
|
- theTime, err = time.ParseInLocation(timeLayout, startTime, loc)
|
2542
|
|
- if err != nil {
|
2543
|
|
- utils.ErrorLog(err.Error())
|
2544
|
|
- return
|
2545
|
|
- }
|
|
2540
|
+ //theTimeUnix, err := time.ParseInLocation(timeLayout2, startTime, loc2)
|
|
2541
|
+ //if err != nil {
|
|
2542
|
+ // utils.ErrorLog(err.Error())
|
|
2543
|
+ // return
|
|
2544
|
+ //}
|
2546
|
2545
|
StartTime := theTime.Unix()
|
2547
|
|
-
|
|
2546
|
+ fmt.Println("startTIME", StartTime)
|
2548
|
2547
|
Remark := ""
|
2549
|
2548
|
if dataBody["remark"] != nil && reflect.TypeOf(dataBody["remark"]).String() == "string" {
|
2550
|
2549
|
remark, _ := dataBody["remark"].(string)
|
|
@@ -2677,7 +2676,7 @@ func (c *DialysisApiController) CreateRemindDoctorAdvice() {
|
2677
|
2676
|
advice.TemplateId = template_id
|
2678
|
2677
|
}
|
2679
|
2678
|
|
2680
|
|
- if adviceNameM["child"] != nil && reflect.TypeOf(adviceNameM["child"]).String() == "string" {
|
|
2679
|
+ if adviceNameM["execution_frequency"] != nil && reflect.TypeOf(adviceNameM["execution_frequency"]).String() == "string" {
|
2681
|
2680
|
executionFrequency, _ := adviceNameM["execution_frequency"].(string)
|
2682
|
2681
|
advice.ExecutionFrequency = executionFrequency
|
2683
|
2682
|
}
|