|
@@ -10656,13 +10656,24 @@ func (c *HisApiController) GetUploadInfo() {
|
10656
|
10656
|
fmt.Println(item)
|
10657
|
10657
|
if item.Type == 1 { //药品
|
10658
|
10658
|
for _, subItem := range item.HisDoctorAdviceInfo {
|
10659
|
|
- total = total + (subItem.Price * subItem.PrescribingNumber)
|
|
10659
|
+ if subItem.Drug.IsUser != 1 {
|
|
10660
|
+ total = total + (subItem.Price * subItem.PrescribingNumber)
|
|
10661
|
+ }
|
10660
|
10662
|
}
|
|
10663
|
+
|
10661
|
10664
|
}
|
10662
|
10665
|
if item.Type == 2 { //项目
|
10663
|
10666
|
for _, subItem := range item.HisPrescriptionProject {
|
10664
|
|
- cnt, _ := strconv.ParseFloat(subItem.Count, 64)
|
10665
|
|
- total = total + (subItem.Price * cnt)
|
|
10667
|
+ if subItem.Type == 2 {
|
|
10668
|
+ cnt, _ := strconv.ParseFloat(subItem.Count, 64)
|
|
10669
|
+ total = total + (subItem.Price * cnt)
|
|
10670
|
+
|
|
10671
|
+ } else {
|
|
10672
|
+ if subItem.GoodInfo.IsUser != 1 {
|
|
10673
|
+ cnt, _ := strconv.ParseFloat(subItem.Count, 64)
|
|
10674
|
+ total = total + (subItem.Price * cnt)
|
|
10675
|
+ }
|
|
10676
|
+ }
|
10666
|
10677
|
}
|
10667
|
10678
|
}
|
10668
|
10679
|
|