陈少旭 1 månad sedan
förälder
incheckning
e4dbf4f6cb

+ 216 - 38
controllers/js/jsyb_controller.go Visa fil

@@ -53,12 +53,10 @@ func JSybRegistRouters() {
53 53
 	beego.Router("/jsyb/4101", &JSybController{}, "post:Get4101")
54 54
 	beego.Router("/jsyb/readcard", &JSybController{}, "get:ReadCard")
55 55
 
56
-
57 56
 	beego.Router("/jsyb/readcardcharge", &JSybController{}, "get:Readcardcharge")
58 57
 	beego.Router("/jsyb/readcardchargeother", &JSybController{}, "get:Readcardchargeother")
59 58
 	beego.Router("/jsyb/readcardface", &JSybController{}, "get:Readcardface")
60 59
 
61
-
62 60
 	beego.Router("/jsyb/3260", &JSybController{}, "get:Get3260")
63 61
 	beego.Router("/jsyb/3261", &JSybController{}, "get:Get3261")
64 62
 	beego.Router("/jsyb/3262", &JSybController{}, "post:Get3262")
@@ -76,9 +74,6 @@ func JSybRegistRouters() {
76 74
 	beego.Router("/jsyb/3274", &JSybController{}, "post:Get3274")
77 75
 	beego.Router("/jsyb/3275", &JSybController{}, "post:Get3275")
78 76
 
79
-
80
-
81
-
82 77
 	beego.Router("/jsyb/3501", &JSybController{}, "post:Get3501")
83 78
 	beego.Router("/jsyb/3502", &JSybController{}, "post:Get3502")
84 79
 	beego.Router("/jsyb/3503", &JSybController{}, "post:Get3503")
@@ -86,19 +81,21 @@ func JSybRegistRouters() {
86 81
 	beego.Router("/jsyb/3505", &JSybController{}, "post:Get3505")
87 82
 	beego.Router("/jsyb/3506", &JSybController{}, "post:Get3506")
88 83
 	beego.Router("/jsyb/3507", &JSybController{}, "post:Get3507")
89
-
90
-
84
+	beego.Router("/jsyb/3508", &JSybController{}, "post:Get3508")
85
+	beego.Router("/jsyb/3509", &JSybController{}, "post:Get3509")
86
+	beego.Router("/jsyb/3510", &JSybController{}, "post:Get3510")
87
+	beego.Router("/jsyb/3511", &JSybController{}, "post:Get3511")
88
+	beego.Router("/jsyb/3512", &JSybController{}, "post:Get3512")
89
+	beego.Router("/jsyb/3513", &JSybController{}, "post:Get3513")
91 90
 
92 91
 	beego.Router("/jsyb/1318", &JSybController{}, "get:Get1318")
93 92
 
94
-
95
-
96 93
 	//beego.Router("/jsyb/3276", &JSybController{}, "post:Get3276")
97 94
 	//beego.Router("/jsyb/3277", &JSybController{}, "post:Get3277")
98 95
 
99 96
 }
100 97
 
101
-func (c *JSybController)Get1318(){
98
+func (c *JSybController) Get1318() {
102 99
 	org_name := c.GetString("org_name")
103 100
 	doctor := c.GetString("doctor")
104 101
 	fixmedins_code := c.GetString("fixmedins_code")
@@ -109,7 +106,7 @@ func (c *JSybController)Get1318(){
109 106
 	ak := c.GetString("ak")
110 107
 	h_code := c.GetString("h_code")
111 108
 	cainfo := c.GetString("cainfo")
112
-	result, request := service.Jsyb1318(h_code,org_name,doctor,fixmedins_code,insuplc_admdvs,mdtrtarea_admvs,secret_key,url,ak,cainfo)
109
+	result, request := service.Jsyb1318(h_code, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, url, ak, cainfo)
113 110
 	var dat2 map[string]interface{}
114 111
 	if err := json.Unmarshal([]byte(request), &dat2); err == nil {
115 112
 	} else {
@@ -1081,6 +1078,200 @@ func (c *JSybController) Get3507() {
1081 1078
 	})
1082 1079
 
1083 1080
 }
1081
+
1082
+func (c *JSybController) Get3508() {
1083
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
1084
+	var respJSON map[string]interface{}
1085
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
1086
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
1087
+		return
1088
+	}
1089
+
1090
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3508s"])
1091
+	var struct3508 models.Struct3508
1092
+	if err := json.Unmarshal(userJSONBytes, &struct3508); err != nil {
1093
+		utils.ErrorLog("解析失败:%v", err)
1094
+		return
1095
+	}
1096
+
1097
+	result, request_log := service.Jsyb3508(struct3508)
1098
+	saveJsLog(result, request_log, "3508", "库存查询", struct3508.OrgName)
1099
+	var dat2 map[string]interface{}
1100
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
1101
+	} else {
1102
+	}
1103
+	var dat map[string]interface{}
1104
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
1105
+	} else {
1106
+
1107
+	}
1108
+	c.ServeSuccessJSON(map[string]interface{}{
1109
+		"pre":         dat,
1110
+		"request_log": dat2,
1111
+	})
1112
+
1113
+}
1114
+func (c *JSybController) Get3509() {
1115
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
1116
+	var respJSON map[string]interface{}
1117
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
1118
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
1119
+		return
1120
+	}
1121
+
1122
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3509s"])
1123
+	var struct3509 models.Struct3509
1124
+	if err := json.Unmarshal(userJSONBytes, &struct3509); err != nil {
1125
+		utils.ErrorLog("解析失败:%v", err)
1126
+		return
1127
+	}
1128
+
1129
+	result, request_log := service.Jsyb3509(struct3509)
1130
+	saveJsLog(result, request_log, "3509", "库存查询", struct3509.OrgName)
1131
+	var dat2 map[string]interface{}
1132
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
1133
+	} else {
1134
+	}
1135
+	var dat map[string]interface{}
1136
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
1137
+	} else {
1138
+
1139
+	}
1140
+	c.ServeSuccessJSON(map[string]interface{}{
1141
+		"pre":         dat,
1142
+		"request_log": dat2,
1143
+	})
1144
+
1145
+}
1146
+func (c *JSybController) Get3510() {
1147
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
1148
+	var respJSON map[string]interface{}
1149
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
1150
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
1151
+		return
1152
+	}
1153
+
1154
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3510s"])
1155
+	var struct3510 models.Struct3510
1156
+	if err := json.Unmarshal(userJSONBytes, &struct3510); err != nil {
1157
+		utils.ErrorLog("解析失败:%v", err)
1158
+		return
1159
+	}
1160
+
1161
+	result, request_log := service.Jsyb3510(struct3510)
1162
+	saveJsLog(result, request_log, "3510", "库存盘点", struct3510.OrgName)
1163
+	var dat2 map[string]interface{}
1164
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
1165
+	} else {
1166
+	}
1167
+	var dat map[string]interface{}
1168
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
1169
+	} else {
1170
+
1171
+	}
1172
+	c.ServeSuccessJSON(map[string]interface{}{
1173
+		"pre":         dat,
1174
+		"request_log": dat2,
1175
+	})
1176
+
1177
+}
1178
+func (c *JSybController) Get3511() {
1179
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
1180
+	var respJSON map[string]interface{}
1181
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
1182
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
1183
+		return
1184
+	}
1185
+
1186
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3511s"])
1187
+	var struct3511 models.Struct3511
1188
+	if err := json.Unmarshal(userJSONBytes, &struct3511); err != nil {
1189
+		utils.ErrorLog("解析失败:%v", err)
1190
+		return
1191
+	}
1192
+
1193
+	result, request_log := service.Jsyb3511(struct3511)
1194
+	saveJsLog(result, request_log, "3511", "库存查询", struct3511.OrgName)
1195
+	var dat2 map[string]interface{}
1196
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
1197
+	} else {
1198
+	}
1199
+	var dat map[string]interface{}
1200
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
1201
+	} else {
1202
+
1203
+	}
1204
+	c.ServeSuccessJSON(map[string]interface{}{
1205
+		"pre":         dat,
1206
+		"request_log": dat2,
1207
+	})
1208
+
1209
+}
1210
+func (c *JSybController) Get3512() {
1211
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
1212
+	var respJSON map[string]interface{}
1213
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
1214
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
1215
+		return
1216
+	}
1217
+
1218
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3512s"])
1219
+	var struct3512 models.Struct3512
1220
+	if err := json.Unmarshal(userJSONBytes, &struct3512); err != nil {
1221
+		utils.ErrorLog("解析失败:%v", err)
1222
+		return
1223
+	}
1224
+
1225
+	result, request_log := service.Jsyb3512(struct3512)
1226
+	saveJsLog(result, request_log, "3512", "3512查询", struct3512.OrgName)
1227
+	var dat2 map[string]interface{}
1228
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
1229
+	} else {
1230
+	}
1231
+	var dat map[string]interface{}
1232
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
1233
+	} else {
1234
+
1235
+	}
1236
+	c.ServeSuccessJSON(map[string]interface{}{
1237
+		"pre":         dat,
1238
+		"request_log": dat2,
1239
+	})
1240
+
1241
+}
1242
+func (c *JSybController) Get3513() {
1243
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
1244
+	var respJSON map[string]interface{}
1245
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
1246
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
1247
+		return
1248
+	}
1249
+
1250
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3513s"])
1251
+	var struct3513 models.Struct3513
1252
+	if err := json.Unmarshal(userJSONBytes, &struct3513); err != nil {
1253
+		utils.ErrorLog("解析失败:%v", err)
1254
+		return
1255
+	}
1256
+
1257
+	result, request_log := service.Jsyb3513(struct3513)
1258
+	saveJsLog(result, request_log, "3513", "库存盘点", struct3513.OrgName)
1259
+	var dat2 map[string]interface{}
1260
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
1261
+	} else {
1262
+	}
1263
+	var dat map[string]interface{}
1264
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
1265
+	} else {
1266
+
1267
+	}
1268
+	c.ServeSuccessJSON(map[string]interface{}{
1269
+		"pre":         dat,
1270
+		"request_log": dat2,
1271
+	})
1272
+
1273
+}
1274
+
1084 1275
 func (c *JSybController) Get9001() {
1085 1276
 
1086 1277
 }
@@ -1091,8 +1282,8 @@ func (c *JSybController) PostOnec() {
1091 1282
 
1092 1283
 }
1093 1284
 func (c *JSybController) Posttwoc() {
1094
-	result, request_log := service.Jsyb2201F()
1095
-	saveJsLog(result, request_log, "2201", "挂号", "盐城响水悦达血液透析中心有限公司")
1285
+	//result, request_log := service.2201F()
1286
+	//saveJsLog(result, request_log, "2201", "挂号", "盐城响水悦达血液透析中心有限公司")
1096 1287
 
1097 1288
 }
