|
@@ -1265,7 +1265,8 @@ func (c *PatientApiController) ModifyExecDoctorAdvice() {
|
1265
|
1265
|
execution_time := c.GetString("execution_time")
|
1266
|
1266
|
fmt.Println("execution_time", execution_time)
|
1267
|
1267
|
groupno, _ := c.GetInt64("groupno", -1)
|
1268
|
|
-
|
|
1268
|
+ //patient_id, _ := c.GetInt64("patient_id")
|
|
1269
|
+ advice_date, _ := c.GetInt64("advice_date")
|
1269
|
1270
|
var ids []string
|
1270
|
1271
|
if groupno == 0 {
|
1271
|
1272
|
advice_ids := c.GetString("advice_id")
|
|
@@ -1339,7 +1340,7 @@ func (c *PatientApiController) ModifyExecDoctorAdvice() {
|
1339
|
1340
|
err = service.ModifyExceDoctorAdviceByGroupNo(&advices, groupno, adminUserInfo.Org.Id)
|
1340
|
1341
|
redis := service.RedisClient()
|
1341
|
1342
|
key := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(advice.PatientId, 10) + ":" + strconv.FormatInt(advice.AdviceDate, 10) + ":doctor_advices"
|
1342
|
|
- fmt.Println("keyThh322323232323232323223", key)
|
|
1343
|
+
|
1343
|
1344
|
redis.Set(key, "", time.Second)
|
1344
|
1345
|
keyOne := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(advice.AdviceDate, 10) + ":advice_list_all"
|
1345
|
1346
|
redis.Set(keyOne, "", time.Second)
|
|
@@ -1348,12 +1349,13 @@ func (c *PatientApiController) ModifyExecDoctorAdvice() {
|
1348
|
1349
|
|
1349
|
1350
|
} else {
|
1350
|
1351
|
err = service.BatchModifyExceOldDoctorAdvice(&advices, ids)
|
1351
|
|
- err = service.ModifyExceDoctorAdviceByGroupNo(&advices, groupno, adminUserInfo.Org.Id)
|
|
1352
|
+
|
|
1353
|
+ err = service.ModifyExceDoctorAdviceByGroupNoOne(&advices, ids)
|
1352
|
1354
|
redis := service.RedisClient()
|
1353
|
1355
|
key := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(advice.PatientId, 10) + ":" + strconv.FormatInt(advice.AdviceDate, 10) + ":doctor_advices"
|
1354
|
|
- fmt.Println("keyTwohh322323232323232323223", key)
|
|
1356
|
+
|
1355
|
1357
|
redis.Set(key, "", time.Second)
|
1356
|
|
- keyOne := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(advice.AdviceDate, 10) + ":advice_list_all"
|
|
1358
|
+ keyOne := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(advice_date, 10) + ":advice_list_all"
|
1357
|
1359
|
redis.Set(keyOne, "", time.Second)
|
1358
|
1360
|
|
1359
|
1361
|
defer redis.Close()
|
|
@@ -1367,7 +1369,6 @@ func (c *PatientApiController) ModifyExecDoctorAdvice() {
|
1367
|
1369
|
ExecutionTime: theTime.Unix(),
|
1368
|
1370
|
UpdatedTime: time.Now().Unix(),
|
1369
|
1371
|
}
|
1370
|
|
- fmt.Println("ids2323232232323", ids)
|
1371
|
1372
|
var advicehis models.HisDoctorAdviceInfo
|
1372
|
1373
|
service.ModifyExceDoctorAdviceById(&advicesinfo, ids)
|
1373
|
1374
|
his_advices, _ := service.FindHisDoctorAdviceByIdOne(adminUserInfo.Org.Id, ids)
|