瀏覽代碼

更新

master
huangjiajun 5 月之前
父節點
當前提交
372d7c67eb
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      rule/consume_integral_settlement.go

+ 2
- 2
rule/consume_integral_settlement.go 查看文件

@@ -306,8 +306,8 @@ func Total(sess *xorm.Session, date, dayPayAmount string) error {
data.AllAmount = AllAmount
data.AllIntegral = AllIntegral
data.AllIntegralAmount = AllIntegralAmount
update, err := sess.Where("id=?", data.Id).Update(&data)
if update == 0 || err != nil {
_, err := sess.Where("id=?", data.Id).Update(&data)
if err != nil {
return errors.New("失败")
}
return nil


Loading…
取消
儲存