|
@@ -10814,13 +10814,24 @@ func (c *HisApiController) GetUploadInfo() {
|
10814
|
10814
|
fmt.Println(item)
|
10815
|
10815
|
if item.Type == 1 { //药品
|
10816
|
10816
|
for _, subItem := range item.HisDoctorAdviceInfo {
|
10817
|
|
- total = total + (subItem.Price * subItem.PrescribingNumber)
|
|
10817
|
+ if subItem.Drug.IsUser != 1 {
|
|
10818
|
+ total = total + (subItem.Price * subItem.PrescribingNumber)
|
|
10819
|
+ }
|
10818
|
10820
|
}
|
|
10821
|
+
|
10819
|
10822
|
}
|
10820
|
10823
|
if item.Type == 2 { //项目
|
10821
|
10824
|
for _, subItem := range item.HisPrescriptionProject {
|
10822
|
|
- cnt, _ := strconv.ParseFloat(subItem.Count, 64)
|
10823
|
|
- total = total + (subItem.Price * cnt)
|
|
10825
|
+ if subItem.Type == 2 {
|
|
10826
|
+ cnt, _ := strconv.ParseFloat(subItem.Count, 64)
|
|
10827
|
+ total = total + (subItem.Price * cnt)
|
|
10828
|
+
|
|
10829
|
+ } else {
|
|
10830
|
+ if subItem.GoodInfo.IsUser != 1 {
|
|
10831
|
+ cnt, _ := strconv.ParseFloat(subItem.Count, 64)
|
|
10832
|
+ total = total + (subItem.Price * cnt)
|
|
10833
|
+ }
|
|
10834
|
+ }
|
10824
|
10835
|
}
|
10825
|
10836
|
}
|
10826
|
10837
|
|