Pārlūkot izejas kodu

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

csx 2 gadus atpakaļ
vecāks
revīzija
45e38fe7bb
2 mainītis faili ar 23 papildinājumiem un 8 dzēšanām
  1. 16 1
      controllers/zh/zh_his_api_controller.go
  2. 7 7
      main.go

+ 16 - 1
controllers/zh/zh_his_api_controller.go Parādīt failu

1944
 			var requestLog string
1944
 			var requestLog string
1945
 			if miConfig.MdtrtareaAdmvs == "150499" {
1945
 			if miConfig.MdtrtareaAdmvs == "150499" {
1946
 				data := make(map[string]interface{})
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
 				data["psn_no"] = record.PsnNo
1963
 				data["psn_no"] = record.PsnNo
1948
 				data["number"] = record.Number
1964
 				data["number"] = record.Number
1949
 				data["customs"] = customs[start-1 : stop]
1965
 				data["customs"] = customs[start-1 : stop]
1951
 				data["dept"] = strconv.FormatInt(department.ID, 10)
1967
 				data["dept"] = strconv.FormatInt(department.ID, 10)
1952
 				data["dept_code"] = department.Number
1968
 				data["dept_code"] = department.Number
1953
 				data["doctor_code"] = strconv.FormatInt(doctor_info.ID, 10)
1969
 				data["doctor_code"] = strconv.FormatInt(doctor_info.ID, 10)
1954
-
1955
 				data["doctor_name"] = doctor_info.UserName
1970
 				data["doctor_name"] = doctor_info.UserName
1956
 				data["org_name"] = miConfig.OrgName
1971
 				data["org_name"] = miConfig.OrgName
1957
 				data["opertor"] = roles.UserName
1972
 				data["opertor"] = roles.UserName

+ 7 - 7
main.go Parādīt failu

5
 	"fmt"
5
 	"fmt"
6
 	"gdyb/models"
6
 	"gdyb/models"
7
 	_ "gdyb/routers"
7
 	_ "gdyb/routers"
8
-	//"gdyb/service"
8
+	"gdyb/service"
9
 	"github.com/astaxie/beego"
9
 	"github.com/astaxie/beego"
10
 	"github.com/qiniu/api.v7/auth/qbox"
10
 	"github.com/qiniu/api.v7/auth/qbox"
11
 	"github.com/qiniu/api.v7/storage"
11
 	"github.com/qiniu/api.v7/storage"
15
 )
15
 )
16
 
16
 
17
 func init() {
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
 	//UploadSettleList(org_id)
25
 	//UploadSettleList(org_id)
26
 }
26
 }