소스 검색

Merge branch '20230223_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20230223_xt_api_new_branch

28169 3 주 전
부모
커밋
89a96ce7ab
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 7 7
      controllers/his_api_controller.go

+ 7 - 7
controllers/his_api_controller.go 파일 보기

@@ -10519,7 +10519,7 @@ func (c *HisApiController) GetFaPiaoData() {
10519 10519
 				laboratoryCostSelfTotal = laboratoryCostTotal
10520 10520
 			}
10521 10521
 
10522
-			if item.MedChrgitmType == "05" || item.MedChrgitmType == "14" { //治疗费
10522
+			if item.MedChrgitmType == "05" || item.MedChrgitmType == "14" || item.MedChrgitmType == "201" { //治疗费
10523 10523
 				treatCostTotal, _ = decimal.NewFromFloat(treatCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
10524 10524
 				treatCostSelfTotal = treatCostTotal
10525 10525
 			}
@@ -10529,12 +10529,12 @@ func (c *HisApiController) GetFaPiaoData() {
10529 10529
 				operationCostSelfTotal = treatCostTotal
10530 10530
 			}
10531 10531
 
10532
-			if item.MedChrgitmType == "08" || item.MedChrgitmType == "1402" || item.MedChrgitmType == "1403" || item.MedChrgitmType == "1401" { //材料费
10532
+			if item.MedChrgitmType == "08" || item.MedChrgitmType == "1402" || item.MedChrgitmType == "1403" || item.MedChrgitmType == "1401" || item.MedChrgitmType == "301" { //材料费
10533 10533
 				materialCostTotal, _ = decimal.NewFromFloat(materialCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
10534 10534
 				materialCostSelfTotal = materialCostTotal
10535 10535
 			}
10536 10536
 
10537
-			if item.MedChrgitmType == "09" { //西药费
10537
+			if item.MedChrgitmType == "09" || item.MedChrgitmType == "101" { //西药费
10538 10538
 				westernMedicineCostTotal, _ = decimal.NewFromFloat(westernMedicineCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
10539 10539
 				westernMedicineCostSelfTotal = westernMedicineCostTotal
10540 10540
 			}
@@ -10596,7 +10596,7 @@ func (c *HisApiController) GetFaPiaoData() {
10596 10596
 
10597 10597
 			}
10598 10598
 
10599
-			if item.MedChrgitmType == "05" || item.MedChrgitmType == "14" { //治疗费
10599
+			if item.MedChrgitmType == "05" || item.MedChrgitmType == "14" || item.MedChrgitmType == "201" { //治疗费
10600 10600
 				treatCostTotal, _ = decimal.NewFromFloat(treatCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
10601 10601
 				treatCostSelfTotal, _ = decimal.NewFromFloat(treatCostSelfTotal).Add(decimal.NewFromFloat(item.OverlmtAmt)).Float64()
10602 10602
 				treatCostPartSelfTotal, _ = decimal.NewFromFloat(treatCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()
@@ -10609,19 +10609,19 @@ func (c *HisApiController) GetFaPiaoData() {
10609 10609
 				operationCostPartSelfTotal, _ = decimal.NewFromFloat(operationCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()
10610 10610
 			}
10611 10611
 
10612
-			if item.MedChrgitmType == "08" || item.MedChrgitmType == "1401" || item.MedChrgitmType == "1402" || item.MedChrgitmType == "1403" { //材料费
10612
+			if item.MedChrgitmType == "08" || item.MedChrgitmType == "1401" || item.MedChrgitmType == "1402" || item.MedChrgitmType == "1403" || item.MedChrgitmType == "301" { //材料费
10613 10613
 				materialCostTotal, _ = decimal.NewFromFloat(materialCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
10614 10614
 				materialCostSelfTotal, _ = decimal.NewFromFloat(materialCostSelfTotal).Add(decimal.NewFromFloat(item.OverlmtAmt)).Float64()
10615 10615
 				materialCostPartSelfTotal, _ = decimal.NewFromFloat(materialCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()
10616 10616
 			}
10617 10617
 
10618
-			if item.MedChrgitmType == "07" { //西药费
10618
+			if item.MedChrgitmType == "07" { //护理
10619 10619
 				hiliCostTotal, _ = decimal.NewFromFloat(hiliCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
10620 10620
 				hiliCostSelfTotal, _ = decimal.NewFromFloat(hiliCostSelfTotal).Add(decimal.NewFromFloat(item.OverlmtAmt)).Float64()
10621 10621
 				hiliCostPartSelfTotal, _ = decimal.NewFromFloat(hiliCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()
10622 10622
 			}
10623 10623
 
10624
-			if item.MedChrgitmType == "09" { //西药费
10624
+			if item.MedChrgitmType == "09" || item.MedChrgitmType == "101" { //西药费
10625 10625
 				westernMedicineCostTotal, _ = decimal.NewFromFloat(westernMedicineCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
10626 10626
 				westernMedicineCostSelfTotal, _ = decimal.NewFromFloat(westernMedicineCostSelfTotal).Add(decimal.NewFromFloat(item.OverlmtAmt)).Float64()
10627 10627
 				westernMedicineCostPartSelfTotal, _ = decimal.NewFromFloat(westernMedicineCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()