diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/MerchantConfigMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/MerchantConfigMapper.java index 912d08fa7..1656be184 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/MerchantConfigMapper.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/MerchantConfigMapper.java @@ -2,9 +2,9 @@ package com.fuint.api.fuyou.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.fuint.api.fuyou.entity.MerchantConfig; -import io.lettuce.core.dynamic.annotation.Param; +import org.apache.ibatis.annotations.Param; public interface MerchantConfigMapper extends BaseMapper { - MerchantConfig getConfig(@Param("storeId") Integer storeId,@Param("mchntCd") String mchntCd); - int subtractAmount(@Param("storeId") Integer storeId,@Param("changeTheAmount") String changeTheAmount); + MerchantConfig getConfig(@Param("storeId") Integer storeId, @Param("mchntCd") String mchntCd); + int subtractAmount(@Param("id") Integer id,@Param("changeTheAmount") Double changeTheAmount); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/xml/MerchantConfigMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/xml/MerchantConfigMapper.xml index 038a8760e..5a49acf30 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/xml/MerchantConfigMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/xml/MerchantConfigMapper.xml @@ -3,12 +3,13 @@ update Merchant_config set amount = amount-#{changeTheAmount} - where store_id = #{storeId} + where id = #{id}