Bladeren bron

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

csx 3 jaren geleden
bovenliggende
commit
d3a39dab21
4 gewijzigde bestanden met toevoegingen van 272 en 117 verwijderingen
  1. 3 3
      conf/app.conf
  2. 35 0
      controllers/hb/hbyb_controller.go
  3. 138 57
      controllers/sg/his_api_controller.go
  4. 96 57
      service/hbyb_service.go

+ 3 - 3
conf/app.conf Bestand weergeven

@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 9919
48
+org_id = 10215
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com
@@ -57,11 +57,11 @@ 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 59
 # gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60
-gdyb_paasid = "sg03_prd"
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"
64
-#gdyb_paasid = "zq_prd_yjyy"
64
+gdyb_paasid = "zq_prd_yjyy"
65 65
 
66 66
 
67 67
 

+ 35 - 0
controllers/hb/hbyb_controller.go Bestand weergeven

@@ -26,6 +26,41 @@ func HbybRegistRouters() {
26 26
 	beego.Router("/hbyb/2207", &HBybController{}, "get:PostEight")
27 27
 	beego.Router("/hbyb/2208", &HBybController{}, "get:PostNine")
28 28
 	beego.Router("/hbyb/5203", &HBybController{}, "get:PostTen")
29
+	beego.Router("/hbyb/2001", &HBybController{}, "get:Post2001")
30
+
31
+}
32
+func (c *HBybController) Post2001() {
33
+	org_name := c.GetString("org_name")
34
+	doctor := c.GetString("doctor")
35
+	fixmedins_code := c.GetString("fixmedins_code")
36
+	insuplc_admdvs := c.GetString("insuplc_admdvs")
37
+	mdtrtarea_admvs := c.GetString("mdtrtarea_admvs")
38
+	secret_key := c.GetString("secret_key")
39
+	psn_no := c.GetString("psn_no")
40
+	insutype := c.GetString("insutype")
41
+	med_type := c.GetString("med_type")
42
+	result, inputLog := service.Hbyb2001(secret_key, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, psn_no, insutype, med_type)
43
+	fmt.Println(result)
44
+	fmt.Println(inputLog)
45
+
46
+	var dat map[string]interface{}
47
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
48
+
49
+	} else {
50
+
51
+	}
52
+
53
+	var dat2 map[string]interface{}
54
+	if err := json.Unmarshal([]byte(inputLog), &dat2); err == nil {
55
+
56
+	} else {
57
+
58
+	}
59
+
60
+	c.ServeSuccessJSON(map[string]interface{}{
61
+		"pre": dat,
62
+		"log": dat2,
63
+	})
29 64
 }
30 65
 
