浏览代码

update 一个圈圈

master
DengBiao 10 个月前
父节点
当前提交
8261ab1f79
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      rule/one_circles/one_circles_sign_in_green_energy_settlement.go

+ 1
- 1
rule/one_circles/one_circles_sign_in_green_energy_settlement.go 查看文件

@@ -200,7 +200,7 @@ func CalcTodayGreenEnergyPriceRises(engine *xorm.Engine, oneCirclesGreenEnergyBa

//2、查找昨日价格
var m model.OneCirclesGreenEnergyPrice
if has, err1 := engine.Where("date =?", now.AddDate(0, 0, -1).Format("2006-01-02")).Desc("hour").Get(&m); err1 != nil || has == false {
if has, err1 := engine.Where("date =?", now.AddDate(0, 0, -1).Format("2006-01-02")).And("hour = 23").Get(&m); err1 != nil || has == false {
err = err1
return
}


正在加载...
取消
保存