Explorar el Código

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

csx hace 4 años
padre
commit
7fe02ce717
Se han modificado 2 ficheros con 19 adiciones y 19 borrados
  1. 16 16
      controllers/sg/his_api_controller.go
  2. 3 3
      service/gdyb_service.go

+ 16 - 16
controllers/sg/his_api_controller.go Ver fichero

@@ -144,19 +144,19 @@ func (c *HisApiController) GetSettleList() {
144 144
 		struct4101.SetlEndDate = dateEndStr
145 145
 	}
146 146
 
147
-	var rf []*CustomFundPay
147
+	var rf []CustomFundPay
148 148
 	json.Unmarshal([]byte(order.SetlDetail), &rf)
149 149
 
150
-	var tempFunPays []*service.CustomStruct
150
+	var tempFunPays []service.CustomStruct
151 151
 	for _, item := range rf {
152 152
 		var tempFunPay service.CustomStruct
153 153
 		tempFunPay.FundPayamt = item.FundPayamt
154 154
 		tempFunPay.FundPayType = item.FundPayType
155
-		tempFunPays = append(tempFunPays, &tempFunPay)
155
+		tempFunPays = append(tempFunPays, tempFunPay)
156 156
 	}
157 157
 	struct4101.CustomStruct = tempFunPays
158 158
 
159
-	var tempOpspdiseinfos []*service.OpspdiseinfoStruct
159
+	var tempOpspdiseinfos []service.OpspdiseinfoStruct
160 160
 	var tempOpspdiseinfo service.OpspdiseinfoStruct
161 161
 	var tempOpspdiseinfo2 service.OpspdiseinfoStruct
162 162
 	sickConfig, _ := service.FindDiagnoseById(his.Diagnosis)
