Browse Source

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

csx 3 years ago
parent
commit
df78f912f5
2 changed files with 15 additions and 15 deletions
  1. 12 12
      controllers/sg/his_api_controller.go
  2. 3 3
      service/gdyb_service.go

+ 12 - 12
controllers/sg/his_api_controller.go View File

@@ -151,7 +151,7 @@ func (c *HisApiController) GetSettleList() {
151 151
 		var tempFunPay service.CustomStruct
152 152
 		tempFunPay.FundPayamt = item.FundPayamt
153 153
 		tempFunPay.FundPayType = item.FundPayType
154
-		struct4101.CustomStruct = append(struct4101.CustomStruct, tempFunPay)
154
+		struct4101.CustomStruct = append(struct4101.CustomStruct, &tempFunPay)
155 155
 	}
156 156
 	var tempOpspdiseinfo service.OpspdiseinfoStruct
157 157
 	var tempOpspdiseinfo2 service.OpspdiseinfoStruct
@@ -164,14 +164,14 @@ func (c *HisApiController) GetSettleList() {
164 164
 	tempOpspdiseinfo.MaindiagFlag = "1"
165 165
 	tempOpspdiseinfo.OprnOprtCode = ""
166 166
 	tempOpspdiseinfo.OprnOprtName = ""
167
-	struct4101.OpspdiseinfoStruct = append(struct4101.OpspdiseinfoStruct, tempOpspdiseinfo)
167
+	struct4101.OpspdiseinfoStruct = append(struct4101.OpspdiseinfoStruct, &tempOpspdiseinfo)
168 168
 
169 169
 	tempOpspdiseinfo2.DiagCode = sickConfigTwo.CountryCode
170 170
 	tempOpspdiseinfo2.DiagName = sickConfigTwo.CountryContentName
171 171
 	tempOpspdiseinfo2.MaindiagFlag = "2"
172 172
 	tempOpspdiseinfo2.OprnOprtCode = ""
173 173
 	tempOpspdiseinfo2.OprnOprtName = ""
174
-	struct4101.OpspdiseinfoStruct = append(struct4101.OpspdiseinfoStruct, tempOpspdiseinfo2)
174
+	struct4101.OpspdiseinfoStruct = append(struct4101.OpspdiseinfoStruct, &tempOpspdiseinfo2)
175 175
 
176 176
 	var iteminfo service.IteminfoStruct
177 177
 
@@ -439,7 +439,7 @@ func (c *HisApiController) GetSettleList() {
439 439
 		iteminfo.ClaaSumfee = bed_claa_sunmfee
440 440
 		iteminfo.ClabAmt = bed_clab_amt
441 441
 		iteminfo.OthAmt = bed_other_amt
442
-		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
442
+		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, &iteminfo)
443 443
 	}
444 444
 
445 445
 	if checkCostTotal != 0 {
@@ -449,7 +449,7 @@ func (c *HisApiController) GetSettleList() {
449 449
 		iteminfo.ClaaSumfee = check_claa_sunmfee
450 450
 		iteminfo.ClabAmt = check_clab_amt
451 451
 		iteminfo.OthAmt = check_other_amt
452
-		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
452
+		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, &iteminfo)
453 453
 
454 454
 	}
455 455
 
@@ -460,7 +460,7 @@ func (c *HisApiController) GetSettleList() {
460 460
 		iteminfo.ClaaSumfee = laboratory_claa_sunmfee
461 461
 		iteminfo.ClabAmt = laboratory_clab_amt
462 462
 		iteminfo.OthAmt = laboratory_other_amt
463
-		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
463
+		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, &iteminfo)
464 464
 
465 465
 	}
466 466
 
@@ -471,7 +471,7 @@ func (c *HisApiController) GetSettleList() {
471 471
 		iteminfo.ClaaSumfee = treat_claa_sunmfee
472 472
 		iteminfo.ClabAmt = treat_clab_amt
473 473
 		iteminfo.OthAmt = treat_other_amt
474
-		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
474
+		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, &iteminfo)
475 475
 
476 476
 	}
477 477
 
@@ -482,7 +482,7 @@ func (c *HisApiController) GetSettleList() {
482 482
 		iteminfo.ClaaSumfee = operation_claa_sunmfee
483 483
 		iteminfo.ClabAmt = operation_clab_amt
484 484
 		iteminfo.OthAmt = operation_other_amt
485
-		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
485
+		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, &iteminfo)
486 486
 
487 487
 	}
488 488
 
@@ -493,7 +493,7 @@ func (c *HisApiController) GetSettleList() {
493 493
 		iteminfo.ClaaSumfee = material_claa_sunmfee
494 494
 		iteminfo.ClabAmt = material_clab_amt
495 495
 		iteminfo.OthAmt = material_other_amt
496
-		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
496
+		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, &iteminfo)
497 497
 	}
498 498
 	if westernMedicineCostTotal != 0 {
499 499
 		iteminfo.MedChrgitm = "09"
@@ -502,7 +502,7 @@ func (c *HisApiController) GetSettleList() {
502 502
 		iteminfo.ClaaSumfee = westernMedicine_claa_sunmfee
503 503
 		iteminfo.ClabAmt = westernMedicine_clab_amt
504 504
 		iteminfo.OthAmt = westernMedicine_other_amt
505
-		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
505
+		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, &iteminfo)
506 506
 	}
507 507
 	if chineseTraditionalMedicineCostTotal != 0 {
508 508
 		iteminfo.MedChrgitm = "11"
@@ -511,7 +511,7 @@ func (c *HisApiController) GetSettleList() {
511 511
 		iteminfo.ClaaSumfee = westernMedicine_claa_sunmfee
512 512
 		iteminfo.ClabAmt = westernMedicine_clab_amt
513 513
 		iteminfo.OthAmt = westernMedicine_other_amt
514
-		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
514
+		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, &iteminfo)
515 515
 	}
516 516
 	if otherCostTotal != 0 {
517 517
 		iteminfo.MedChrgitm = "14"
@@ -520,7 +520,7 @@ func (c *HisApiController) GetSettleList() {
520 520
 		iteminfo.ClaaSumfee = other_claa_sunmfee
521 521
 		iteminfo.ClabAmt = other_clab_amt
522 522
 		iteminfo.OthAmt = other_other_amt
523
-		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
523
+		struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, &iteminfo)
524 524
 	}
525 525
 	struct4101.Ntly = "中国"
526 526
 	struct4101.AdmCaty = "A03.06"

+ 3 - 3
service/gdyb_service.go View File

@@ -2152,9 +2152,9 @@ type Struct4101 struct {
2152 2152
 	MedinsFillPsn      string
2153 2153
 	IptMedType         string
2154 2154
 	Age                int64
2155
-	CustomStruct       []CustomStruct
2156
-	OpspdiseinfoStruct []OpspdiseinfoStruct
2157
-	IteminfoStruct     []IteminfoStruct
2155
+	CustomStruct       []*CustomStruct
2156
+	OpspdiseinfoStruct []*OpspdiseinfoStruct
2157
+	IteminfoStruct     []*IteminfoStruct
2158 2158
 }
2159 2159
 
2160 2160
 //