refund_deal_flow.go 674 B

12345678910111213141516171819202122232425
  1. package order
  2. import (
  3. "eta/eta_mini_ht_api/models"
  4. "time"
  5. )
  6. type RefundDealFlow struct {
  7. ID int `gorm:"column:id;primaryKey"`
  8. OperatorUserID int `gorm:"column:operator_user_id"`
  9. ProductOrderNo string `gorm:"column:product_order_no"`
  10. RefundOrderNo string `gorm:"column:refund_order_no"`
  11. CreatedTime time.Time `gorm:"column:created_time"`
  12. }
  13. // TableName 返回表名
  14. func (*RefundDealFlow) TableName() string {
  15. return "refund_deal_flow"
  16. }
  17. func GetRefundFlow(refundOrderNo string) (flow RefundDealFlow, err error) {
  18. db := models.Main()
  19. err = db.Select("*").Where("refund_order_no=?", refundOrderNo).First(&flow).Error
  20. return
  21. }