fix zone ferund
This commit is contained in:
parent
a8d3a45b71
commit
cc7a910b72
|
@ -322,7 +322,7 @@ func (m *Mysql) CreateZoneConsumeHis(ctx *gin.Context, tx *sqlx.Tx, zch *dbstruc
|
|||
// 获取空间消费详情
|
||||
func (m *Mysql) GetZoneConsumeHisByOrderId(ctx *gin.Context, tx *sqlx.Tx, orderId string) (list []*dbstruct.ZoneConsumeHis, err error) {
|
||||
list = make([]*dbstruct.ZoneConsumeHis, 0)
|
||||
sqlStr := fmt.Sprintf("select * from %s where order_id=?", TableVasZoneMomentUnlock)
|
||||
sqlStr := fmt.Sprintf("select * from %s where order_id=?", TableVasZoneConsumeHistory)
|
||||
if tx != nil {
|
||||
err = tx.SelectContext(ctx, &list, sqlStr, orderId)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue