浏览代码

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

csx 4 年前
父节点
当前提交
7fe02ce717
共有 2 个文件被更改,包括 19 次插入19 次删除
  1. 16 16
      controllers/sg/his_api_controller.go
  2. 3 3
      service/gdyb_service.go

+ 16 - 16
controllers/sg/his_api_controller.go 查看文件

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

+ 3 - 3
service/gdyb_service.go 查看文件

2152
 	MedinsFillPsn      string
2152
 	MedinsFillPsn      string
2153
 	IptMedType         string
2153
 	IptMedType         string
2154
 	Age                int64
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
 //