2 Commits c480cca962 ... 43eef59d96

Author SHA1 Message Date
  陈少旭 43eef59d96 Merge branch '20230223_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20230223_xt_api_new_branch 2 months ago
  陈少旭 3187469ea5 提交代码 2 months ago
1 changed files with 14 additions and 3 deletions
  1. 14 3
      controllers/his_api_controller.go

+ 14 - 3
controllers/his_api_controller.go View File

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