修改优惠券id
This commit is contained in:
parent
04e5fc97be
commit
d1e5ca4140
@ -7,12 +7,15 @@
|
||||
count( id ) tatol,
|
||||
( SELECT count( id ) FROM card_favorable_record
|
||||
WHERE store_id = #{storeId}
|
||||
and card_favorable_id = #{id}
|
||||
and status = "0" ) unTatal,
|
||||
( SELECT count( id ) FROM card_favorable_record
|
||||
WHERE store_id = #{storeId}
|
||||
and card_favorable_id = #{id}
|
||||
and status = "1" ) usedTatal,
|
||||
( SELECT count( id ) FROM card_favorable_record
|
||||
WHERE store_id = #{storeId}
|
||||
and card_favorable_id = #{id}
|
||||
and status = "2" ) outTatal
|
||||
FROM
|
||||
card_favorable_record
|
||||
|
Loading…
Reference in New Issue
Block a user