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