|
@@ -1,19 +1,20 @@
|
1
|
1
|
package service
|
2
|
2
|
|
3
|
3
|
import (
|
4
|
|
- "XT_New/models"
|
5
|
|
- "XT_New/utils"
|
6
|
4
|
"encoding/json"
|
7
|
5
|
"fmt"
|
8
|
|
- "github.com/astaxie/beego/config"
|
9
|
|
- "github.com/astaxie/beego/context"
|
10
|
|
- "github.com/jinzhu/gorm"
|
11
|
|
- "golang.org/x/sync/errgroup"
|
12
|
6
|
"math"
|
13
|
7
|
"strconv"
|
14
|
8
|
"strings"
|
15
|
9
|
"sync"
|
16
|
10
|
"time"
|
|
11
|
+
|
|
12
|
+ "XT_New/models"
|
|
13
|
+ "XT_New/utils"
|
|
14
|
+ "github.com/astaxie/beego/config"
|
|
15
|
+ "github.com/astaxie/beego/context"
|
|
16
|
+ "github.com/jinzhu/gorm"
|
|
17
|
+ "golang.org/x/sync/errgroup"
|
17
|
18
|
)
|
18
|
19
|
|
19
|
20
|
func SaveErrs(org_id int64, input *context.BeegoInput, err error) {
|
|
@@ -897,7 +898,7 @@ func DispensingMedicineOne(orgid, patient_id, stime, etime, creater int64) (err
|
897
|
898
|
|
898
|
899
|
advice, err := GetDocAdviceList(orgid, patient_id, stime, etime)
|
899
|
900
|
//响水不走这里
|
900
|
|
- if orgid != 10188 {
|
|
901
|
+ if orgid != 10188 && orgid != 10480 && orgid != 10217 {
|
901
|
902
|
if len(advice) > 0 {
|
902
|
903
|
for _, item := range advice {
|
903
|
904
|
err = DrugsDelivery(item.UserOrgId, item.ExecutionStaff, item)
|
|
@@ -1024,7 +1025,7 @@ func DrugWithdrawal(orgid, patient_id, stime, etime, creater int64) (err error)
|
1024
|
1025
|
}
|
1025
|
1026
|
|
1026
|
1027
|
//针对阜阳经沃
|
1027
|
|
- if orgid != 10480 {
|
|
1028
|
+ if orgid != 104801 {
|
1028
|
1029
|
for _, v := range advice_info {
|
1029
|
1030
|
|
1030
|
1031
|
//扣减库存
|