Bladeren bron

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

csx 4 jaren geleden
bovenliggende
commit
28e69b5e47
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3 1
      controllers/sz/sz_his_api_controller.go

+ 3 - 1
controllers/sz/sz_his_api_controller.go Bestand weergeven

1764
 				if len(subItem.HisProject.MedicalCode) > 0 {
1764
 				if len(subItem.HisProject.MedicalCode) > 0 {
1765
 					detItemFeeSumamt, _ := strconv.ParseFloat(fmt.Sprintf("%.2f", subItem.Price*float64(subItem.Count)), 64)
1765
 					detItemFeeSumamt, _ := strconv.ParseFloat(fmt.Sprintf("%.2f", subItem.Price*float64(subItem.Count)), 64)
1766
 
1766
 
1767
-					count, _ := strconv.ParseFloat(fmt.Sprintf("%f", subItem.Count), 64)
1767
+					//count, _ := strconv.ParseFloat(fmt.Sprintf("%f", subItem.Count), 64)
1768
+
1769
+					count, _ := strconv.ParseFloat(strconv.FormatInt(subItem.Count, 10), 64)
1768
 					temp := strings.Split(subItem.FeedetlSn, "-")
1770
 					temp := strings.Split(subItem.FeedetlSn, "-")
1769
 					newFl := fmt.Sprintf("%07v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(10000000)) + "-" + temp[1] + "-" + temp[2]
1771
 					newFl := fmt.Sprintf("%07v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(10000000)) + "-" + temp[1] + "-" + temp[2]
1770
 
1772