|
@@ -286,10 +286,10 @@ func CentralKitchenForSchoolMyReserveList(userIdentityId int, date, startDate, e |
|
|
dateMap[tmpDateMonth] = &md.CentralKitchenForSchoolMyReserveListRespList{} |
|
|
dateMap[tmpDateMonth] = &md.CentralKitchenForSchoolMyReserveListRespList{} |
|
|
} |
|
|
} |
|
|
dateMap[tmpDateMonth].Month = tmpDateMonth |
|
|
dateMap[tmpDateMonth].Month = tmpDateMonth |
|
|
dateMap[tmpDateMonth].TotalAmount += utils.StrToFloat64(v.Amount) |
|
|
|
|
|
|
|
|
dateMap[tmpDateMonth].TotalAmount = utils.Float64ToStr(utils.StrToFloat64(dateMap[tmpDateMonth].TotalAmount) + utils.StrToFloat64(v.Amount)) |
|
|
totalAmount += utils.StrToFloat64(v.Amount) |
|
|
totalAmount += utils.StrToFloat64(v.Amount) |
|
|
if v.State == enum.CentralKitchenForSchoolUserWithDayStateForCancel { |
|
|
if v.State == enum.CentralKitchenForSchoolUserWithDayStateForCancel { |
|
|
dateMap[tmpDateMonth].RefundTotalAmount += utils.StrToFloat64(v.Amount) |
|
|
|
|
|
|
|
|
dateMap[tmpDateMonth].RefundTotalAmount = utils.Float64ToStr(utils.StrToFloat64(dateMap[tmpDateMonth].RefundTotalAmount) + utils.StrToFloat64(v.Amount)) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|