Procházet zdrojové kódy

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

csx před 3 roky
rodič
revize
928216d9b8
1 změnil soubory, kde provedl 14 přidání a 14 odebrání
  1. 14 14
      controllers/zh/zh_his_api_controller.go

+ 14 - 14
controllers/zh/zh_his_api_controller.go Zobrazit soubor

@@ -1086,7 +1086,7 @@ func (c *ZHHisApiController) GetSettleInfo() {
1086 1086
 
1087 1087
 	miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
1088 1088
 
1089
-	allTotal := fmt.Sprintf("%.2f", order.MedfeeSumamt)
1089
+	allTotal := fmt.Sprintf("%.4f", order.MedfeeSumamt)
1090 1090
 	roles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
1091 1091
 
1092 1092
 	var rf []*ResultFive
@@ -1406,10 +1406,10 @@ func (c *ZHHisApiController) GetUploadInfo() {
1406 1406
 						//var randNum int
1407 1407
 						//randNum = rand.Intn(10000) + 1000
1408 1408
 						cus := &models.NewCustom{
1409
-							DetItemFeeSumamt: fmt.Sprintf("%.2f", subItem.Price*subItem.PrescribingNumber),
1410
-							Cut:              fmt.Sprintf("%.2f", subItem.PrescribingNumber),
1409
+							DetItemFeeSumamt: fmt.Sprintf("%.4f", subItem.Price*subItem.PrescribingNumber),
1410
+							Cut:              fmt.Sprintf("%.4f", subItem.PrescribingNumber),
1411 1411
 							FeedetlSn:        subItem.FeedetlSn,
1412
-							Price:            fmt.Sprintf("%.2f", subItem.Price),
1412
+							Price:            fmt.Sprintf("%.4f", subItem.Price),
1413 1413
 							MedListCodg:      subItem.BaseDrugLib.MedicalInsuranceNumber,
1414 1414
 							HospApprFlag:     subItem.BaseDrugLib.HospApprFlag,
1415 1415
 						}
@@ -1427,10 +1427,10 @@ func (c *ZHHisApiController) GetUploadInfo() {
1427 1427
 						if len(subItem.HisProject.MedicalCode) > 0 {
1428 1428
 							cnt, _ := strconv.ParseFloat(subItem.Count, 64)
1429 1429
 							cus := &models.NewCustom{
1430
-								DetItemFeeSumamt: fmt.Sprintf("%.2f", subItem.Price*cnt),
1431
-								Cut:              fmt.Sprintf("%.2f", cnt),
1430
+								DetItemFeeSumamt: fmt.Sprintf("%.4f", subItem.Price*cnt),
1431
+								Cut:              fmt.Sprintf("%.4f", cnt),
1432 1432
 								FeedetlSn:        subItem.FeedetlSn,
1433
-								Price:            fmt.Sprintf("%.2f", float64(subItem.Price)),
1433
+								Price:            fmt.Sprintf("%.4f", float64(subItem.Price)),
1434 1434
 								MedListCodg:      subItem.HisProject.MedicalCode,
1435 1435
 								HospApprFlag:     -1,
1436 1436
 							}
@@ -1441,10 +1441,10 @@ func (c *ZHHisApiController) GetUploadInfo() {
1441 1441
 							cnt, _ := strconv.ParseFloat(subItem.Count, 64)
1442 1442
 
1443 1443
 							cus := &models.NewCustom{
1444
-								DetItemFeeSumamt: fmt.Sprintf("%.2f", subItem.Price*cnt),
1445
-								Cut:              fmt.Sprintf("%.2f", cnt),
1444
+								DetItemFeeSumamt: fmt.Sprintf("%.4f", subItem.Price*cnt),
1445
+								Cut:              fmt.Sprintf("%.4f", cnt),
1446 1446
 								FeedetlSn:        subItem.FeedetlSn,
1447
-								Price:            fmt.Sprintf("%.2f", float64(subItem.Price)),
1447
+								Price:            fmt.Sprintf("%.4f", float64(subItem.Price)),
1448 1448
 								MedListCodg:      subItem.GoodInfo.MedicalInsuranceNumber,
1449 1449
 								HospApprFlag:     -1,
1450 1450
 							}
@@ -1457,10 +1457,10 @@ func (c *ZHHisApiController) GetUploadInfo() {
1457 1457
 			for _, subItem := range item.HisAdditionalCharge {
1458 1458
 				if len(subItem.XtHisAddtionConfig.Code) > 0 {
1459 1459
 					cus := &models.NewCustom{
1460
-						DetItemFeeSumamt: fmt.Sprintf("%.2f", subItem.Price*float64(subItem.Count)),
1461
-						Cut:              fmt.Sprintf("%.2f", float64(subItem.Count)),
1460
+						DetItemFeeSumamt: fmt.Sprintf("%.4f", subItem.Price*float64(subItem.Count)),
1461
+						Cut:              fmt.Sprintf("%.4f", float64(subItem.Count)),
1462 1462
 						FeedetlSn:        subItem.FeedetlSn,
1463
-						Price:            fmt.Sprintf("%.2f", float64(subItem.Price)),
1463
+						Price:            fmt.Sprintf("%.4f", float64(subItem.Price)),
1464 1464
 						MedListCodg:      subItem.XtHisAddtionConfig.Code,
1465 1465
 						HospApprFlag:     -1,
1466 1466
 					}
@@ -1638,7 +1638,7 @@ func (c *ZHHisApiController) GetUploadInfo() {
1638 1638
 						total = total + (subItem.Price * float64(subItem.Count))
1639 1639
 					}
1640 1640
 				}
1641
-				allTotal := fmt.Sprintf("%.2f", total)
1641
+				allTotal := fmt.Sprintf("%.4f", total)
1642 1642
 				totals, _ := strconv.ParseFloat(allTotal, 64)
1643 1643
 
1644 1644
 				order := &models.HisOrder{