Преглед изворни кода

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx пре 2 година
родитељ
комит
45e38fe7bb
2 измењених фајлова са 23 додато и 8 уклоњено
  1. 16 1
      controllers/zh/zh_his_api_controller.go
  2. 7 7
      main.go

+ 16 - 1
controllers/zh/zh_his_api_controller.go Прегледај датотеку

@@ -1944,6 +1944,22 @@ func (c *ZHHisApiController) GetUploadInfo() {
1944 1944
 			var requestLog string
1945 1945
 			if miConfig.MdtrtareaAdmvs == "150499" {
1946 1946
 				data := make(map[string]interface{})
1947
+				if record.MedType == 14 {
1948
+					if record.InsutypeType == "390" {
1949
+
1950
+						data["med_type"] = "9933"
1951
+
1952
+					} else if record.InsutypeType == "310" {
1953
+
1954
+						data["med_type"] = "990502"
1955
+
1956
+					}
1957
+
1958
+				} else if record.MedType == 11 {
1959
+
1960
+					data["med_type"] = strconv.FormatInt(record.MedType, 10)
1961
+
1962
+				}
1947 1963
 				data["psn_no"] = record.PsnNo
1948 1964
 				data["number"] = record.Number
1949 1965
 				data["customs"] = customs[start-1 : stop]
@@ -1951,7 +1967,6 @@ func (c *ZHHisApiController) GetUploadInfo() {
1951 1967
 				data["dept"] = strconv.FormatInt(department.ID, 10)
1952 1968
 				data["dept_code"] = department.Number
1953 1969
 				data["doctor_code"] = strconv.FormatInt(doctor_info.ID, 10)
1954
-
1955 1970
 				data["doctor_name"] = doctor_info.UserName
1956 1971
 				data["org_name"] = miConfig.OrgName
1957 1972
 				data["opertor"] = roles.UserName

+ 7 - 7
main.go Прегледај датотеку

@@ -5,7 +5,7 @@ import (
5 5
 	"fmt"
6 6
 	"gdyb/models"
7 7
 	_ "gdyb/routers"
8
-	//"gdyb/service"
8
+	"gdyb/service"
9 9
 	"github.com/astaxie/beego"
10 10
 	"github.com/qiniu/api.v7/auth/qbox"
11 11
 	"github.com/qiniu/api.v7/storage"
@@ -15,12 +15,12 @@ import (
15 15
 )
16 16
 
17 17
 func init() {
18
-	//service.ConnectDB()
19
-	//org_id, _ := beego.AppConfig.Int64("org_id")
20
-	//
21
-	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
22
-	//CreateLog(miConfig)
23
-	//UploadLog(miConfig)
18
+	service.ConnectDB()
19
+	org_id, _ := beego.AppConfig.Int64("org_id")
20
+
21
+	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
22
+	CreateLog(miConfig)
23
+	UploadLog(miConfig)
24 24
 
25 25
 	//UploadSettleList(org_id)
26 26
 }