Selaa lähdekoodia

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

csx 3 vuotta sitten
vanhempi
commit
01464bc7f6
3 muutettua tiedostoa jossa 144 lisäystä ja 144 poistoa
  1. 2 2
      conf/app.conf
  2. 136 136
      controllers/sg/his_api_controller.go
  3. 6 6
      main.go

+ 2 - 2
conf/app.conf Näytä tiedosto

@@ -56,8 +56,8 @@ front_end_domain = "https://xt.kuyicloud.com/#"
56 56
 gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
57 57
 # gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
58 58
 #内蒙古
59
-gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60
-# gdyb_paasid = "sg03_prd"
59
+# gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60
+gdyb_paasid = "sg03_prd"
61 61
 # gdyb_paasid = "jm_sc_yjyy"
62 62
 # gdyb_paasid="zh_prd_yrojyy"
63 63
 #gdyb_paasid = "sz_prd_yjyy"

+ 136 - 136
controllers/sg/his_api_controller.go Näytä tiedosto

@@ -9138,142 +9138,142 @@ func (c *HisApiController) ComfirmAllopatry() {
9138 9138
 //
9139 9139
 //}
9140 9140
 
9141
-//func (c *HisApiController) ReversalOtherData() {
9142
-//	var customData []*CustomData
9143
-//
9144
-//	custom := &CustomData{
9145
-//		MsgId: "H44022900158202103301714472004",
9146
-//		PsnNo: "44020000001101329945",
9147
-//		Info:  "2208",
9148
-//	}
9149
-//	customData = append(customData, custom)
9150
-//
9151
-//	custom1 := &CustomData{
9152
-//		MsgId: "H4402290015820210330172057803",
9153
-//		PsnNo: "44020000001101161813",
9154
-//		Info:  "2208",
9155
-//	}
9156
-//	customData = append(customData, custom1)
9157
-//	custom2 := &CustomData{
9158
-//		MsgId: "H44022900158202103301705198813",
9159
-//		PsnNo: "44190000133097375417",
9160
-//		Info:  "2208",
9161
-//	}
9162
-//	customData = append(customData, custom2)
9163
-//	custom3 := &CustomData{
9164
-//		MsgId: "H44022900158202103301715524756",
9165
-//		PsnNo: "44020000001100187221",
9166
-//		Info:  "2208",
9167
-//	}
9168
-//	customData = append(customData, custom3)
9169
-//	custom4 := &CustomData{
9170
-//		MsgId: "H44022900158202103301730376224",
9171
-//		PsnNo: "44020000001101959155",
9172
-//		Info:  "2208",
9173
-//	}
9174
-//	customData = append(customData, custom4)
9175
-//	custom5 := &CustomData{
9176
-//		MsgId: "H44022900158202103301748008725",
9177
-//		PsnNo: "44020000001104246641",
9178
-//		Info:  "2208",
9179
-//	}
9180
-//	customData = append(customData, custom5)
9181
-//	custom6 := &CustomData{
9182
-//		MsgId: "H44022900158202103301718096755",
9183
-//		PsnNo: "44020000001102211860",
9184
-//		Info:  "2208",
9185
-//	}
9186
-//	customData = append(customData, custom6)
9187
-//	custom7 := &CustomData{
9188
-//		MsgId: "H44022900158202103301736551640",
9189
-//		PsnNo: "44020000001102687718",
9190
-//		Info:  "2208",
9191
-//	}
9192
-//
9193
-//	customData = append(customData, custom7)
9194
-//
9195
-//	custom8 := &CustomData{
9196
-//		MsgId: "H44022900158202103301743097676",
9197
-//		PsnNo: "44020000001102127785",
9198
-//		Info:  "2208",
9199
-//	}
9200
-//	customData = append(customData, custom8)
9201
-//	custom9 := &CustomData{
9202
-//		MsgId: "H44022900158202103301712304203",
9203
-//		PsnNo: "44020000001101518097",
9204
-//		Info:  "2208",
9205
-//	}
9206
-//	customData = append(customData, custom9)
9207
-//	custom10 := &CustomData{
9208
-//		MsgId: "H44022900158202103301738448785",
9209
-//		PsnNo: "44020000001100500813",
9210
-//		Info:  "2208",
9211
-//	}
9212
-//	customData = append(customData, custom10)
9213
-//
9214
-//	custom11 := &CustomData{
9215
-//		MsgId: "H44022900158202103301732455843",
9216
-//		PsnNo: "44020000001102690557",
9217
-//		Info:  "2208",
9218
-//	}
9219
-//
9220
-//	customData = append(customData, custom11)
9221
-//
9222
-//	custom12 := &CustomData{
9223
-//		MsgId: "H44022900158202103301745421708",
9224
-//		PsnNo: "44020000001102211928",
9225
-//		Info:  "2208",
9226
-//	}
9227
-//	customData = append(customData, custom12)
9228
-//
9229
-//	custom1212 := &CustomData{
9230
-//		MsgId: "H440229001582021033017351627",
9231
-//		PsnNo: "44020000001102481733",
9232
-//		Info:  "2208",
9233
-//	}
9234
-//	customData = append(customData, custom1212)
9235
-//
9236
-//	custom13 := &CustomData{
9237
-//		MsgId: "H44022900158202103301740327951",
9238
-//		PsnNo: "44020000001103174866",
9239
-//		Info:  "2208",
9240
-//	}
9241
-//	customData = append(customData, custom13)
9242
-//	custom14 := &CustomData{
9243
-//		MsgId: "H4402290015820210330174922668",
9244
-//		PsnNo: "44020000001102927272",
9245
-//		Info:  "2208",
9246
-//	}
9247
-//	customData = append(customData, custom14)
9248
-//	custom15 := &CustomData{
9249
-//		MsgId: "H44022900158202103301752362273",
9250
-//		PsnNo: "44020000001102942890",
9251
-//		Info:  "2208",
9252
-//	}
9253
-//	customData = append(customData, custom15)
9254
-//
9255
-//	custom16 := &CustomData{
9256
-//		MsgId: "H44022900158202103301751082917",
9257
-//		PsnNo: "44020000001101662162",
9258
-//		Info:  "2208",
9259
-//	}
9260
-//	customData = append(customData, custom16)
9261
-//
9262
-//	custom17 := &CustomData{
9263
-//		MsgId: "H44022900158202103301754147728",
9264
-//		PsnNo: "44020000000229014511",
9265
-//		Info:  "2208",
9266
-//	}
9267
-//	customData = append(customData, custom17)
9268
-//
9269
-//	adminUser := c.GetAdminUserInfo()
9270
-//	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
9271
-//
9272
-//	for _, item := range customData {
9273
-//		result := service.Gdyb2601(item.PsnNo, item.MsgId, item.Info, miConfig.OrgName, "张俊杰", miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey)
9274
-//		fmt.Println(result)
9275
-//	}
9276
-//}
9141
+func (c *HisApiController) ReversalOtherData() {
9142
+	var customData []*CustomData
9143
+
9144
+	custom := &CustomData{
9145
+		MsgId: "H44022900158202103301714472004",
9146
+		PsnNo: "44020000001101329945",
9147
+		Info:  "2208",
9148
+	}
9149
+	customData = append(customData, custom)
9150
+
9151
+	custom1 := &CustomData{
9152
+		MsgId: "H4402290015820210330172057803",
9153
+		PsnNo: "44020000001101161813",
9154
+		Info:  "2208",
9155
+	}
9156
+	customData = append(customData, custom1)
9157
+	custom2 := &CustomData{
9158
+		MsgId: "H44022900158202103301705198813",
9159
+		PsnNo: "44190000133097375417",
9160
+		Info:  "2208",
9161
+	}
9162
+	customData = append(customData, custom2)
9163
+	custom3 := &CustomData{
9164
+		MsgId: "H44022900158202103301715524756",
9165
+		PsnNo: "44020000001100187221",
9166
+		Info:  "2208",
9167
+	}
9168
+	customData = append(customData, custom3)
9169
+	custom4 := &CustomData{
9170
+		MsgId: "H44022900158202103301730376224",
9171
+		PsnNo: "44020000001101959155",
9172
+		Info:  "2208",
9173
+	}
9174
+	customData = append(customData, custom4)
9175
+	custom5 := &CustomData{
9176
+		MsgId: "H44022900158202103301748008725",
9177
+		PsnNo: "44020000001104246641",
9178
+		Info:  "2208",
9179
+	}
9180
+	customData = append(customData, custom5)
9181
+	custom6 := &CustomData{
9182
+		MsgId: "H44022900158202103301718096755",
9183
+		PsnNo: "44020000001102211860",
9184
+		Info:  "2208",
9185
+	}
9186
+	customData = append(customData, custom6)
9187
+	custom7 := &CustomData{
9188
+		MsgId: "H44022900158202103301736551640",
9189
+		PsnNo: "44020000001102687718",
9190
+		Info:  "2208",
9191
+	}
9192
+
9193
+	customData = append(customData, custom7)
9194
+
9195
+	custom8 := &CustomData{
9196
+		MsgId: "H44022900158202103301743097676",
9197
+		PsnNo: "44020000001102127785",
9198
+		Info:  "2208",
9199
+	}
9200
+	customData = append(customData, custom8)
9201
+	custom9 := &CustomData{
9202
+		MsgId: "H44022900158202103301712304203",
9203
+		PsnNo: "44020000001101518097",
9204
+		Info:  "2208",
9205
+	}
9206
+	customData = append(customData, custom9)
9207
+	custom10 := &CustomData{
9208
+		MsgId: "H44022900158202103301738448785",
9209
+		PsnNo: "44020000001100500813",
9210
+		Info:  "2208",
9211
+	}
9212
+	customData = append(customData, custom10)
9213
+
9214
+	custom11 := &CustomData{
9215
+		MsgId: "H44022900158202103301732455843",
9216
+		PsnNo: "44020000001102690557",
9217
+		Info:  "2208",
9218
+	}
9219
+
9220
+	customData = append(customData, custom11)
9221
+
9222
+	custom12 := &CustomData{
9223
+		MsgId: "H44022900158202103301745421708",
9224
+		PsnNo: "44020000001102211928",
9225
+		Info:  "2208",
9226
+	}
9227
+	customData = append(customData, custom12)
9228
+
9229
+	custom1212 := &CustomData{
9230
+		MsgId: "H440229001582021033017351627",
9231
+		PsnNo: "44020000001102481733",
9232
+		Info:  "2208",
9233
+	}
9234
+	customData = append(customData, custom1212)
9235
+
9236
+	custom13 := &CustomData{
9237
+		MsgId: "H44022900158202103301740327951",
9238
+		PsnNo: "44020000001103174866",
9239
+		Info:  "2208",
9240
+	}
9241
+	customData = append(customData, custom13)
9242
+	custom14 := &CustomData{
9243
+		MsgId: "H4402290015820210330174922668",
9244
+		PsnNo: "44020000001102927272",
9245
+		Info:  "2208",
9246
+	}
9247
+	customData = append(customData, custom14)
9248
+	custom15 := &CustomData{
9249
+		MsgId: "H44022900158202103301752362273",
9250
+		PsnNo: "44020000001102942890",
9251
+		Info:  "2208",
9252
+	}
9253
+	customData = append(customData, custom15)
9254
+
9255
+	custom16 := &CustomData{
9256
+		MsgId: "H44022900158202103301751082917",
9257
+		PsnNo: "44020000001101662162",
9258
+		Info:  "2208",
9259
+	}
9260
+	customData = append(customData, custom16)
9261
+
9262
+	custom17 := &CustomData{
9263
+		MsgId: "H44022900158202103301754147728",
9264
+		PsnNo: "44020000000229014511",
9265
+		Info:  "2208",
9266
+	}
9267
+	customData = append(customData, custom17)
9268
+
9269
+	adminUser := c.GetAdminUserInfo()
9270
+	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
9271
+
9272
+	for _, item := range customData {
9273
+		result := service.Gdyb2601(item.PsnNo, item.MsgId, item.Info, miConfig.OrgName, "张俊杰", miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey)
9274
+		fmt.Println(result)
9275
+	}
9276
+}
9277 9277
 
9278 9278
 func PathExists(path string) (bool, error) {
9279 9279
 	_, err := os.Stat(path)

+ 6 - 6
main.go Näytä tiedosto

@@ -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,11 +15,11 @@ import (
15 15
 )
16 16
 
17 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 25
 func main() {