@@ -24,6 +24,7 @@ class CouponModel extends \DAO\AbstractModel {
...
@@ -24,6 +24,7 @@ class CouponModel extends \DAO\AbstractModel {
protected$_primaryKey='id';
protected$_primaryKey='id';
protected$availStoreIndexField='id,type,FORMAT(cash_money/100,2) as cash_money,FORMAT(order_amount/100,2) as order_amount,discount,store_id,coupon_type,is_overlay,start_time,end_time,gift_coupon_id';
protected$availStoreIndexField='id,type,FORMAT(cash_money/100,2) as cash_money,FORMAT(order_amount/100,2) as order_amount,discount,store_id,coupon_type,is_overlay,start_time,end_time,gift_coupon_id';
protected$availTitleField='id,type,FORMAT(cash_money/100,2) as cash_money,FORMAT(order_amount/100,2) as order_amount,discount,store_id,coupon_type,is_overlay,start_time,end_time,gift_coupon_id,ids';
protected$availCartStoreIndexField='id,type,FORMAT(cash_money/100,2) as cash_money,FORMAT(order_amount/100,2) as order_amount,discount,store_id,coupon_type,is_overlay,start_time,end_time,ids,gift_coupon_id,gift_goods_ids';
protected$availCartStoreIndexField='id,type,FORMAT(cash_money/100,2) as cash_money,FORMAT(order_amount/100,2) as order_amount,discount,store_id,coupon_type,is_overlay,start_time,end_time,ids,gift_coupon_id,gift_goods_ids';
publicfunctioninit(){
publicfunctioninit(){
...
@@ -149,7 +150,7 @@ class CouponModel extends \DAO\AbstractModel {
...
@@ -149,7 +150,7 @@ class CouponModel extends \DAO\AbstractModel {