|
|
@@ -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 |
|
|
|