From d1e5ca41406d7701935d94902d1f513234ce684a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Thu, 9 Nov 2023 13:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=98=E6=83=A0=E5=88=B8id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cardFavorable/mapper/xml/CardFavorableRecordMapper.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml index a48f0f07a..eb676e16b 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/mapper/xml/CardFavorableRecordMapper.xml @@ -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