This commit is contained in:
2023-11-03 17:07:41 +08:00
parent a559492f8e
commit 265ae82fb6
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -9,6 +9,7 @@ import (
"hospital-admin-api/api/service"
"hospital-admin-api/global"
"hospital-admin-api/utils"
"math"
"strconv"
)
@@ -293,9 +294,12 @@ func (r *OrderInquiry) GetOrderInquiryForAccountPage(c *gin.Context) {
if v.InquiryStatus == 4 || v.InquiryStatus == 5 {
entryStatus := 2
v.EntryStatus = &entryStatus
v.DoctorAmount = math.Floor(v.AmountTotal*0.75*100000) / 100000 // 医生收益
}
if v.InquiryStatus == 6 {
v.DoctorAmount = math.Floor(v.AmountTotal*0.75*100000) / 100000 // 医生收益
if v.StatisticsStatus == 1 {
entryStatus := 1
v.EntryStatus = &entryStatus