28169 1 gadu atpakaļ
vecāks
revīzija
7b488fbca7
1 mainītis faili ar 9 papildinājumiem un 8 dzēšanām
  1. 9 8
      service/pharmacy_service.go

+ 9 - 8
service/pharmacy_service.go Parādīt failu

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