31 66
 func (c *HBybController) PostOne() {

+ 138 - 57
controllers/sg/his_api_controller.go Bestand weergeven

@@ -7145,95 +7145,176 @@ func (c *HisApiController) CheckTreatment() {
7145 7145
 	config, _ := service.GetMedicalInsuranceConfig(adminUser.CurrentOrgId)
7146 7146
 	roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
7147 7147
 
7148
-	result := service.Gdyb1101A(id_card_no, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, patient.Name)
7149
-	var dat map[string]interface{}
7150
-	if err := json.Unmarshal([]byte(result), &dat); err == nil {
7151
-		fmt.Println(dat)
7152
-	} else {
7153
-		fmt.Println(err)
7154
-	}
7155
-	userJSONBytes, _ := json.Marshal(dat)
7156
-	var res ResultTwo
7157
-	var res10265 ResultTwo10265
7158
-	if miConfig.Code == "H15049901371" {
7159
-		if err := json.Unmarshal(userJSONBytes, &res10265); err != nil {
7160
-			utils.ErrorLog("解析失败:%v", err)
7148
+	if miConfig.MdtrtareaAdmvs == "421300" {
7149
+		var res ResultTwo
7150
+		api := "http://192.168.124.4:9532/" + "hbyb/1101?cert_no=" + "" +
7151
+			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
7152
+			"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(2, 10) + "&card_sn=" + "" + "&certificates=" + strconv.FormatInt(2, 10)
7153
+		resp, requestErr := http.Get(api)
7154
+		if requestErr != nil {
7161 7155
 			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7162 7156
 			return
7163 7157
 		}
7164
-		res.ErrMsg = res10265.ErrMsg
7165
-		infocode, _ := strconv.ParseInt(res10265.Infcode, 10, 64)
7166
-		res.Infcode = infocode
7167
-		res.Output = res10265.Output
7168
-		res.InfRefmsgid = res10265.InfRefmsgid
7169
-	} else {
7170
-		if err := json.Unmarshal(userJSONBytes, &res); err != nil {
7158
+
7159
+		body, ioErr := ioutil.ReadAll(resp.Body)
7160
+		if ioErr != nil {
7161
+			utils.ErrorLog("接口返回数据读取失败: %v", ioErr)
7162
+			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7163
+			return
7164
+		}
7165
+		var respJSON map[string]interface{}
7166
+		if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
7167
+			utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
7168
+			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7169
+			return
7170
+		}
7171
+
7172
+		respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
7173
+		result, _ := json.Marshal(respJSON)
7174
+
7175
+		if err := json.Unmarshal([]byte(result), &res); err != nil {
7171 7176
 			utils.ErrorLog("解析失败:%v", err)
7172 7177
 			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7173 7178
 			return
7174 7179
 		}
7175
-	}
7176 7180
 
7177
-	var user_name string
7178
-	role, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, adminUser.AdminUser.Id)
7179
-	if role.ID == 0 {
7180
-		user_name = "xxx"
7181
-	} else {
7182
-		user_name = role.UserName
7183
-	}
7181
+		if res.Infcode == 0 {
7184 7182
 
7185
-	baseParams := models.BaseParams{
7186
-		SecretKey:      miConfig.SecretKey,
7187
-		FixmedinsCode:  miConfig.Code,
7188
-		InsuplcAdmdvs:  miConfig.InsuplcAdmdvs,
7189
-		MdtrtareaAdmvs: miConfig.MdtrtareaAdmvs,
7190
-		OrgName:        miConfig.OrgName,
7191
-		Doctor:         user_name,
7192
-	}
7183
+			api := "http://192.168.124.4:9532/" + "hbyb/2001?cert_no=" + "" +
7184
+				"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
7185
+				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&psn_no=" + res.Output.Baseinfo.PsnNo + "&insutype=" + insutype + "&med_type=" + med_type
7186
+			resp, requestErr := http.Get(api)
7187
+			if requestErr != nil {
7188
+				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7189
+				return
7190
+			}
7193 7191
 
7194
-	if config.IsOpen == 1 {
7195
-		if miConfig.Code == "H15049901371" {
7196
-			if med_type == "14" {
7197
-				if insutype == "390" {
7198
-					med_type = "9933"
7199
-				} else if insutype == "310" {
7200
-					med_type = "990502"
7201
-				}
7202
-			} else if med_type == "11" {
7203
-				med_type = "11"
7192
+			body, ioErr := ioutil.ReadAll(resp.Body)
7193
+			if ioErr != nil {
7194
+				utils.ErrorLog("接口返回数据读取失败: %v", ioErr)
7195
+				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7196
+				return
7197
+			}
7198
+			var respJSON map[string]interface{}
7199
+			if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
7200
+				utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
7201
+				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7202
+				return
7203
+			}
7204
+			var res Result2001
7205
+
7206
+			respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
7207
+			result2, _ := json.Marshal(respJSON)
7208
+
7209
+			if err := json.Unmarshal([]byte(result2), &res); err != nil {
7210
+				utils.ErrorLog("解析失败:%v", err)
7211
+				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7212
+				return
7213
+			}
7214
+
7215
+			if res.Infcode == 0 {
7216
+				c.ServeSuccessJSON(map[string]interface{}{
7217
+					"msg": res.Output.Trtinfo,
7218
+				})
7204 7219
 			}
7220
+
7221
+		} else {
7222
+			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeHisFailedException)
7223
+			return
7205 7224
 		}
7206
-		result := service.Gdyb2001(baseParams, res.Output.Baseinfo.PsnNo, insutype, med_type)
7225
+
7226
+	} else {
7227
+
7228
+		result := service.Gdyb1101A(id_card_no, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, patient.Name)
7207 7229
 		var dat map[string]interface{}
7208 7230
 		if err := json.Unmarshal([]byte(result), &dat); err == nil {
7209 7231
 			fmt.Println(dat)
7210 7232
 		} else {
7211 7233
 			fmt.Println(err)
7212 7234
 		}
7213
-		var res Result2001
7214
-		var res10265 Result2001Org10265
7235
+		userJSONBytes, _ := json.Marshal(dat)
7236
+		var res ResultTwo
7237
+		var res10265 ResultTwo10265
7215 7238
 		if miConfig.Code == "H15049901371" {
7216
-			if err := json.Unmarshal([]byte(result), &res10265); err != nil {
7239
+			if err := json.Unmarshal(userJSONBytes, &res10265); err != nil {
7217 7240
 				utils.ErrorLog("解析失败:%v", err)
7218 7241
 				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7219 7242
 				return
7220 7243
 			}
7221 7244
 			res.ErrMsg = res10265.ErrMsg
7222
-			res.Output = res10265.Output
7223
-			res.InfRefmsgid = res10265.InfRefmsgid
7224 7245
 			infocode, _ := strconv.ParseInt(res10265.Infcode, 10, 64)
7225 7246
 			res.Infcode = infocode
7247
+			res.Output = res10265.Output
7248
+			res.InfRefmsgid = res10265.InfRefmsgid
7226 7249
 		} else {
7227
-			if err := json.Unmarshal([]byte(result), &res); err != nil {
7250
+			if err := json.Unmarshal(userJSONBytes, &res); err != nil {
7228 7251
 				utils.ErrorLog("解析失败:%v", err)
7229 7252
 				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7230 7253
 				return
7231 7254
 			}
7232 7255
 		}
7233
-		if res.Infcode == 0 {
7234
-			c.ServeSuccessJSON(map[string]interface{}{
7235
-				"msg": res.Output.Trtinfo,
7236
-			})
7256
+
7257
+		var user_name string
7258
+		role, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, adminUser.AdminUser.Id)
7259
+		if role.ID == 0 {
7260
+			user_name = "xxx"
7261
+		} else {
7262
+			user_name = role.UserName
7263
+		}
7264
+
7265
+		baseParams := models.BaseParams{
7266
+			SecretKey:      miConfig.SecretKey,
7267
+			FixmedinsCode:  miConfig.Code,
7268
+			InsuplcAdmdvs:  miConfig.InsuplcAdmdvs,
7269
+			MdtrtareaAdmvs: miConfig.MdtrtareaAdmvs,
7270
+			OrgName:        miConfig.OrgName,
7271
+			Doctor:         user_name,
7272
+		}
7273
+
7274
+		if config.IsOpen == 1 {
7275
+			if miConfig.Code == "H15049901371" {
7276
+				if med_type == "14" {
7277
+					if insutype == "390" {
7278
+						med_type = "9933"
7279
+					} else if insutype == "310" {
7280
+						med_type = "990502"
7281
+					}
7282
+				} else if med_type == "11" {
7283
+					med_type = "11"
7284
+				}
7285
+			}
7286
+			result := service.Gdyb2001(baseParams, res.Output.Baseinfo.PsnNo, insutype, med_type)
7287
+			var dat map[string]interface{}
7288
+			if err := json.Unmarshal([]byte(result), &dat); err == nil {
7289
+				fmt.Println(dat)
7290
+			} else {
7291
+				fmt.Println(err)
7292
+			}
7293
+			var res Result2001
7294
+			var res10265 Result2001Org10265
7295
+			if miConfig.Code == "H15049901371" {
7296
+				if err := json.Unmarshal([]byte(result), &res10265); err != nil {
7297
+					utils.ErrorLog("解析失败:%v", err)
7298
+					c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7299
+					return
7300
+				}
7301
+				res.ErrMsg = res10265.ErrMsg
7302
+				res.Output = res10265.Output
7303
+				res.InfRefmsgid = res10265.InfRefmsgid
7304
+				infocode, _ := strconv.ParseInt(res10265.Infcode, 10, 64)
7305
+				res.Infcode = infocode
7306
+			} else {
7307
+				if err := json.Unmarshal([]byte(result), &res); err != nil {
7308
+					utils.ErrorLog("解析失败:%v", err)
7309
+					c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7310
+					return
7311
+				}
7312
+			}
7313
+			if res.Infcode == 0 {
7314
+				c.ServeSuccessJSON(map[string]interface{}{
7315
+					"msg": res.Output.Trtinfo,
7316
+				})
7317
+			}
7237 7318
 		}
7238 7319
 	}
7239 7320
 }

+ 96 - 57
service/hbyb_service.go Bestand weergeven

@@ -1056,63 +1056,63 @@ func Hbyb3202(baseParams models.BaseParams, businessParams models.BusinessParams
1056 1056
 	return str
1057 1057
 }
1058 1058
 
1059
-func Hbyb2001(baseParams models.BaseParams, psn_no string, insutype string, med_type string) string {
1060
-	// 生成签名
1061
-	nonce := GetRandomString(32)
1062
-	timestamp := time.Now().Unix()
1063
-	signature := setSignature(timestamp, nonce, baseParams.SecretKey)
1064
-
1065
-	// 生成输入报文
1066
-	inputMessage := SetInputMessage(nonce, timestamp, baseParams.OrgName, baseParams.Doctor, baseParams.FixmedinsCode, baseParams.InsuplcAdmdvs, baseParams.MdtrtareaAdmvs)
1067
-	input := make(map[string]interface{})
1068
-	inputData := make(map[string]interface{})
1069
-	inputMessage["infno"] = "2001" // 交易编码
1070
-	inputData["psn_no"] = psn_no
1071
-	inputData["insutype"] = insutype
1072
-	inputData["med_type"] = med_type
1073
-	inputData["begntime"] = "2021-01-01 00:00:00"
1074
-	input["data"] = inputData
1075
-	inputMessage["input"] = input //交易输入
1076
-	bytesData, err := json.Marshal(inputMessage)
1077
-	fmt.Println(string(bytesData))
1078
-	if err != nil {
1079
-		fmt.Println(err.Error())
1080
-		return err.Error()
1081
-	}
1082
-	reader := bytes.NewReader(bytesData)
1083
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3301"
1084
-
1085
-	gdyb_url := beego.AppConfig.String("gdyb_url")
1086
-	gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
1087
-
1088
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/1101"
1089
-	url := gdyb_url + "2001"
1090
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3301"
1091
-	request, err := http.NewRequest("POST", url, reader)
1092
-	if err != nil {
1093
-		fmt.Println(err.Error())
1094
-		return err.Error()
1095
-	}
1096
-	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
1097
-	request.Header.Set("x-tif-paasid", gdyb_paasid)
1098
-	request.Header.Set("x-tif-signature", signature)
1099
-	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
1100
-	request.Header.Set("x-tif-nonce", nonce)
1101
-	client := http.Client{}
1102
-	resp, err := client.Do(request)
1103
-	if err != nil {
1104
-		fmt.Println(err.Error())
1105
-		return err.Error()
1106
-	}
1107
-	respBytes, err := ioutil.ReadAll(resp.Body)
1108
-	if err != nil {
1109
-		fmt.Println(err.Error())
1110
-		return err.Error()
1111
-	}
1112
-	str := string(respBytes)
1113
-	fmt.Println(str)
1114
-	return str
1115
-}
1059
+//func Hbyb2001(baseParams models.BaseParams, psn_no string, insutype string, med_type string) string {
1060
+//	// 生成签名
1061
+//	nonce := GetRandomString(32)
1062
+//	timestamp := time.Now().Unix()
1063
+//	signature := setSignature(timestamp, nonce, baseParams.SecretKey)
1064
+//
1065
+//	// 生成输入报文
1066
+//	inputMessage := SetInputMessage(nonce, timestamp, baseParams.OrgName, baseParams.Doctor, baseParams.FixmedinsCode, baseParams.InsuplcAdmdvs, baseParams.MdtrtareaAdmvs)
1067
+//	input := make(map[string]interface{})
1068
+//	inputData := make(map[string]interface{})
1069
+//	inputMessage["infno"] = "2001" // 交易编码
1070
+//	inputData["psn_no"] = psn_no
1071
+//	inputData["insutype"] = insutype
1072
+//	inputData["med_type"] = med_type
1073
+//	inputData["begntime"] = "2021-01-01 00:00:00"
1074
+//	input["data"] = inputData
1075
+//	inputMessage["input"] = input //交易输入
1076
+//	bytesData, err := json.Marshal(inputMessage)
1077
+//	fmt.Println(string(bytesData))
1078
+//	if err != nil {
1079
+//		fmt.Println(err.Error())
1080
+//		return err.Error()
1081
+//	}
1082
+//	reader := bytes.NewReader(bytesData)
1083
+//	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3301"
1084
+//
1085
+//	gdyb_url := beego.AppConfig.String("gdyb_url")
1086
+//	gdyb_paasid := beego.AppConfig.String("gdyb_paasid")
1087
+//
1088
+//	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/1101"
1089
+//	url := gdyb_url + "2001"
1090
+//	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3301"
1091
+//	request, err := http.NewRequest("POST", url, reader)
1092
+//	if err != nil {
1093
+//		fmt.Println(err.Error())
1094
+//		return err.Error()
1095
+//	}
1096
+//	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
1097
+//	request.Header.Set("x-tif-paasid", gdyb_paasid)
1098
+//	request.Header.Set("x-tif-signature", signature)
1099
+//	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
1100
+//	request.Header.Set("x-tif-nonce", nonce)
1101
+//	client := http.Client{}
1102
+//	resp, err := client.Do(request)
1103
+//	if err != nil {
1104
+//		fmt.Println(err.Error())
1105
+//		return err.Error()
1106
+//	}
1107
+//	respBytes, err := ioutil.ReadAll(resp.Body)
1108
+//	if err != nil {
1109
+//		fmt.Println(err.Error())
1110
+//		return err.Error()
1111
+//	}
1112
+//	str := string(respBytes)
1113
+//	fmt.Println(str)
1114
+//	return str
1115
+//}
1116 1116
 
1117 1117
 func Hbyb3301(baseParams *models.BaseParams, name string, codg string, list_type_code string, start_time string, ent_time string, list_type string) string {
1118 1118
 	// 生成签名
@@ -2263,3 +2263,42 @@ func Hbyb90100(psn_no string, org_name string, doctor string, fixmedins_code str
2263 2263
 //func StrPtr(s string) uintptr {
2264 2264
 //	return uintptr(unsafe.Pointer(syscall.StringBytePtr(s)))
2265 2265
 //}
2266
+
2267
+func Hbyb2001(secret_key string, org_name string, doctor_name string, code string, insuplcAdmdvs string, mdtrtareaAdmvs string, psn_no string, insutype string, med_type string) (string, string) {
2268
+	if med_type == "1111" || med_type == "1112" {
2269
+		med_type = "11"
2270
+	}
2271
+
2272
+	// 生成签名
2273
+	nonce := GetRandomString(32)
2274
+	timestamp := time.Now().Unix()
2275
+	//signature := setSignature(timestamp, nonce, secret_key)
2276
+	tempTime := time.Unix(timestamp, 0)
2277
+	timeFormatOne := tempTime.Format("2006-01-02 15:04:05")
2278
+
2279
+	// 生成输入报文
2280
+	inputMessage := SetInputMessage(nonce, timestamp, org_name, doctor_name, code, insuplcAdmdvs, mdtrtareaAdmvs)
2281
+	input := make(map[string]interface{})
2282
+	inputData := make(map[string]interface{})
2283
+	inputMessage["infno"] = "2001" // 交易编码
2284
+	inputData["psn_no"] = psn_no
2285
+	inputData["insutype"] = insutype
2286
+	inputData["med_type"] = med_type
2287
+	inputData["begntime"] = timeFormatOne
2288
+	input["data"] = inputData
2289
+	inputMessage["input"] = input //交易输入
2290
+	bytesData, err := json.Marshal(inputMessage)
2291
+	fmt.Println(string(bytesData))
2292
+	if err != nil {
2293
+		fmt.Println(err.Error())
2294
+		return err.Error(), ""
2295
+	}
2296
+	var json2 string
2297
+	cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1101", string(bytesData), json2)
2298
+	out, err := cmd.Output()
2299
+	if err != nil {
2300
+		fmt.Println("error:", err.Error())
2301
+	}
2302
+
2303
+	return string(out), string(bytesData)
2304
+}