浏览代码

upodate

master
dengbiao 4 天前
父节点
当前提交
f2f2af3315
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go

+ 5
- 5
app/hdl/institutional_management/egg_energy/hdl_platform_revenue.go 查看文件

@@ -170,17 +170,17 @@ func AddPlatformRevenue(c *gin.Context) {

platformRevenueDataDb := implement.NewPlatformRevenueDataDb(db.Db)
now := time.Now()
hour := now.Hour()
if req.Hours > 24 {
hour = 24
}
//hour := now.Hour()
//if req.Hours > 24 {
// hour = 24
//}

times := req.Hours * 60 / req.Frequency
m := model.PlatformRevenueData{
Kind: req.Kind,
TotalAmount: req.TotalAmount,
BalanceAmount: req.TotalAmount,
Hours: hour,
Hours: req.Hours,
BalanceTimes: times,
Frequency: req.Frequency,
Memo: req.Memo,


正在加载...
取消
保存