1098 1289
 func (c *JSybController) Get5301() {
@@ -1379,8 +1570,6 @@ func (c *JSybController) PostFive() {
1379 1570
 		return
1380 1571
 	}
1381 1572
 
1382
-
1383
-
1384 1573
 	//fmt.Println("2203A的time_stamp=" + respJSON["time_stamp"].(string))
1385 1574
 	result, request_log := service.Jsyb2204(respJSON["psn_no"].(string), respJSON["mdtrt_id"].(string), hp, respJSON["chrg_bchno"].(string), respJSON["org_name"].(string),
1386 1575
 		respJSON["opter"].(string), respJSON["dept"].(string), respJSON["fixmedins_code"].(string), respJSON["dept_code"].(string), respJSON["doctor_id"].(string), respJSON["insuplc_admdvs"].(string), respJSON["mdtrtarea_admvs"].(string), respJSON["secret_key"].(string), respJSON["balance_accounts_type"].(string), "", respJSON["url"].(string), respJSON["ak"].(string), respJSON["new_doctor_name"].(string), "", respJSON["cainfo"].(string))
@@ -1742,7 +1931,7 @@ type ELeCertData struct {
1742 1931
 
1743 1932
 type ELeCertDatathree struct {
1744 1933
 	Data struct {
1745
-		AuthNo       string `json:"authNo"`
1934
+		AuthNo      string `json:"authNo"`
1746 1935
 		Extra       string `json:"extra"`
1747 1936
 		IDNo        string `json:"idNo"`
1748 1937
 		IDType      string `json:"idType"`
@@ -1759,16 +1948,15 @@ type ELeCertDatathree struct {
1759 1948
 	Message string `json:"message"`
1760 1949
 }
1761 1950
 
1762
-
1763
-
1764 1951
 type ELeCertDatatwo struct {
1765 1952
 	Data struct {
1766
-		AuthNo       string `json:"authNo"`
1767
-		OutBizNo        string `json:"outBizNo"`
1953
+		AuthNo   string `json:"authNo"`
1954
+		OutBizNo string `json:"outBizNo"`
1768 1955
 	} `json:"data"`
1769 1956
 	Code    int    `json:"code"`
1770 1957
 	Message string `json:"message"`
1771 1958
 }
1959
+
1772 1960
 func (c *JSybController) Readcardface() {
1773 1961
 	fixmedins_code := c.GetString("fixmedins_code")
1774 1962
 	secret_key := c.GetString("secret_key")
@@ -1784,13 +1972,13 @@ func (c *JSybController) Readcardface() {
1784 1972
 
1785 1973
 	fmt.Println(operator_id)
1786 1974
 	fmt.Println(operator)
1787
-	_, pBusiCardInfo := c.GetELeCertInfoByFace(fixmedins_code, operator_id, operator,"01301")
1975
+	_, pBusiCardInfo := c.GetELeCertInfoByFace(fixmedins_code, operator_id, operator, "01301")
1788 1976
 	fmt.Println(pBusiCardInfo)
1789 1977
 	pBusiCardInfo = Remove0000(pBusiCardInfo)
1790 1978
 	var eletwo ELeCertDatatwo
1791 1979
 	json.Unmarshal([]byte(pBusiCardInfo), &eletwo)
1792 1980
 
1793
-	_, pBusiCardInfotwo := GetELeCertInfoByFacetwo(fixmedins_code, operator_id, operator,eletwo.Data.AuthNo,eletwo.Data.OutBizNo,"01301")
1981
+	_, pBusiCardInfotwo := GetELeCertInfoByFacetwo(fixmedins_code, operator_id, operator, eletwo.Data.AuthNo, eletwo.Data.OutBizNo, "01301")
1794 1982
 
1795 1983
 	var ele ELeCertDatathree
1796 1984
 	err2 := json.Unmarshal([]byte(pBusiCardInfotwo), &ele)
@@ -1820,8 +2008,7 @@ func (c *JSybController) Readcardface() {
1820 2008
 			"busi_card_info": pBusiCardInfotwo,
1821 2009
 			"token":          token,
1822 2010
 			"result":         dat,
1823
-			"eletwo":	pBusiCardInfo,
1824
-
2011
+			"eletwo":         pBusiCardInfo,
1825 2012
 		})
1826 2013
 	} else {
1827 2014
 		c.ServeSuccessJSON(map[string]interface{}{
@@ -1830,10 +2017,8 @@ func (c *JSybController) Readcardface() {
1830 2017
 
1831 2018
 	}
1832 2019
 
1833
-
1834 2020
 }
1835 2021
 
1836
-
1837 2022
 func (c *JSybController) Readcardcharge() {
1838 2023
 	fixmedins_code := c.GetString("fixmedins_code")
1839 2024
 	secret_key := c.GetString("secret_key")
@@ -2246,16 +2431,13 @@ func (c *JSybController) ReadCard() {
2246 2431
 	case "5": //电子凭证
2247 2432
 		fmt.Println(operator_id)
2248 2433
 		fmt.Println(operator)
2249
-		_, pBusiCardInfo := c.GetELeCertInfoByFace(fixmedins_code, operator_id, operator,"01101")
2434
+		_, pBusiCardInfo := c.GetELeCertInfoByFace(fixmedins_code, operator_id, operator, "01101")
2250 2435
 		fmt.Println(pBusiCardInfo)
2251 2436
 		pBusiCardInfo = Remove0000(pBusiCardInfo)
2252 2437
 		var eletwo ELeCertDatatwo
2253 2438
 		json.Unmarshal([]byte(pBusiCardInfo), &eletwo)
2254 2439
 
2255
-
2256
-		_, pBusiCardInfotwo := GetELeCertInfoByFacetwo(fixmedins_code, operator_id, operator,eletwo.Data.AuthNo,eletwo.Data.OutBizNo,"01301")
2257
-
2258
-
2440
+		_, pBusiCardInfotwo := GetELeCertInfoByFacetwo(fixmedins_code, operator_id, operator, eletwo.Data.AuthNo, eletwo.Data.OutBizNo, "01301")
2259 2441
 
2260 2442
 		var ele ELeCertDatathree
2261 2443
 		err2 := json.Unmarshal([]byte(pBusiCardInfotwo), &ele)
@@ -2285,8 +2467,7 @@ func (c *JSybController) ReadCard() {
2285 2467
 				"busi_card_info": pBusiCardInfotwo,
2286 2468
 				"token":          token,
2287 2469
 				"result":         dat,
2288
-				"eletwo":	pBusiCardInfo,
2289
-
2470
+				"eletwo":         pBusiCardInfo,
2290 2471
 			})
2291 2472
 		} else {
2292 2473
 			c.ServeSuccessJSON(map[string]interface{}{
@@ -2296,7 +2477,6 @@ func (c *JSybController) ReadCard() {
2296 2477
 		}
2297 2478
 		break
2298 2479
 
2299
-
2300 2480
 	}
2301 2481
 
2302 2482
 }
@@ -2491,7 +2671,7 @@ func (c *JSybController) GetELeCertInfoFour2223(code string, operator_id string,
2491 2671
 	return ConvertByte2String([]byte(DeleteExtraSpace(string(bytesData))), GB18030), ConvertByte2String([]byte(DeleteExtraSpace(string(pBusiCardInfo))), GB18030)
2492 2672
 }
2493 2673
 
2494
-func (c *JSybController) GetELeCertInfoByFace(code string, operator_id string, operator_name string,businessType string) (string, string) {
2674
+func (c *JSybController) GetELeCertInfoByFace(code string, operator_id string, operator_name string, businessType string) (string, string) {
2495 2675
 	// WebSocket服务器地址
2496 2676
 	serverURL := "ws://127.0.0.1:8899"
2497 2677
 
@@ -2539,7 +2719,7 @@ func (c *JSybController) GetELeCertInfoByFace(code string, operator_id string, o
2539 2719
 
2540 2720
 	return "", string(receivedMessage)
2541 2721
 }
2542
-func GetELeCertInfoByFacetwo(code string, operator_id string, operator_name string,authNo string,outBizNo string,businessType string) (string, string) {
2722
+func GetELeCertInfoByFacetwo(code string, operator_id string, operator_name string, authNo string, outBizNo string, businessType string) (string, string) {
2543 2723
 	//	// WebSocket服务器地址
2544 2724
 	serverURL := "ws://127.0.0.1:8899"
2545 2725
 
@@ -2684,8 +2864,6 @@ func (c *JSybController) GetELeCertInfoThree(code string, operator_id string, op
2684 2864
 	return "", string(receivedMessage)
2685 2865
 }
2686 2866
 
2687
-
2688
-
2689 2867
 func GetELeCertInfoSettle(code string, operator_id string, operator_name string) (string, string) {
2690 2868
 	DllDef := syscall.MustLoadDLL("HeaSecReadInfo.dll")
2691 2869
 	readCard := DllDef.MustFindProc("GetPersonInfo")

+ 482 - 47
controllers/nm/nm_controller.go Visa fil

@@ -64,6 +64,442 @@ func NmybRegistRouters() {
64 64
 
65 65
 	beego.Router("/nmyb/2503", &NmController{}, "get:Post2503")
66 66
 
67
+	beego.Router("/nmyb/3501", &NmController{}, "get:Post3501")
68
+	beego.Router("/nmyb/3502", &NmController{}, "get:Post3502")
69
+	beego.Router("/nmyb/3503", &NmController{}, "get:Post3503")
70
+	beego.Router("/nmyb/3504", &NmController{}, "get:Post3504")
71
+	beego.Router("/nmyb/3505", &NmController{}, "get:Post3505")
72
+	beego.Router("/nmyb/3506", &NmController{}, "get:Post3506")
73
+	beego.Router("/nmyb/3507", &NmController{}, "get:Post3507")
74
+	beego.Router("/nmyb/3508", &NmController{}, "get:Post3508")
75
+	beego.Router("/nmyb/3509", &NmController{}, "get:Post3509")
76
+	beego.Router("/nmyb/3510", &NmController{}, "get:Post3510")
77
+	beego.Router("/nmyb/3511", &NmController{}, "get:Post3511")
78
+	beego.Router("/nmyb/3512", &NmController{}, "get:Post3512")
79
+	beego.Router("/nmyb/3513", &NmController{}, "get:Post3513")
80
+
81
+}
82
+func (c *NmController) Post3501() {
83
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
84
+	var respJSON map[string]interface{}
85
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
86
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
87
+		return
88
+	}
89
+
90
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3501s"])
91
+	var struct3501 models.Struct3501
92
+	if err := json.Unmarshal(userJSONBytes, &struct3501); err != nil {
93
+		utils.ErrorLog("解析失败:%v", err)
94
+		return
95
+	}
96
+
97
+	result, request_log := service.NMyb3501(struct3501, struct3501.SecretKey)
98
+	saveJsLog(result, request_log, "3501", "库存盘点", struct3501.OrgName)
99
+	var dat2 map[string]interface{}
100
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
101
+	} else {
102
+	}
103
+	var dat map[string]interface{}
104
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
105
+	} else {
106
+
107
+	}
108
+	c.ServeSuccessJSON(map[string]interface{}{
109
+		"pre":         dat,
110
+		"request_log": dat2,
111
+	})
112
+
113
+}
114
+func (c *NmController) Post3502() {
115
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
116
+	var respJSON map[string]interface{}
117
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
118
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
119
+		return
120
+	}
121
+
122
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3502s"])
123
+	var struct3502s models.Struct3502
124
+	if err := json.Unmarshal(userJSONBytes, &struct3502s); err != nil {
125
+		utils.ErrorLog("解析失败:%v", err)
126
+		return
127
+	}
128
+
129
+	result, request_log := service.NMyb3502(struct3502s, struct3502s.SecretKey)
130
+	saveJsLog(result, request_log, "3502", "库存变更", struct3502s.OrgName)
131
+	var dat2 map[string]interface{}
132
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
133
+	} else {
134
+	}
135
+	var dat map[string]interface{}
136
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
137
+	} else {
138
+
139
+	}
140
+	c.ServeSuccessJSON(map[string]interface{}{
141
+		"pre":         dat,
142
+		"request_log": dat2,
143
+	})
144
+
145
+}
146
+func (c *NmController) Post3503() {
147
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
148
+	var respJSON map[string]interface{}
149
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
150
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
151
+		return
152
+	}
153
+
154
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3503s"])
155
+	var struct3503 models.Struct3503
156
+	if err := json.Unmarshal(userJSONBytes, &struct3503); err != nil {
157
+		utils.ErrorLog("解析失败:%v", err)
158
+		return
159
+	}
160
+	fmt.Println(struct3503)
161
+
162
+	result, request_log := service.NMyb3503(struct3503, struct3503.SecretKey)
163
+	saveJsLog(result, request_log, "3503", "库存采购", struct3503.OrgName)
164
+	var dat2 map[string]interface{}
165
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
166
+	} else {
167
+	}
168
+	var dat map[string]interface{}
169
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
170
+	} else {
171
+
172
+	}
173
+	c.ServeSuccessJSON(map[string]interface{}{
174
+		"pre":         dat,
175
+		"request_log": dat2,
176
+	})
177
+}
178
+
179
+func (c *NmController) Post3504() {
180
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
181
+	var respJSON map[string]interface{}
182
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
183
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
184
+		return
185
+	}
186
+
187
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3504s"])
188
+	var struct3504 []models.Struct3504
189
+	if err := json.Unmarshal(userJSONBytes, &struct3504); err != nil {
190
+		utils.ErrorLog("解析失败:%v", err)
191
+		return
192
+	}
193
+
194
+	result, request_log := service.NMyb3504(struct3504[0], struct3504[0].SecretKey)
195
+	saveJsLog(result, request_log, "3504", "库存盘点", struct3504[0].OrgName)
196
+	var dat2 map[string]interface{}
197
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
198
+	} else {
199
+	}
200
+	var dat map[string]interface{}
201
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
202
+	} else {
203
+
204
+	}
205
+	c.ServeSuccessJSON(map[string]interface{}{
206
+		"pre":         dat,
207
+		"request_log": dat2,
208
+	})
209
+
210
+}
211
+func (c *NmController) Post3505() {
212
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
213
+	var respJSON map[string]interface{}
214
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
215
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
216
+		return
217
+	}
218
+
219
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3505s"])
220
+	var struct3505 models.Struct3505
221
+	if err := json.Unmarshal(userJSONBytes, &struct3505); err != nil {
222
+		utils.ErrorLog("解析失败:%v", err)
223
+		return
224
+	}
225
+
226
+	result, request_log := service.NMyb3505(struct3505, struct3505.SecretKey)
227
+	saveJsLog(result, request_log, "3505", "销售", struct3505.OrgName)
228
+	var dat2 map[string]interface{}
229
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
230
+	} else {
231
+	}
232
+	var dat map[string]interface{}
233
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
234
+	} else {
235
+
236
+	}
237
+	c.ServeSuccessJSON(map[string]interface{}{
238
+		"pre":         dat,
239
+		"request_log": dat2,
240
+	})
241
+}
242
+func (c *NmController) Post3506() {
243
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
244
+	var respJSON map[string]interface{}
245
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
246
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
247
+		return
248
+	}
249
+
250
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3506s"])
251
+	var struct3506 models.Struct3506
252
+	if err := json.Unmarshal(userJSONBytes, &struct3506); err != nil {
253
+		utils.ErrorLog("解析失败:%v", err)
254
+		return
255
+	}
256
+
257
+	result, request_log := service.NMyb3506(struct3506, struct3506.SecretKey)
258
+	saveJsLog(result, request_log, "3506", "销售退库", struct3506.OrgName)
259
+	var dat2 map[string]interface{}
260
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
261
+	} else {
262
+	}
263
+	var dat map[string]interface{}
264
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
265
+	} else {
266
+
267
+	}
268
+	c.ServeSuccessJSON(map[string]interface{}{
269
+		"pre":         dat,
270
+		"request_log": dat2,
271
+	})
272
+
273
+}
274
+func (c *NmController) Post3507() {
275
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
276
+	var respJSON map[string]interface{}
277
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
278
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
279
+		return
280
+	}
281
+
282
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3507s"])
283
+	var struct3507 models.Struct3507
284
+	if err := json.Unmarshal(userJSONBytes, &struct3507); err != nil {
285
+		utils.ErrorLog("解析失败:%v", err)
286
+		return
287
+	}
288
+
289
+	result, request_log := service.NMyb3507(struct3507, struct3507.SecretKey)
290
+	saveJsLog(result, request_log, "3507", "库存盘点", struct3507.OrgName)
291
+	var dat2 map[string]interface{}
292
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
293
+	} else {
294
+	}
295
+	var dat map[string]interface{}
296
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
297
+	} else {
298
+
299
+	}
300
+	c.ServeSuccessJSON(map[string]interface{}{
301
+		"pre":         dat,
302
+		"request_log": dat2,
303
+	})
304
+
305
+}
306
+
307
+func (c *NmController) Post3508() {
308
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
309
+	var respJSON map[string]interface{}
310
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
311
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
312
+		return
313
+	}
314
+
315
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3508s"])
316
+	var struct3508 models.Struct3508
317
+	if err := json.Unmarshal(userJSONBytes, &struct3508); err != nil {
318
+		utils.ErrorLog("解析失败:%v", err)
319
+		return
320
+	}
321
+
322
+	result, request_log := service.NMyb3508(struct3508, struct3508.SecretKey)
323
+	saveJsLog(result, request_log, "3508", "库存查询", struct3508.OrgName)
324
+	var dat2 map[string]interface{}
325
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
326
+	} else {
327
+	}
328
+	var dat map[string]interface{}
329
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
330
+	} else {
331
+
332
+	}
333
+	c.ServeSuccessJSON(map[string]interface{}{
334
+		"pre":         dat,
335
+		"request_log": dat2,
336
+	})
337
+
338
+}
339
+
340
+func (c *NmController) Post3509() {
341
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
342
+	var respJSON map[string]interface{}
343
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
344
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
345
+		return
346
+	}
347
+
348
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3509s"])
349
+	var struct3509 models.Struct3509
350
+	if err := json.Unmarshal(userJSONBytes, &struct3509); err != nil {
351
+		utils.ErrorLog("解析失败:%v", err)
352
+		return
353
+	}
354
+
355
+	result, request_log := service.NMyb3509(struct3509, struct3509.SecretKey)
356
+	saveJsLog(result, request_log, "3509", "库存盘点", struct3509.OrgName)
357
+	var dat2 map[string]interface{}
358
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
359
+	} else {
360
+	}
361
+	var dat map[string]interface{}
362
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
363
+	} else {
364
+
365
+	}
366
+	c.ServeSuccessJSON(map[string]interface{}{
367
+		"pre":         dat,
368
+		"request_log": dat2,
369
+	})
370
+
371
+}
372
+
373
+func (c *NmController) Post3510() {
374
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
375
+	var respJSON map[string]interface{}
376
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
377
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
378
+		return
379
+	}
380
+
381
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3510s"])
382
+	var struct3510 models.Struct3510
383
+	if err := json.Unmarshal(userJSONBytes, &struct3510); err != nil {
384
+		utils.ErrorLog("解析失败:%v", err)
385
+		return
386
+	}
387
+
388
+	result, request_log := service.NMyb3510(struct3510, struct3510.SecretKey)
389
+	saveJsLog(result, request_log, "3510", "库存盘点", struct3510.OrgName)
390
+	var dat2 map[string]interface{}
391
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
392
+	} else {
393
+	}
394
+	var dat map[string]interface{}
395
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
396
+	} else {
397
+
398
+	}
399
+	c.ServeSuccessJSON(map[string]interface{}{
400
+		"pre":         dat,
401
+		"request_log": dat2,
402
+	})
403
+
404
+}
405
+
406
+func (c *NmController) Post3511() {
407
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
408
+	var respJSON map[string]interface{}
409
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
410
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
411
+		return
412
+	}
413
+
414
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3511s"])
415
+	var struct3511 models.Struct3511
416
+	if err := json.Unmarshal(userJSONBytes, &struct3511); err != nil {
417
+		utils.ErrorLog("解析失败:%v", err)
418
+		return
419
+	}
420
+
421
+	result, request_log := service.NMyb3511(struct3511, struct3511.SecretKey)
422
+	saveJsLog(result, request_log, "3511", "库存查询", struct3511.OrgName)
423
+	var dat2 map[string]interface{}
424
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
425
+	} else {
426
+	}
427
+	var dat map[string]interface{}
428
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
429
+	} else {
430
+
431
+	}
432
+	c.ServeSuccessJSON(map[string]interface{}{
433
+		"pre":         dat,
434
+		"request_log": dat2,
435
+	})
436
+
437
+}
438
+
439
+func (c *NmController) Post3512() {
440
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
441
+	var respJSON map[string]interface{}
442
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
443
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
444
+		return
445
+	}
446
+
447
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3512s"])
448
+	var struct3512 models.Struct3512
449
+	if err := json.Unmarshal(userJSONBytes, &struct3512); err != nil {
450
+		utils.ErrorLog("解析失败:%v", err)
451
+		return
452
+	}
453
+
454
+	result, request_log := service.NMyb3512(struct3512, struct3512.SecretKey)
455
+	saveJsLog(result, request_log, "3512", "库存盘点", struct3512.OrgName)
456
+	var dat2 map[string]interface{}
457
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
458
+	} else {
459
+	}
460
+	var dat map[string]interface{}
461
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
462
+	} else {
463
+
464
+	}
465
+	c.ServeSuccessJSON(map[string]interface{}{
466
+		"pre":         dat,
467
+		"request_log": dat2,
468
+	})
469
+
470
+}
471
+
472
+func (c *NmController) Post3513() {
473
+	body, _ := ioutil.ReadAll(c.Ctx.Request.Body)
474
+	var respJSON map[string]interface{}
475
+	if err := json.Unmarshal([]byte(string(body)), &respJSON); err != nil {
476
+		utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
477
+		return
478
+	}
479
+
480
+	userJSONBytes, _ := json.Marshal(respJSON["struct_3513s"])
481
+	var struct3513 models.Struct3513
482
+	if err := json.Unmarshal(userJSONBytes, &struct3513); err != nil {
483
+		utils.ErrorLog("解析失败:%v", err)
484
+		return
485
+	}
486
+
487
+	result, request_log := service.NMyb3513(struct3513, struct3513.SecretKey)
488
+	saveJsLog(result, request_log, "3513", "库存查询", struct3513.OrgName)
489
+	var dat2 map[string]interface{}
490
+	if err := json.Unmarshal([]byte(request_log), &dat2); err == nil {
491
+	} else {
492
+	}
493
+	var dat map[string]interface{}
494
+	if err := json.Unmarshal([]byte(result), &dat); err == nil {
495
+	} else {
496
+
497
+	}
498
+	c.ServeSuccessJSON(map[string]interface{}{
499
+		"pre":         dat,
500
+		"request_log": dat2,
501
+	})
502
+
67 503
 }
