|
@@ -1323,7 +1323,7 @@ func (c *PatientApiController) CreateGroupAdvice() {
|
1323
|
1323
|
return
|
1324
|
1324
|
}
|
1325
|
1325
|
adviceName, _ := adviceNameM["advice_name"].(string)
|
1326
|
|
- fmt.Println("adviceceNMAE--------------------------------", adviceName)
|
|
1326
|
+
|
1327
|
1327
|
if len(adviceName) == 0 {
|
1328
|
1328
|
utils.ErrorLog("len(advice_name) == 0")
|
1329
|
1329
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
@@ -1418,9 +1418,22 @@ func (c *PatientApiController) CreateGroupAdvice() {
|
1418
|
1418
|
}
|
1419
|
1419
|
|
1420
|
1420
|
remark, _ := adviceNameM["remark"].(string)
|
1421
|
|
- fmt.Println("哦哦撒搜哦搜搜哦remark-----------------------------------", remark)
|
|
1421
|
+
|
1422
|
1422
|
advice.Remark = remark
|
1423
|
1423
|
|
|
1424
|
+ if adminUserInfo.CurrentOrgId == 3877 || adminUserInfo.CurrentOrgId == 10340 || adminUserInfo.CurrentOrgId == 9671 {
|
|
1425
|
+ if advice.PrescribingNumber == 0 {
|
|
1426
|
+ advice.PrescribingNumber = 1
|
|
1427
|
+ }
|
|
1428
|
+ //查询该患者今日有没有双人核对
|
|
1429
|
+ check, _ := service.MobileGetDoubleCheckSix(adminUserInfo.CurrentOrgId, patientInfo.ID, advice.AdviceDate)
|
|
1430
|
+ fmt.Println("chek", check)
|
|
1431
|
+ if check.ID > 0 {
|
|
1432
|
+ advice.Checker = check.Modifier
|
|
1433
|
+ advice.CheckState = 1
|
|
1434
|
+ advice.CheckTime = time.Now().Unix()
|
|
1435
|
+ }
|
|
1436
|
+ }
|
1424
|
1437
|
if adviceType == 1 {
|
1425
|
1438
|
|
1426
|
1439
|
if adviceNameM["frequency_type"] != nil || reflect.TypeOf(adviceNameM["frequency_type"]).String() == "float64" {
|
|
@@ -1448,6 +1461,7 @@ func (c *PatientApiController) CreateGroupAdvice() {
|
1448
|
1461
|
}
|
1449
|
1462
|
advice.PushStartTime = startTime
|
1450
|
1463
|
}
|
|
1464
|
+
|
1451
|
1465
|
}
|
1452
|
1466
|
|
1453
|
1467
|
if adviceNameM["children"] != nil && reflect.TypeOf(adviceNameM["children"]).String() == "string" {
|