|
|
@@ -2026,7 +2026,7 @@ type MyUsedCoupon struct {
|
|
|
Accountid int64 `json:"accountid" xorm:"'ACCOUNTID'"` // 资金账户ID(买方)
|
|
|
Usedqty int64 `json:"usedqty" xorm:"'USEDQTY'"` // 使用数量
|
|
|
Couponcategroy int32 `json:"couponcategroy" xorm:"'COUPONCATEGROY'"` // 种类 - 1:现金券 2:折扣券
|
|
|
- Conditionvalue float64 `json:"conditionvalue" xorm:"'CONDITIONVALUE'"` // 条件阈值(可为0)
|
|
|
+ Conditionvalue float64 `json:"conditionvalue" xorm:"'CONDITIONVALUE_TC'"` // 条件阈值(可为0)
|
|
|
Couponvalue float64 `json:"couponvalue" xorm:"'COUPONVALUE'"` // 面值[1:现金券 - 抵扣值 2:折扣券-折扣值(0-100)]
|
|
|
Sellaccountid int64 `json:"sellaccountid" xorm:"'SELLACCOUNTID'"` // 资金账户ID(卖方)
|
|
|
Marketid int32 `json:"marketid" xorm:"'MARKETID'"` // 市场ID
|
|
|
@@ -2047,7 +2047,7 @@ func GetMyUsedCoupon(accountIDs string) ([]MyUsedCoupon, error) {
|
|
|
myUsedCoupons := make([]MyUsedCoupon, 0)
|
|
|
if err := engine.Table("TRADE_ORDERCOUPON T").
|
|
|
Select(`to_char(T.ORDERID) ORDERIDSTR, to_char(T.COUPONTYPEID) COUPONTYPEIDSTR, to_char(T.TRADEID) TRADEIDSTR, T.*,
|
|
|
- C.COUPONNAME`).
|
|
|
+ C.COUPONNAME, C.CONDITIONVALUE CONDITIONVALUE_TC`).
|
|
|
Join("INNER", "COUPONTYPE C", "C.COUPONTYPEID = T.COUPONTYPEID").
|
|
|
Where(fmt.Sprintf("T.ACCOUNTID in (%s)", accountIDs)).
|
|
|
Desc("T.CREATETIME").
|