68 504
 
69 505
 func (c *NmController) Post2201() {
@@ -495,56 +931,56 @@ func (c *NmController) Post2503() {
495 931
 	})
496 932
 }
497 933
 
498
-//func (c *NmController) GetNewELeInfo() {
499
-//	token := c.GetString("token")
500
-//	user_name := c.GetString("user_name")
501
-//	id_card_no := c.GetString("id_card_no")
502
-//
503
-//	result, _ := service.Gdyb1101ForEleCert("赤峰费森血液透析中心", "关学丽", "H15049901371", "150499", "150499", "MSDBYGxXm1Mtyi3PtOUB7n1ktcxwyW57", token, user_name, id_card_no)
504
-//	var dat map[string]interface{}
505
-//	if err := json.Unmarshal([]byte(result), &dat); err == nil {
506
-//		fmt.Println(dat)
507
-//	} else {
508
-//		fmt.Println(err)
509
-//	}
510
-//	userJSONBytes, _ := json.Marshal(dat)
511
-//	var res ResultTwo
934
+//	func (c *NmController) GetNewELeInfo() {
935
+//		token := c.GetString("token")
936
+//		user_name := c.GetString("user_name")
937
+//		id_card_no := c.GetString("id_card_no")
512 938
 //
513
-//	if err := json.Unmarshal(userJSONBytes, &res); err != nil {
514
-//		utils.ErrorLog("解析失败:%v", err)
515
-//		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
516
-//		return
517
-//	}
518
-//
519
-//	infocode, _ := strconv.ParseInt(res.Infcode, 10, 64)
520
-//	if infocode == 0 {
521
-//		data := make(map[string]interface{})
522
-//		data["token"] = token
523
-//		data["result"] = dat
524
-//		var req *http.Request
525
-//		bytesData, _ := json.Marshal(data)
526
-//		req, _ = http.NewRequest("POST", "http://172.16.13.253:9532/"+"api/ele/info", bytes.NewReader(bytesData))
527
-//		client := &http.Client{}
528
-//		resp, _ := client.Do(req)
529
-//		defer resp.Body.Close()
530
-//		body, ioErr := ioutil.ReadAll(resp.Body)
531
-//		if ioErr != nil {
532
-//			utils.ErrorLog("接口返回数据读取失败: %v", ioErr)
533
-//			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
534
-//			return
939
+//		result, _ := service.Gdyb1101ForEleCert("赤峰费森血液透析中心", "关学丽", "H15049901371", "150499", "150499", "MSDBYGxXm1Mtyi3PtOUB7n1ktcxwyW57", token, user_name, id_card_no)
940
+//		var dat map[string]interface{}
941
+//		if err := json.Unmarshal([]byte(result), &dat); err == nil {
942
+//			fmt.Println(dat)
943
+//		} else {
944
+//			fmt.Println(err)
535 945
 //		}
