|
|
@@ -1888,7 +1888,7 @@ func GetMyCouponHolds(accountIDs string, holdStatus string) ([]MyCouponHold, err
|
|
|
if err := engine.Table("HIS_COUPONHOLD CH").
|
|
|
Select(`to_char(CH.COUPONHOLDID) COUPONHOLDIDSTR, to_char(CH.COUPONTYPEID) COUPONTYPEIDSTR, CH.*, CT.COUPONNAME`).
|
|
|
Join("INNER", "COUPONTYPE CT", "CT.COUPONTYPEID = CH.COUPONTYPEID").
|
|
|
- Where(fmt.Sprintf("CH.ISVALIDDATA = 1 and CH.ACCOUNTID in (%s)", accountIDs)).
|
|
|
+ Where(fmt.Sprintf("CH.ISVALIDDATA = 1 and CH.HOLDSTATUS = 4 and CH.ACCOUNTID in (%s)", accountIDs)).
|
|
|
Find(&myHisCouponHolds); err != nil {
|
|
|
return nil, err
|
|
|
}
|