Browse Source

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

csx 3 years ago
parent
commit
5ad7aab5dc
2 changed files with 6 additions and 5 deletions
  1. 1 0
      controllers/sg/his_api_controller.go
  2. 5 5
      main.go

+ 1 - 0
controllers/sg/his_api_controller.go View File

3738
 			data["url"] = miConfig.Url
3738
 			data["url"] = miConfig.Url
3739
 			data["ak"] = miConfig.ChannelNumber
3739
 			data["ak"] = miConfig.ChannelNumber
3740
 			data["new_doctor_name"] = patientPrescription.Doctor
3740
 			data["new_doctor_name"] = patientPrescription.Doctor
3741
+			data["diag_code"] = sickConfig.CountryCode
3741
 
3742
 
3742
 			var ids []int64
3743
 			var ids []int64
3743
 
3744
 

+ 5 - 5
main.go View File

15
 )
15
 )
16
 
16
 
17
 func init() {
17
 func init() {
18
-	//service.ConnectDB()
19
-	//org_id, _ := beego.AppConfig.Int64("org_id")
20
-	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
21
-	//CreateLog(miConfig)
22
-	//UploadLog(miConfig)
18
+	service.ConnectDB()
19
+	org_id, _ := beego.AppConfig.Int64("org_id")
20
+	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
21
+	CreateLog(miConfig)
22
+	UploadLog(miConfig)
23
 
23
 
24
 }
24
 }
25
 func main() {
25
 func main() {