536
-//		var respJSON map[string]interface{}
537
-//		if err := json.Unmarshal([]byte(body), &respJSON); err != nil {
538
-//			utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
946
+//		userJSONBytes, _ := json.Marshal(dat)
947
+//		var res ResultTwo
948
+//
949
+//		if err := json.Unmarshal(userJSONBytes, &res); err != nil {
950
+//			utils.ErrorLog("解析失败:%v", err)
539 951
 //			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
540 952
 //			return
541 953
 //		}
542
-//		c.ServeSuccessJSON(map[string]interface{}{
543
-//			"msg": "成功",
544
-//		})
545 954
 //
955
+//		infocode, _ := strconv.ParseInt(res.Infcode, 10, 64)
956
+//		if infocode == 0 {
957
+//			data := make(map[string]interface{})
958
+//			data["token"] = token
959
+//			data["result"] = dat
960
+//			var req *http.Request
961
+//			bytesData, _ := json.Marshal(data)
962
+//			req, _ = http.NewRequest("POST", "http://172.16.13.253:9532/"+"api/ele/info", bytes.NewReader(bytesData))
963
+//			client := &http.Client{}
964
+//			resp, _ := client.Do(req)
965
+//			defer resp.Body.Close()
966
+//			body, ioErr := ioutil.ReadAll(resp.Body)
967
+//			if ioErr != nil {
968
+//				utils.ErrorLog("接口返回数据读取失败: %v", ioErr)
969
+//				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
970
+//				return
971
+//			}
972
+//			var respJSON map[string]interface{}
973
+//			if err := json.Unmarshal([]byte(body), &respJSON); err != nil {
974
+//				utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
975
+//				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
976
+//				return
977
+//			}
978
+//			c.ServeSuccessJSON(map[string]interface{}{
979
+//				"msg": "成功",
980
+//			})
981
+//
982
+//		}
546 983
 //	}
547
-//}
548 984
 func (c *NmController) GetToken() {
549 985
 	token := c.GetString("token")
550 986
 	results := strings.Split(token, "-")
@@ -733,7 +1169,7 @@ func (c *NmController) Post4101() {
733 1169
 		utils.ErrorLog("解析失败:%v", err)
734 1170
 		return
735 1171
 	}
736
-	result, _ := service.Gdyb4101fornm(struct4101, pp.SecretKey, pp.FixmedinsName, pp.OpterName, pp.FixmedinsCode, pp.InsuplcAdmdvs, pp.MdtrtareaAdmvs, 0,0)
1172
+	result, _ := service.Gdyb4101fornm(struct4101, pp.SecretKey, pp.FixmedinsName, pp.OpterName, pp.FixmedinsCode, pp.InsuplcAdmdvs, pp.MdtrtareaAdmvs, 0, 0)
737 1173
 	var dat map[string]interface{}
738 1174
 	if err := json.Unmarshal([]byte(result), &dat); err == nil {
739 1175
 		fmt.Println(dat)
@@ -897,7 +1333,6 @@ func (c *NmController) Post4104() {
897 1333
 	})
898 1334
 }
899 1335
 
