修改优惠券id

This commit is contained in:
齐天大圣 2023-11-09 13:52:49 +08:00
parent 04e5fc97be
commit d1e5ca4140

View File

@ -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