@@ -166,13 +166,13 @@ func (c *HisApiController) GetSettleList() {
166 166
 	tempOpspdiseinfo.MaindiagFlag = "1"
167 167
 	tempOpspdiseinfo.OprnOprtCode = ""
168 168
 	tempOpspdiseinfo.OprnOprtName = ""
169
-	tempOpspdiseinfos = append(tempOpspdiseinfos, &tempOpspdiseinfo)
169
+	tempOpspdiseinfos = append(tempOpspdiseinfos, tempOpspdiseinfo)
170 170
 	tempOpspdiseinfo2.DiagCode = sickConfigTwo.CountryCode
171 171
 	tempOpspdiseinfo2.DiagName = sickConfigTwo.CountryContentName
172 172
 	tempOpspdiseinfo2.MaindiagFlag = "2"
173 173
 	tempOpspdiseinfo2.OprnOprtCode = ""
174 174
 	tempOpspdiseinfo2.OprnOprtName = ""
175
-	tempOpspdiseinfos = append(tempOpspdiseinfos, &tempOpspdiseinfo2)
175
+	tempOpspdiseinfos = append(tempOpspdiseinfos, tempOpspdiseinfo2)
176 176
 	struct4101.OpspdiseinfoStruct = tempOpspdiseinfos
177 177
 
178 178
 	var iteminfo service.IteminfoStruct
@@ -434,7 +434,7 @@ func (c *HisApiController) GetSettleList() {
434 434
 
435 435
 	}
436 436
 
437
-	var iteminfoStructs []*service.IteminfoStruct
437
+	var iteminfoStructs []service.IteminfoStruct
438 438
 
439 439
 	if bedCostTotal != 0 {
440 440
 		iteminfo.MedChrgitm = "01"
@@ -443,7 +443,7 @@ func (c *HisApiController) GetSettleList() {
443 443
 		iteminfo.ClaaSumfee = bed_claa_sunmfee
444 444
 		iteminfo.ClabAmt = bed_clab_amt
445 445
 		iteminfo.OthAmt = bed_other_amt
446
-		iteminfoStructs = append(iteminfoStructs, &iteminfo)
446
+		iteminfoStructs = append(iteminfoStructs, iteminfo)
447 447
 	}
448 448
 
449 449
 	if checkCostTotal != 0 {
@@ -453,7 +453,7 @@ func (c *HisApiController) GetSettleList() {
453 453
 		iteminfo.ClaaSumfee = check_claa_sunmfee
454 454
 		iteminfo.ClabAmt = check_clab_amt
455 455
 		iteminfo.OthAmt = check_other_amt
456
-		iteminfoStructs = append(iteminfoStructs, &iteminfo)
456
+		iteminfoStructs = append(iteminfoStructs, iteminfo)
457 457
 
458 458
 	}
459 459
 
@@ -464,7 +464,7 @@ func (c *HisApiController) GetSettleList() {
464 464
 		iteminfo.ClaaSumfee = laboratory_claa_sunmfee
465 465
 		iteminfo.ClabAmt = laboratory_clab_amt
466 466
 		iteminfo.OthAmt = laboratory_other_amt
467
-		iteminfoStructs = append(iteminfoStructs, &iteminfo)
467
+		iteminfoStructs = append(iteminfoStructs, iteminfo)
468 468
 
469 469
 		//struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
470 470
 
@@ -477,7 +477,7 @@ func (c *HisApiController) GetSettleList() {
477 477
 		iteminfo.ClaaSumfee = treat_claa_sunmfee
478 478
 		iteminfo.ClabAmt = treat_clab_amt
479 479
 		iteminfo.OthAmt = treat_other_amt
480
-		iteminfoStructs = append(iteminfoStructs, &iteminfo)
480
+		iteminfoStructs = append(iteminfoStructs, iteminfo)
481 481
 
482 482
 		// (struct4101.IteminfoStruct, iteminfo)
483 483
 
@@ -493,7 +493,7 @@ func (c *HisApiController) GetSettleList() {
493 493
 		iteminfo.ClabAmt = operation_clab_amt
494 494
 		iteminfo.OthAmt = operation_other_amt
495 495
 		//struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
496
-		iteminfoStructs = append(iteminfoStructs, &iteminfo)
496
+		iteminfoStructs = append(iteminfoStructs, iteminfo)
497 497
 
498 498
 	}
499 499
 
@@ -505,7 +505,7 @@ func (c *HisApiController) GetSettleList() {
505 505
 		iteminfo.ClabAmt = material_clab_amt
506 506
 		iteminfo.OthAmt = material_other_amt
507 507
 		//struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
508
-		iteminfoStructs = append(iteminfoStructs, &iteminfo)
508
+		iteminfoStructs = append(iteminfoStructs, iteminfo)
509 509
 
510 510
 	}
511 511
 	if westernMedicineCostTotal != 0 {
@@ -516,7 +516,7 @@ func (c *HisApiController) GetSettleList() {
516 516
 		iteminfo.ClabAmt = westernMedicine_clab_amt
517 517
 		iteminfo.OthAmt = westernMedicine_other_amt
518 518
 		//struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
519
-		iteminfoStructs = append(iteminfoStructs, &iteminfo)
519
+		iteminfoStructs = append(iteminfoStructs, iteminfo)
520 520
 
521 521
 	}
522 522
 	if chineseTraditionalMedicineCostTotal != 0 {
@@ -527,7 +527,7 @@ func (c *HisApiController) GetSettleList() {
527 527
 		iteminfo.ClabAmt = westernMedicine_clab_amt
528 528
 		iteminfo.OthAmt = westernMedicine_other_amt
529 529
 		//struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
530
-		iteminfoStructs = append(iteminfoStructs, &iteminfo)
530
+		iteminfoStructs = append(iteminfoStructs, iteminfo)
531 531
 
532 532
 	}
533 533
 	if otherCostTotal != 0 {
@@ -538,7 +538,7 @@ func (c *HisApiController) GetSettleList() {
538 538
 		iteminfo.ClabAmt = other_clab_amt
539 539
 		iteminfo.OthAmt = other_other_amt
540 540
 		//struct4101.IteminfoStruct = append(struct4101.IteminfoStruct, iteminfo)
541
-		iteminfoStructs = append(iteminfoStructs, &iteminfo)
541
+		iteminfoStructs = append(iteminfoStructs, iteminfo)
542 542
 
543 543
 	}
544 544
 	struct4101.IteminfoStruct = iteminfoStructs

+ 3 - 3
service/gdyb_service.go Ver fichero

@@ -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
 //