900
-
901 1336
 func (c *NmController) Post1101() {
902 1337
 	certNo := c.GetString("cert_no")
903 1338
 	org_name := c.GetString("org_name")
@@ -911,7 +1346,7 @@ func (c *NmController) Post1101() {
911 1346
 	certificates := c.GetString("certificates")
912 1347
 	name := c.GetString("name")
913 1348
 	certificate, _ := strconv.ParseInt(certificates, 10, 64)
914
-	result, request_log, result_log := service.ZHGdyb1101(certNo, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, id_card_type, card_sn, certificate, name,0)
1349
+	result, request_log, result_log := service.ZHGdyb1101(certNo, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, id_card_type, card_sn, certificate, name, 0)
915 1350
 
916 1351
 	saveJsLog(result_log, request_log, "1101", "查询个人信息", org_name)
917 1352
 	var dat map[string]interface{}
@@ -1785,7 +2220,7 @@ func (c *NmController) Get3201() {
1785 2220
 		AcctPay:          acctPay,
1786 2221
 		FixmedinsSetlCnt: fixmedinsSetlCnt,
1787 2222
 	}
1788
-	result := service.Gdyb3201(baseParams, businessParams,0)
2223
+	result := service.Gdyb3201(baseParams, businessParams, 0)
1789 2224
 	saveJsLog(result, "", "3201", "对总账", org_name)
1790 2225
 	var dat map[string]interface{}
1791 2226
 	if err := json.Unmarshal([]byte(result), &dat); err == nil {

Filskillnaden har hållits tillbaka eftersom den är för stor
+ 1512 - 496
controllers/sg/his_api_controller.go


Filskillnaden har hållits tillbaka eftersom den är för stor
+ 2087 - 527
service/gdyb_service.go


+ 85 - 27
service/his_service.go Visa fil

@@ -4,8 +4,8 @@ import (
4 4
 	"fmt"
5 5
 	"gdyb/models"
6 6
 	"github.com/jinzhu/gorm"
7
-	"time"
8 7
 	"strconv"
8
+	"time"
9 9
 )
10 10
 
11 11
 type HisPatient struct {
@@ -316,13 +316,12 @@ func GetNewHisPrescription(org_id int64, his_patient_id int64, record_date int64
316 316
 }
317 317
 
318 318
 type OtherDrugWarehouseInfo struct {
319
-	ID               int64 `gorm:"column:id" json:"id" form:"id"`
320
-	DrugId           int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
321
-	WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
322
-	Status           int64 `gorm:"column:status" json:"status" form:"status"`
323
-	OrgId            int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
324
-	DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
325
-
319
+	ID               int64  `gorm:"column:id" json:"id" form:"id"`
320
+	DrugId           int64  `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
321
+	WarehousingCount int64  `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
322
+	Status           int64  `gorm:"column:status" json:"status" form:"status"`
323
+	OrgId            int64  `gorm:"column:org_id" json:"org_id" form:"org_id"`
324
+	DrugCode         string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
326 325
 }
327 326
 
328 327
 func (OtherDrugWarehouseInfo) TableName() string {
@@ -631,7 +630,7 @@ type HisOrder struct {
631 630
 	PayWays                 string  `gorm:"column:pay_ways" json:"pay_way" form:"pay_ways"`
632 631
 	OthDesc                 string  `gorm:"column:oth_desc" json:"oth_desc" form:"oth_desc"`
633 632
 	SetlDetail              string  `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
634
-	FaPiaoSn     string `gorm:"column:fa_piao_sn" json:"fa_piao_sn" form:"fa_piao_sn"`
633
+	FaPiaoSn                string  `gorm:"column:fa_piao_sn" json:"fa_piao_sn" form:"fa_piao_sn"`
635 634
 	//FaPiaoSn     string `gorm:"column:fa_piao_sn" json:"fa_piao_sn" form:"fa_piao_sn"`
636 635
 
637 636
 	HisOrderInfo        models.HisOrderInfo        `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order_info"`
@@ -976,7 +975,7 @@ func GetHisOrderByID(order_id int64) (order models.HisOrder, err error) {
976 975
 
977 976
 func GetFaPiaoHisOrderByID(order_id int64) (order models.HisFaPiaoOrder, err error) {
978 977
 	str := strconv.FormatInt(order_id, 10)
979
-	key := "%" + str +"%"
978
+	key := "%" + str + "%"
980 979
 	err = readDb.Model(&models.HisFaPiaoOrder{}).Where("order_ids like ? and status = 1", key).First(&order).Error
981 980
 	return
982 981
 }
@@ -1073,14 +1072,13 @@ func GetOrderByTimeFour(start_time int64, end_time int64, org_id int64) (orders
1073 1072
 	return
1074 1073
 }
1075 1074
 
1076
-func GetOrderByTimeTenaaa(start_time int64, end_time int64, org_id int64,org string) (orders []*models.HisOrder, err error) {
1075
+func GetOrderByTimeTenaaa(start_time int64, end_time int64, org_id int64, org string) (orders []*models.HisOrder, err error) {
1077 1076
 	db := readDb.Model(&models.HisOrder{})
1078
-	db = db.Where("clr_options = ?  and user_org_id = ? AND status = 1 AND order_status = 2 AND is_medicine_insurance = 1 AND UNIX_TIMESTAMP(setl_time)  <= ? AND UNIX_TIMESTAMP(setl_time) >= ? ", org,org_id, end_time, start_time)
1077
+	db = db.Where("clr_options = ?  and user_org_id = ? AND status = 1 AND order_status = 2 AND is_medicine_insurance = 1 AND UNIX_TIMESTAMP(setl_time)  <= ? AND UNIX_TIMESTAMP(setl_time) >= ? ", org, org_id, end_time, start_time)
1079 1078
 	err = db.Find(&orders).Error
1080 1079
 	return
1081 1080
 }
1082 1081
 
1083
-
1084 1082
 func GetOrderByTime11222(start_time int64, end_time int64, org_id int64) (orders []*models.HisOrder, err error) {
1085 1083
 	db := readDb.Model(&models.HisOrder{})
1086 1084
 	db = db.Where("psn_name = '付云芳' and user_org_id = ? AND status = 1 AND order_status = 2 AND is_medicine_insurance = 1 AND UNIX_TIMESTAMP(setl_time)  <= ? AND UNIX_TIMESTAMP(setl_time) >= ?", org_id, end_time, start_time)
@@ -1734,13 +1732,26 @@ func GetNewDrugWarehouseInfo(org_id int64, id_arr []string) (newDrugWarehouse []
1734 1732
 	return
1735 1733
 }
1736 1734
 
1737
-func GetNewDrugFlowInfo(org_id int64,id_arr []string) (flows []*models.DrugFlow, err error) {
1735
+func GetNewDrugFlowInfo(org_id int64, id_arr []string) (flows []*models.DrugFlow, err error) {
1738 1736
 	err = readDb.Model(&models.DrugFlow{}).Where("user_org_id = ? and status = 1 and id in (?)", org_id, id_arr).Preload("HisDoctorAdviceInfo", func(db *gorm.DB) *gorm.DB {
1739 1737
 		return db.Where("status = 1").Preload("BaseDrugLib", "status=1")
1740 1738
 	}).Preload("NewDrugWarehouseInfo", "status = 1").Find(&flows).Error
1741 1739
 	return
1742 1740
 }
1743 1741
 
1742
+func GetNewDrugFlowInfoByPatient(patient_id int64, advice_id int64, time int64, org_id int64) (flows []*models.DrugFlow, err error) {
1743
+	err = readDb.Model(&models.DrugFlow{}).Where("user_org_id = ? and status = 1 and id in (?) and patinet_id = ? and advice_id = ? and system_time = ?", org_id, patient_id, advice_id, time).Preload("HisDoctorAdviceInfo", func(db *gorm.DB) *gorm.DB {
1744
+		return db.Where("status = 1").Preload("BaseDrugLib", "status=1")
1745
+	}).Preload("NewDrugWarehouseInfo", "status = 1").Find(&flows).Error
1746
+	return
1747
+}
1748
+
1749
+func GetNewUploadDrugFlowInfoByPatientTwo(patient_id int64, advice_id int64, time int64, org_id int64) (flows []*models.DrugFlow, err error) {
1750
+	err = readDb.Model(&models.DrugFlow{}).Where("user_org_id = ? and status = 1 and id in (?) and patinet_id = ? and advice_id = ? and system_time = ? and is_sale = 1 and is_bg = 1", org_id, patient_id, advice_id, time).Preload("HisDoctorAdviceInfo", func(db *gorm.DB) *gorm.DB {
1751
+		return db.Where("status = 1").Preload("BaseDrugLib", "status=1")
1752
+	}).Preload("NewDrugWarehouseInfo", "status = 1").Find(&flows).Error
1753
+	return
1754
+}
1744 1755
 
1745 1756
 func GetNewDrugFlowInfotwo() (flows []*models.DrugFlow, err error) {
1746 1757
 	err = readDb.Model(&models.DrugFlow{}).Where("user_org_id = 10188 and status = 1 and id >= ? and consumable_type = 3 and is_sale = 0", 2394762).Preload("HisDoctorAdviceInfo", func(db *gorm.DB) *gorm.DB {
@@ -1749,13 +1760,20 @@ func GetNewDrugFlowInfotwo() (flows []*models.DrugFlow, err error) {
1749 1760
 	return
1750 1761
 }
1751 1762
 
1752
-
1753 1763
 func GetNewDrugFlowInfothree() (flows []*models.DrugFlow, err error) {
1754 1764
 	err = readDb.Model(&models.DrugFlow{}).Where("user_org_id = 10217 and status = 1 and id >= ?  and consumable_type = 3 and is_sale = 0", 2328112).Preload("HisDoctorAdviceInfo", func(db *gorm.DB) *gorm.DB {
1755 1765
 		return db.Where("status = 1").Preload("BaseDrugLib", "status=1")
1756 1766
 	}).Preload("NewDrugWarehouseInfo", "status = 1").Find(&flows).Error
1757 1767
 	return
1758 1768
 }
1769
+
1770
+func GetNewDrugFlowInforTen() (flows []*models.DrugFlow, err error) {
1771
+	err = readDb.Model(&models.DrugFlow{}).Where("user_org_id = 10318 and status = 1 and drug_code != '' and consumable_type = 3 and is_sale = 0").Preload("HisDoctorAdviceInfo", func(db *gorm.DB) *gorm.DB {
1772
+		return db.Where("status = 1").Preload("BaseDrugLib", "status=1")
1773
+	}).Preload("NewDrugWarehouseInfo", "status = 1").Find(&flows).Error
1774
+	return
1775
+}
1776
+
1759 1777
 func GetHisPrescriptionByID(id int64) (pre models.HisPrescription) {
1760 1778
 	err = readDb.Model(&models.HisPrescription{}).Where("id = ? and status = 1", id).Find(&pre).Error
1761 1779
 	return
@@ -1804,7 +1822,6 @@ func GetHisOrderDetailByNumber(order_number string, org_id int64) (order []*HisO
1804 1822
 	return
1805 1823
 }
1806 1824
 
1807
-
1808 1825
 type HisOrderInfo struct {
1809 1826
 	ID                     int64                  `gorm:"column:id" json:"id" form:"id"`
1810 1827
 	OrderNumber            string                 `gorm:"column:order_number" json:"order_number" form:"order_number"`
@@ -1832,7 +1849,6 @@ func (HisOrderInfo) TableName() string {
1832 1849
 	return "his_order_info"
1833 1850
 }
1834 1851
 
1835
-
1836 1852
 type HisDoctorAdviceInfo struct {
1837 1853
 	ID                    int64   `gorm:"column:id" json:"id" form:"id"`
1838 1854
 	UserOrgId             int64   `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
@@ -1853,13 +1869,13 @@ type HisDoctorAdviceInfo struct {
1853 1869
 	DrugSpecUnit          string  `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
1854 1870
 	PrescriptionId        int64   `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
1855 1871
 
1856
-	Price                float64              `gorm:"column:price" json:"price" form:"price"`
1857
-	DrugId               int64                `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
1858
-	Drug                 Drug                 `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
1872
+	Price  float64 `gorm:"column:price" json:"price" form:"price"`
1873
+	DrugId int64   `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
1874
+	Drug   Drug    `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
1859 1875
 
1860
-	IsMedicine           int64                `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
1861
-	ExecutionFrequencyId int64                `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
1862
-	IsSelfDrug           int64                `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
1876
+	IsMedicine           int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
1877
+	ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
1878
+	IsSelfDrug           int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
1863 1879
 }
1864 1880
 
1865 1881
 type Drug struct {
@@ -1980,10 +1996,10 @@ func (VMGoodInfo) TableName() string {
1980 1996
 	return "xt_good_information"
1981 1997
 }
1982 1998
 
1983
-
1984 1999
 func (HisDoctorAdviceInfo) TableName() string {
1985 2000
 	return "his_doctor_advice_info"
1986 2001
 }
2002
+
1987 2003
 type VMHisPatient struct {
1988 2004
 	ID                     int64   `gorm:"column:id" json:"id" form:"id"`
1989 2005
 	BalanceAccountsType    int64   `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
@@ -2055,10 +2071,10 @@ type HisPrescriptionProject struct {
2055 2071
 	VMHisProject       VMHisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
2056 2072
 	VMGoodInfo         VMGoodInfo   `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
2057 2073
 
2058
-	Remark               string               `gorm:"column:remark" json:"remark" form:"remark"`
2059
-	Unit                 string               `gorm:"column:unit" json:"unit" form:"unit"`
2074
+	Remark string `gorm:"column:remark" json:"remark" form:"remark"`
2075
+	Unit   string `gorm:"column:unit" json:"unit" form:"unit"`
2060 2076
 
2061
-	Type                 int64                `gorm:"column:type" json:"type" form:"type"`
2077
+	Type int64 `gorm:"column:type" json:"type" form:"type"`
2062 2078
 
2063 2079
 	Doctor         int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
2064 2080
 	ExecutionTime  int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
@@ -2079,3 +2095,45 @@ type HisPrescriptionProject struct {
2079 2095
 func (HisPrescriptionProject) TableName() string {
2080 2096
 	return "his_prescription_project"
2081 2097
 }
2098
+
2099
+func FindeHisAdviceDocAdvice(orgid int64, patient_id int64, stime int64, etime int64) (advice []*models.HisDoctorAdviceInfo, err error) {
2100
+
2101
+	db := XTReadDB().Model(&advice).Where("status= 1 and is_medicine = 0")
2102
+
2103
+	if orgid > 0 {
2104
+		db = db.Where("user_org_id = ?", orgid)
2105
+	}
2106
+	if patient_id > 0 {
2107
+		db = db.Where("patient_id = ?", patient_id)
2108
+	}
2109
+	if stime > 0 {
2110
+		db = db.Where("advice_date >=?", stime)
2111
+	}
2112
+	if etime > 0 {
2113
+		db = db.Where("advice_date<=?", etime)
2114
+	}
2115
+	err = db.Find(&advice).Error
2116
+
2117
+	return advice, err
2118
+}
2119
+
2120
+func FindUploadHisAdviceDocAdvice(orgid int64, patient_id int64, stime int64, etime int64) (advice []*models.HisDoctorAdviceInfo, err error) {
2121
+
2122
+	db := XTReadDB().Model(&advice).Where("status= 1 and is_medicine = 0")
2123
+
2124
+	if orgid > 0 {
2125
+		db = db.Where("user_org_id = ?", orgid)
2126
+	}
2127
+	if patient_id > 0 {
2128
+		db = db.Where("patient_id = ?", patient_id)
2129
+	}
2130
+	if stime > 0 {
2131
+		db = db.Where("advice_date >=?", stime)
2132
+	}
2133
+	if etime > 0 {
2134
+		db = db.Where("advice_date<=?", etime)
2135
+	}
2136
+	db = db.Where("is_upload  = 1")
2137
+	err = db.Find(&advice).Error
2138
+	return advice, err
2139
+}

+ 361 - 63
service/jsyb_service.go Visa fil

@@ -242,7 +242,7 @@ func Jsyb1101ForEleCert(org_name string, doctor string, fixmedins_code string, i
242 242
 	inputData["mdtrt_cert_type"] = "01" // 就诊凭证类型
243 243
 	inputData["card_sn"] = ""           // 卡识别码
244 244
 	inputData["certno"] = id_card_no    // 证件号码
245
-	inputData["psn_cert_type"] = "01"    // 人员证件类型
245
+	inputData["psn_cert_type"] = "01"   // 人员证件类型
246 246
 
247 247
 	inputData["mdtrt_cert_no"] = Token // 就诊凭证编号
248 248
 	inputData["begntime"] = ""         // 开始时间
@@ -614,15 +614,12 @@ func Jsyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
614 614
 		feedetailInfo["bilg_dept_codg"] = dept_code                  // 开单科室编码
615 615
 		feedetailInfo["bilg_dept_name"] = dept                       // 开单科室名称
616 616
 
617
-
618
-			feedetailInfo["bilg_dr_codg"] = item.DoctorNumber   // 开单医生编码
619
-			feedetailInfo["bilg_dr_name"] = item.DoctorName             // 开单医师姓名
620
-			feedetailInfo["acord_dept_codg"] = ""             // 受单科室编码
621
-			feedetailInfo["acord_dept_name"] = ""             // 受单科室名称
622
-			feedetailInfo["orders_dr_code"] = item.DoctorNumber  // 受单医生编码
623
-			feedetailInfo["orders_dr_name"] = item.DoctorName            // 受单医生姓名
624
-
625
-
617
+		feedetailInfo["bilg_dr_codg"] = item.DoctorNumber   // 开单医生编码
618
+		feedetailInfo["bilg_dr_name"] = item.DoctorName     // 开单医师姓名
619
+		feedetailInfo["acord_dept_codg"] = ""               // 受单科室编码
620
+		feedetailInfo["acord_dept_name"] = ""               // 受单科室名称
621
+		feedetailInfo["orders_dr_code"] = item.DoctorNumber // 受单医生编码
622
+		feedetailInfo["orders_dr_name"] = item.DoctorName   // 受单医生姓名
626 623
 
627 624
 		if balance_accounts_type == "8" {
628 625
 			feedetailInfo["hosp_appr_flag"] = "2" // 医院审批标志
@@ -1724,22 +1721,22 @@ func Jsyb3501(struct3501 models.Struct3501) (string, string) {
1724 1721
 	inputMessage := SetJSInputMessage(timestamp, struct3501.OrgName, struct3501.Opter, struct3501.Code, struct3501.InsuplcAdmdvs, struct3501.MdtrtareaAdmvs, struct3501.Cainfo)
1725 1722
 	input := make(map[string]interface{})
1726 1723
 	inputData := make(map[string]interface{})
1727
-	inputMessage["infno"] = "3501"                                  // 交易编码
1728
-	inputData["med_list_codg"] = struct3501.MedListCodg             // 定点医药机构目录编号
1729
-	inputData["fixmedins_hilist_id"] = struct3501.FixmedinsHilistId // 定点医药机构目录编号
1730
-	inputData["fixmedins_hilist_name"] = struct3501.FixmedinsHilistName         // 定点医药机构目录名称
1731
-	inputData["rx_flag"] = struct3501.RxFlag                        //
1732
-	inputData["invdate"] = struct3501.Invdate                       // 人员编号 (来自1101接口返回)
1733
-	inputData["inv_cnt"] = struct3501.InvCnt                        // 人员编号 (来自1101接口返回)
1734
-	inputData["manu_lotnum"] = struct3501.ManuLotnum                // 人员编号 (来自1101接口返回)
1735
-	inputData["fixmedins_bchno"] = struct3501.FixmedinsBchno        // 人员编号 (来自1101接口返回)
1736
-	inputData["manu_date"] = struct3501.ManuDate                    // 人员编号 (来自1101接口返回)
1737
-	inputData["expy_end"] = struct3501.ExpyEnd                      // 人员编号 (来自1101接口返回)
1738
-	inputData["memo"] = ""                                          // 人员编号 (来自1101接口返回)
1724
+	inputMessage["infno"] = "3501"                                      // 交易编码
1725
+	inputData["med_list_codg"] = struct3501.MedListCodg                 // 定点医药机构目录编号
1726
+	inputData["fixmedins_hilist_id"] = struct3501.FixmedinsHilistId     // 定点医药机构目录编号
1727
+	inputData["fixmedins_hilist_name"] = struct3501.FixmedinsHilistName // 定点医药机构目录名称
1728
+	inputData["rx_flag"] = struct3501.RxFlag                            //
1729
+	inputData["invdate"] = struct3501.Invdate                           // 人员编号 (来自1101接口返回)
1730
+	inputData["inv_cnt"] = struct3501.InvCnt                            // 人员编号 (来自1101接口返回)
1731
+	inputData["manu_lotnum"] = struct3501.ManuLotnum                    // 人员编号 (来自1101接口返回)
1732
+	inputData["fixmedins_bchno"] = struct3501.FixmedinsBchno            // 人员编号 (来自1101接口返回)
1733
+	inputData["manu_date"] = struct3501.ManuDate                        // 人员编号 (来自1101接口返回)
1734
+	inputData["expy_end"] = struct3501.ExpyEnd                          // 人员编号 (来自1101接口返回)
1735
+	inputData["memo"] = ""                                              // 人员编号 (来自1101接口返回)
1739 1736
 	feedetail := make([]map[string]interface{}, 0)
1740 1737
 	druginputData := make(map[string]interface{})
1741 1738
 	druginputData["drug_trac_codg"] = struct3501.DrugTracCodg
1742
-	feedetail = append(feedetail,druginputData)
1739
+	feedetail = append(feedetail, druginputData)
1743 1740
 	inputData["drugtracinfo"] = feedetail
1744 1741
 	input["invinfo"] = inputData
1745 1742
 	inputMessage["input"] = input //交易输入
@@ -1764,12 +1761,12 @@ func Jsyb3502(struct3502 models.Struct3502) (string, string) {
1764 1761
 	inputData["med_list_codg"] = struct3502.MedListCodg // 定点医药机构目录编号
1765 1762
 	inputData["inv_chg_type"] = struct3502.InvChgType   // 定点医药机构目录编号
1766 1763
 
1767
-	inputData["fixmedins_hilist_id"] = struct3502.FixmedinsCode // 定点医药机构目录编号
1768
-	inputData["fixmedins_hilist_name"] = struct3502.FixmedinsHilistName     // 定点医药机构目录名称
1769
-	inputData["fixmedins_bchno"] = struct3502.FixmedinsBchno    // 人员编号 (来自1101接口返回)
1770
-	inputData["pric"] = struct3502.Pric                         // 人员编号 (来自1101接口返回)
1771
-	inputData["cnt"] = struct3502.Cnt                           // 人员编号 (来自1101接口返回)
1772
-	inputData["rx_flag"] = struct3502.RxFlag                    //
1764
+	inputData["fixmedins_hilist_id"] = struct3502.FixmedinsCode         // 定点医药机构目录编号
1765
+	inputData["fixmedins_hilist_name"] = struct3502.FixmedinsHilistName // 定点医药机构目录名称
1766
+	inputData["fixmedins_bchno"] = struct3502.FixmedinsBchno            // 人员编号 (来自1101接口返回)
1767
+	inputData["pric"] = struct3502.Pric                                 // 人员编号 (来自1101接口返回)
1768
+	inputData["cnt"] = struct3502.Cnt                                   // 人员编号 (来自1101接口返回)
1769
+	inputData["rx_flag"] = struct3502.RxFlag                            //
1773 1770
 
1774 1771
 	inputData["inv_chg_time"] = struct3502.InvChgTime // 人员编号 (来自1101接口返回)
1775 1772
 	inputData["inv_chg_opter_name"] = ""              // 人员编号 (来自1101接口返回)
@@ -1780,7 +1777,7 @@ func Jsyb3502(struct3502 models.Struct3502) (string, string) {
1780 1777
 	feedetail := make([]map[string]interface{}, 0)
1781 1778
 	druginputData := make(map[string]interface{})
1782 1779
 	druginputData["drug_trac_codg"] = struct3502.DrugTracCodg
1783
-	feedetail = append(feedetail,druginputData)
1780
+	feedetail = append(feedetail, druginputData)
1784 1781
 	inputData["drugtracinfo"] = feedetail
1785 1782
 	input["invinfo"] = inputData
1786 1783
 	inputMessage["input"] = input //交易输入
@@ -1886,11 +1883,11 @@ func Jsyb3505(struct3505 models.Struct3505) (string, string) {
1886 1883
 	inputMessage := SetJSInputMessage(timestamp, struct3505.OrgName, struct3505.Opter, struct3505.Code, struct3505.InsuplcAdmdvs, struct3505.MdtrtareaAdmvs, struct3505.Cainfo)
1887 1884
 	input := make(map[string]interface{})
1888 1885
 	inputData := make(map[string]interface{})
1889
-	inputMessage["infno"] = "3505"                                  // 交易编码
1890
-	inputData["med_list_codg"] = struct3505.MedListCodg             // 定点医药机构目录编号
1891
-	inputData["fixmedins_hilist_id"] = struct3505.FixmedinsHilistId // 定点医药机构目录编号
1892
-	inputData["fixmedins_hilist_name"] = struct3505.FixmedinsHilistName         // 定点医药机构目录名称
1893
-	inputData["fixmedins_bchno"] = struct3505.FixmedinsBchno        // 人员编号 (来自1101接口返回)
1886
+	inputMessage["infno"] = "3505"                                      // 交易编码
1887
+	inputData["med_list_codg"] = struct3505.MedListCodg                 // 定点医药机构目录编号
1888
+	inputData["fixmedins_hilist_id"] = struct3505.FixmedinsHilistId     // 定点医药机构目录编号
1889
+	inputData["fixmedins_hilist_name"] = struct3505.FixmedinsHilistName // 定点医药机构目录名称
1890
+	inputData["fixmedins_bchno"] = struct3505.FixmedinsBchno            // 人员编号 (来自1101接口返回)
1894 1891
 
1895 1892
 	inputData["prsc_dr_cert_type"] = struct3505.PrscDrCertType // 人员编号 (来自1101接口返回)
1896 1893
 	inputData["prsc_dr_certno"] = struct3505.PrscDrCertno      // 人员编号 (来自1101接口返回)
@@ -1932,11 +1929,11 @@ func Jsyb3505(struct3505 models.Struct3505) (string, string) {
1932 1929
 	//input["selinfo"] = inputData
1933 1930
 	feedetail := make([]map[string]interface{}, 0)
1934 1931
 
1935
-	codes := strings.Split(struct3505.DrugTracCodg,",")
1936
-	for _,item := range codes{
1932
+	codes := strings.Split(struct3505.DrugTracCodg, ",")
1933
+	for _, item := range codes {
1937 1934
 		druginputData := make(map[string]interface{})
1938 1935
 		druginputData["drug_trac_codg"] = item
1939
-		feedetail = append(feedetail,druginputData)
1936
+		feedetail = append(feedetail, druginputData)
1940 1937
 	}
1941 1938
 	inputData["drugtracinfo"] = feedetail
1942 1939
 	input["selinfo"] = inputData
@@ -1958,11 +1955,11 @@ func Jsyb3506(struct3506 models.Struct3506) (string, string) {
1958 1955
 	inputMessage := SetJSInputMessage(timestamp, struct3506.OrgName, struct3506.Opter, struct3506.Code, struct3506.InsuplcAdmdvs, struct3506.MdtrtareaAdmvs, struct3506.Cainfo)
1959 1956
 	input := make(map[string]interface{})
1960 1957
 	inputData := make(map[string]interface{})
1961
-	inputMessage["infno"] = "3506"                                  // 交易编码
1962
-	inputData["med_list_codg"] = struct3506.MedListCodg             // 定点医药机构目录编号
1963
-	inputData["fixmedins_hilist_id"] = struct3506.FixmedinsHilistId // 定点医药机构目录编号
1964
-	inputData["fixmedins_hilist_name"] = struct3506.FixmedinsHilistName         // 定点医药机构目录名称
1965
-	inputData["fixmedins_bchno"] = struct3506.FixmedinsBchno        // 人员编号 (来自1101接口返回)
1958
+	inputMessage["infno"] = "3506"                                      // 交易编码
1959
+	inputData["med_list_codg"] = struct3506.MedListCodg                 // 定点医药机构目录编号
1960
+	inputData["fixmedins_hilist_id"] = struct3506.FixmedinsHilistId     // 定点医药机构目录编号
1961
+	inputData["fixmedins_hilist_name"] = struct3506.FixmedinsHilistName // 定点医药机构目录名称
1962
+	inputData["fixmedins_bchno"] = struct3506.FixmedinsBchno            // 人员编号 (来自1101接口返回)
1966 1963
 
1967 1964
 	inputData["setl_id"] = struct3506.SetlId                       // 人员编号 (来自1101接口返回)
1968 1965
 	inputData["psn_no"] = struct3506.PsnNo                         // 人员编号 (来自1101接口返回)
@@ -1983,11 +1980,11 @@ func Jsyb3506(struct3506 models.Struct3506) (string, string) {
1983 1980
 
1984 1981
 	feedetail := make([]map[string]interface{}, 0)
1985 1982
 
1986
-	codes := strings.Split(struct3506.DrugTracCodg,",")
1987
-	for _,item := range codes{
1983
+	codes := strings.Split(struct3506.DrugTracCodg, ",")
1984
+	for _, item := range codes {
1988 1985
 		druginputData := make(map[string]interface{})
1989 1986
 		druginputData["drug_trac_codg"] = item
1990
-		feedetail = append(feedetail,druginputData)
1987
+		feedetail = append(feedetail, druginputData)
1991 1988
 	}
1992 1989
 	//input["drugtracinfo"] = feedetail
1993 1990
 	//input["drugtracinfo"] = struct3506.DrugTracCodg
@@ -2011,9 +2008,9 @@ func Jsyb3507(struct3507 models.Struct3507) (string, string) {
2011 2008
 	inputMessage := SetJSInputMessage(timestamp, struct3507.OrgName, struct3507.Opter, struct3507.FixmedinsCode, struct3507.InsuplcAdmdvs, struct3507.MdtrtareaAdmvs, struct3507.Cainfo)
2012 2009
 	input := make(map[string]interface{})
2013 2010
 	inputData := make(map[string]interface{})
2014
-	inputMessage["infno"] = "3507"                          // 交易编码
2011
+	inputMessage["infno"] = "3507"                           // 交易编码
2015 2012
 	inputData["fixmedins_bchno"] = struct3507.FixmedinsBchno // 人员编号 (来自1101接口返回)
2016
-	inputData["inv_data_type"] = struct3507.InvDataType     // 人员编号 (来自1101接口返回)
2013
+	inputData["inv_data_type"] = struct3507.InvDataType      // 人员编号 (来自1101接口返回)
2017 2014
 
2018 2015
 	input["data"] = inputData
2019 2016
 	inputMessage["input"] = input //交易输入
@@ -2027,6 +2024,308 @@ func Jsyb3507(struct3507 models.Struct3507) (string, string) {
2027 2024
 	struct3507.RequestUrl = struct3507.RequestUrl + "3507"
2028 2025
 	return HttpRequest(struct3507.RequestUrl, struct3507.AccessKey, struct3507.SecretKey, timestamp, string(bytesData)), string(bytesData)
2029 2026
 
2027
+}
2028
+func Jsyb3508(struct3508 models.Struct3508) (string, string) {
2029
+	timestamp := time.Now().Unix()
2030
+	// 生成输入报文
2031
+	inputMessage := SetJSInputMessage(timestamp, struct3508.OrgName, struct3508.Opter, struct3508.FixmedinsCode, struct3508.InsuplcAdmdvs, struct3508.MdtrtareaAdmvs, struct3508.Cainfo)
2032
+	input := make(map[string]interface{})
2033
+	inputData := make(map[string]interface{})
2034
+	inputMessage["infno"] = "3508"
2035
+	inputData["fixmedins_code"] = struct3508.FixmedinsCode
2036
+	inputData["medins_list_codg"] = struct3508.MedListCodg
2037
+	inputData["fixmedins_bchno"] = ""
2038
+	inputData["begndate"] = struct3508.Begndate
2039
+	inputData["enddate"] = struct3508.Enddate
2040
+
2041
+	inputData["medins_prod_inv_no"] = ""
2042
+	inputData["medins_list_name"] = ""
2043
+	inputData["rx_flag"] = ""
2044
+	inputData["list_sp_item_flag"] = ""
2045
+	inputData["trdn_flag"] = ""
2046
+	inputData["invdate"] = ""
2047
+	inputData["manu_lotnum"] = ""
2048
+	inputData["manu_date"] = ""
2049
+	inputData["expy_end"] = ""
2050
+	inputData["memo"] = ""
2051
+	inputData["vali_flag"] = ""
2052
+	inputData["rid"] = ""
2053
+	inputData["crter_id"] = ""
2054
+	inputData["crter_name"] = ""
2055
+	inputData["crte_optins_no"] = ""
2056
+	inputData["opter_id"] = ""
2057
+	inputData["opter_name"] = ""
2058
+	inputData["optins_no"] = ""
2059
+	inputData["poolarea_no"] = ""
2060
+	inputData["fixmedins_bchno"] = ""
2061
+	inputData["inv_data_type"] = ""
2062
+	input["data"] = inputData
2063
+	inputMessage["input"] = input //交易输入
2064
+
2065
+	bytesData, err := json.Marshal(inputMessage)
2066
+	fmt.Println(string(bytesData))
2067
+	if err != nil {
2068
+		fmt.Println(err.Error())
2069
+		return err.Error(), ""
2070
+	}
2071
+	struct3508.RequestUrl = struct3508.RequestUrl + "3508"
2072
+	return HttpRequest(struct3508.RequestUrl, struct3508.AccessKey, struct3508.SecretKey, timestamp, string(bytesData)), string(bytesData)
2073
+
2074
+}
2075
+func Jsyb3509(struct3509 models.Struct3509) (string, string) {
2076
+	timestamp := time.Now().Unix()
2077
+	// 生成输入报文
2078
+	inputMessage := SetJSInputMessage(timestamp, struct3509.OrgName, struct3509.Opter, struct3509.FixmedinsCode, struct3509.InsuplcAdmdvs, struct3509.MdtrtareaAdmvs, struct3509.Cainfo)
2079
+	input := make(map[string]interface{})
2080
+	inputData := make(map[string]interface{})
2081
+	inputMessage["infno"] = "3509"
2082
+	inputData["fixmedins_code"] = struct3509.FixmedinsCode
2083
+	//inputData["med_list_codg"] = struct3509.MedinsListCodg
2084
+	inputData["medins_list_codg"] = struct3509.MedListCodg
2085
+
2086
+	inputData["fixmedins_bchno"] = ""
2087
+	inputData["begndate"] = struct3509.Begndate
2088
+	inputData["enddate"] = struct3509.Enddate
2089
+	inputData["medins_prod_inv_no"] = ""
2090
+	inputData["medins_list_name"] = ""
2091
+	inputData["rx_flag"] = ""
2092
+	inputData["list_sp_item_flag"] = ""
2093
+	inputData["trdn_flag"] = ""
2094
+	inputData["invdate"] = ""
2095
+	inputData["manu_lotnum"] = ""
2096
+	inputData["manu_date"] = ""
2097
+	inputData["expy_end"] = ""
2098
+	inputData["memo"] = ""
2099
+	inputData["vali_flag"] = ""
2100
+	inputData["rid"] = ""
2101
+
2102
+	inputData["crter_id"] = ""
2103
+	inputData["crter_name"] = ""
2104
+	inputData["crte_optins_no"] = ""
2105
+	inputData["opter_id"] = ""
2106
+	inputData["opter_name"] = ""
2107
+	inputData["optins_no"] = ""
2108
+	inputData["poolarea_no"] = ""
2109
+
2110
+	inputData["fixmedins_bchno"] = ""
2111
+	inputData["inv_data_type"] = ""
2112
+
2113
+	input["data"] = inputData
2114
+	inputMessage["input"] = input //交易输入
2115
+
2116
+	bytesData, err := json.Marshal(inputMessage)
2117
+	fmt.Println(string(bytesData))
2118
+	if err != nil {
2119
+		fmt.Println(err.Error())
2120
+		return err.Error(), ""
2121
+	}
2122
+	struct3509.RequestUrl = struct3509.RequestUrl + "3509"
2123
+	return HttpRequest(struct3509.RequestUrl, struct3509.AccessKey, struct3509.SecretKey, timestamp, string(bytesData)), string(bytesData)
2124
+
2125
+}
2126
+func Jsyb3510(struct3510 models.Struct3510) (string, string) {
2127
+	timestamp := time.Now().Unix()
2128
+	// 生成输入报文
2129
+	inputMessage := SetJSInputMessage(timestamp, struct3510.OrgName, struct3510.Opter, struct3510.FixmedinsCode, struct3510.InsuplcAdmdvs, struct3510.MdtrtareaAdmvs, struct3510.Cainfo)
2130
+	input := make(map[string]interface{})
2131
+	inputData := make(map[string]interface{})
2132
+	inputMessage["infno"] = "3510"
2133
+	inputData["fixmedins_code"] = struct3510.FixmedinsCode
2134
+	//inputData["medins_list_codg"] = struct3510.MedinsListCodg
2135
+	inputData["medins_list_codg"] = struct3510.MedListCodg
2136
+
2137
+	inputData["fixmedins_bchno"] = ""
2138
+	inputData["begndate"] = struct3510.Begndate
2139
+	inputData["enddate"] = struct3510.Enddate
2140
+	inputData["medins_prod_inv_no"] = ""
2141
+	inputData["medins_list_name"] = ""
2142
+	inputData["rx_flag"] = ""
2143
+	inputData["list_sp_item_flag"] = ""
2144
+	inputData["trdn_flag"] = ""
2145
+	inputData["invdate"] = ""
2146
+	inputData["manu_lotnum"] = ""
2147
+	inputData["manu_date"] = ""
2148
+	inputData["expy_end"] = ""
2149
+	inputData["memo"] = ""
2150
+	inputData["vali_flag"] = ""
2151
+	inputData["rid"] = ""
2152
+
2153
+	inputData["crter_id"] = ""
2154
+	inputData["crter_name"] = ""
2155
+	inputData["crte_optins_no"] = ""
2156
+	inputData["opter_id"] = ""
2157
+	inputData["opter_name"] = ""
2158
+	inputData["optins_no"] = ""
2159
+	inputData["poolarea_no"] = ""
2160
+
2161
+	inputData["fixmedins_bchno"] = ""
2162
+	inputData["inv_data_type"] = ""
2163
+
2164
+	input["data"] = inputData
2165
+	inputMessage["input"] = input //交易输入
2166
+
2167
+	bytesData, err := json.Marshal(inputMessage)
2168
+	fmt.Println(string(bytesData))
2169
+	if err != nil {
2170
+		fmt.Println(err.Error())
2171
+		return err.Error(), ""
2172
+	}
2173
+	struct3510.RequestUrl = struct3510.RequestUrl + "3510"
2174
+	return HttpRequest(struct3510.RequestUrl, struct3510.AccessKey, struct3510.SecretKey, timestamp, string(bytesData)), string(bytesData)
2175
+
2176
+}
2177
+func Jsyb3511(struct3511 models.Struct3511) (string, string) {
2178
+	timestamp := time.Now().Unix()
2179
+	// 生成输入报文
2180
+	inputMessage := SetJSInputMessage(timestamp, struct3511.OrgName, struct3511.Opter, struct3511.FixmedinsCode, struct3511.InsuplcAdmdvs, struct3511.MdtrtareaAdmvs, struct3511.Cainfo)
2181
+	input := make(map[string]interface{})
2182
+	inputData := make(map[string]interface{})
2183
+	inputMessage["infno"] = "3511"
2184
+	inputData["fixmedins_code"] = struct3511.FixmedinsCode
2185
+	//inputData["medins_list_codg"] = struct3511.MedinsListCodg
2186
+	inputData["medins_list_codg"] = struct3511.MedListCodg
2187
+
2188
+	inputData["fixmedins_bchno"] = ""
2189
+	inputData["begndate"] = struct3511.Begndate
2190
+	inputData["enddate"] = struct3511.Enddate
2191
+	inputData["medins_prod_inv_no"] = ""
2192
+	inputData["medins_list_name"] = ""
2193
+	inputData["rx_flag"] = ""
2194
+	inputData["list_sp_item_flag"] = ""
2195
+	inputData["trdn_flag"] = ""
2196
+	inputData["invdate"] = ""
2197
+	inputData["manu_lotnum"] = ""
2198
+	inputData["manu_date"] = ""
2199
+	inputData["expy_end"] = ""
2200
+	inputData["memo"] = ""
2201
+	inputData["vali_flag"] = ""
2202
+	inputData["rid"] = ""
2203
+
2204
+	inputData["crter_id"] = ""
2205
+	inputData["crter_name"] = ""
2206
+	inputData["crte_optins_no"] = ""
2207
+	inputData["opter_id"] = ""
2208
+	inputData["opter_name"] = ""
2209
+	inputData["optins_no"] = ""
2210
+	inputData["poolarea_no"] = ""
2211
+
2212
+	inputData["fixmedins_bchno"] = ""
2213
+	inputData["inv_data_type"] = ""
2214
+
2215
+	input["data"] = inputData
2216
+	inputMessage["input"] = input //交易输入
2217
+
2218
+	bytesData, err := json.Marshal(inputMessage)
2219
+	fmt.Println(string(bytesData))
2220
+	if err != nil {
2221
+		fmt.Println(err.Error())
2222
+		return err.Error(), ""
2223
+	}
2224
+	struct3511.RequestUrl = struct3511.RequestUrl + "3511"
2225
+	return HttpRequest(struct3511.RequestUrl, struct3511.AccessKey, struct3511.SecretKey, timestamp, string(bytesData)), string(bytesData)
2226
+
2227
+}
2228
+func Jsyb3512(struct3512 models.Struct3512) (string, string) {
2229
+	timestamp := time.Now().Unix()
2230
+	// 生成输入报文
2231
+	inputMessage := SetJSInputMessage(timestamp, struct3512.OrgName, struct3512.Opter, struct3512.FixmedinsCode, struct3512.InsuplcAdmdvs, struct3512.MdtrtareaAdmvs, struct3512.Cainfo)
2232
+	input := make(map[string]interface{})
2233
+	inputData := make(map[string]interface{})
2234
+	inputMessage["infno"] = "3512"
2235
+	inputData["fixmedins_code"] = struct3512.FixmedinsCode
2236
+	//inputData["medins_list_codg"] = struct3512.MedinsListCodg
2237
+	inputData["medins_list_codg"] = struct3512.MedListCodg
2238
+	inputData["fixmedins_bchno"] = ""
2239
+	inputData["begndate"] = struct3512.Begndate
2240
+	inputData["enddate"] = struct3512.Enddate
2241
+	inputData["medins_prod_inv_no"] = ""
2242
+	inputData["medins_list_name"] = ""
2243
+	inputData["rx_flag"] = ""
2244
+	inputData["list_sp_item_flag"] = ""
2245
+	inputData["trdn_flag"] = ""
2246
+	inputData["invdate"] = ""
2247
+	inputData["manu_lotnum"] = ""
2248
+	inputData["manu_date"] = ""
2249
+	inputData["expy_end"] = ""
2250
+	inputData["memo"] = ""
2251
+	inputData["vali_flag"] = ""
2252
+	inputData["rid"] = ""
2253
+
2254
+	inputData["crter_id"] = ""
2255
+	inputData["crter_name"] = ""
2256
+	inputData["crte_optins_no"] = ""
2257
+	inputData["opter_id"] = ""
2258
+	inputData["opter_name"] = ""
2259
+	inputData["optins_no"] = ""
2260
+	inputData["poolarea_no"] = ""
2261
+
2262
+	inputData["fixmedins_bchno"] = ""
2263
+	inputData["inv_data_type"] = ""
2264
+
2265
+	input["data"] = inputData
2266
+	inputMessage["input"] = input //交易输入
2267
+
2268
+	bytesData, err := json.Marshal(inputMessage)
2269
+	fmt.Println(string(bytesData))
2270
+	if err != nil {
2271
+		fmt.Println(err.Error())
2272
+		return err.Error(), ""
2273
+	}
2274
+	struct3512.RequestUrl = struct3512.RequestUrl + "3512"
2275
+	return HttpRequest(struct3512.RequestUrl, struct3512.AccessKey, struct3512.SecretKey, timestamp, string(bytesData)), string(bytesData)
2276
+
2277
+}
2278
+func Jsyb3513(struct3513 models.Struct3513) (string, string) {
2279
+	timestamp := time.Now().Unix()
2280
+	// 生成输入报文
2281
+	inputMessage := SetJSInputMessage(timestamp, struct3513.OrgName, struct3513.Opter, struct3513.FixmedinsCode, struct3513.InsuplcAdmdvs, struct3513.MdtrtareaAdmvs, struct3513.Cainfo)
2282
+	input := make(map[string]interface{})
2283
+	inputData := make(map[string]interface{})
2284
+	inputMessage["infno"] = "3513"
2285
+	inputData["fixmedins_code"] = struct3513.FixmedinsCode
2286
+	//inputData["medins_list_codg"] = struct3513.MedinsListCodg
2287
+	inputData["medins_list_codg"] = struct3513.MedListCodg
2288
+
2289
+	inputData["fixmedins_bchno"] = ""
2290
+	inputData["begndate"] = struct3513.Begndate
2291
+	inputData["enddate"] = struct3513.Enddate
2292
+	inputData["medins_prod_inv_no"] = ""
2293
+	inputData["med_list_codg"] = ""
2294
+	inputData["medins_list_name"] = ""
2295
+	inputData["rx_flag"] = ""
2296
+	inputData["list_sp_item_flag"] = ""
2297
+	inputData["trdn_flag"] = ""
2298
+	inputData["invdate"] = ""
2299
+	inputData["manu_lotnum"] = ""
2300
+	inputData["manu_date"] = ""
2301
+	inputData["expy_end"] = ""
2302
+	inputData["memo"] = ""
2303
+	inputData["vali_flag"] = ""
2304
+	inputData["rid"] = ""
2305
+
2306
+	inputData["crter_id"] = ""
2307
+	inputData["crter_name"] = ""
2308
+	inputData["crte_optins_no"] = ""
2309
+	inputData["opter_id"] = ""
2310
+	inputData["opter_name"] = ""
2311
+	inputData["optins_no"] = ""
2312
+	inputData["poolarea_no"] = ""
2313
+
2314
+	inputData["fixmedins_bchno"] = ""
2315
+	inputData["inv_data_type"] = ""
2316
+
2317
+	input["data"] = inputData
2318
+	inputMessage["input"] = input //交易输入
2319
+
2320
+	bytesData, err := json.Marshal(inputMessage)
2321
+	fmt.Println(string(bytesData))
2322
+	if err != nil {
2323
+		fmt.Println(err.Error())
2324
+		return err.Error(), ""
2325
+	}
2326
+	struct3513.RequestUrl = struct3513.RequestUrl + "3513"
2327
+	return HttpRequest(struct3513.RequestUrl, struct3513.AccessKey, struct3513.SecretKey, timestamp, string(bytesData)), string(bytesData)
2328
+
2030 2329
 }
2031 2330
 
2032 2331
 // 对账权限查询
@@ -2617,7 +2916,6 @@ func Jxyb3277(stmt_mon string, org_name string, doctor string, fixmedins_code st
2617 2916
 	return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3277"), string(bytesData)
2618 2917
 }
2619 2918
 
2620
-
2621 2919
 func Jsyb1318(code string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, request_url string, access_key string, cainfo string) (string, string) {
2622 2920
 	// 生成签名
2623 2921
 	timestamp := time.Now().Unix()
@@ -2626,20 +2924,20 @@ func Jsyb1318(code string, org_name string, doctor string, fixmedins_code string
2626 2924
 	input := make(map[string]interface{})
2627 2925
 	inputData := make(map[string]interface{})
2628 2926
 	inputMessage["infno"] = "1318" // 交易编码
2629
-	inputData["query_date"] =  ""
2630
-	inputData["hilist_code"] =  code
2631
-	inputData["hilist_lmtpric_type"] =  ""
2632
-	inputData["overlmt_dspo_way"] =  ""
2633
-	inputData["insu_admdvs"] =  ""
2634
-	inputData["begndate"] =  ""
2635
-	inputData["enddate"] =  ""
2636
-	inputData["vali_flag"] =  ""
2637
-	inputData["rid"] =  ""
2638
-	inputData["tabname"] =  ""
2639
-	inputData["poolarea_no"] =  ""
2640
-	inputData["updt_time"] =  "2024-03-11"
2641
-	inputData["page_num"] =  "1"
2642
-	inputData["page_size"] =  "100"
2927
+	inputData["query_date"] = ""
2928
+	inputData["hilist_code"] = code
2929
+	inputData["hilist_lmtpric_type"] = ""
2930
+	inputData["overlmt_dspo_way"] = ""
2931
+	inputData["insu_admdvs"] = ""
2932
+	inputData["begndate"] = ""
2933
+	inputData["enddate"] = ""
2934
+	inputData["vali_flag"] = ""
2935
+	inputData["rid"] = ""
2936
+	inputData["tabname"] = ""
2937
+	inputData["poolarea_no"] = ""
2938
+	inputData["updt_time"] = "2024-03-11"
2939
+	inputData["page_num"] = "1"
2940
+	inputData["page_size"] = "100"
2643 2941
 	input["data"] = inputData
2644 2942
 	inputMessage["input"] = input //交易输入
2645 2943
 	bytesData, err := json.Marshal(inputMessage)

Filskillnaden har hållits tillbaka eftersom den är för stor
+ 1011 - 0
service/nm_service.go