cloudroam
2024-10-28 f77c25900aac7231d006d8f4e08aaa12d72c62b4
src/main/java/com/mzl/flower/mapper/wallet/WalletMapper.java
@@ -3,8 +3,7 @@
import com.mzl.flower.entity.wallet.WalletDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import java.math.BigDecimal;
import org.springframework.stereotype.Repository;
/**
 * <p>
@@ -14,9 +13,10 @@
 * @author @TaoJie
 * @since 2024-10-22
 */
@Repository
public interface WalletMapper extends BaseMapper<WalletDO> {
    @Select("select total_amount as totalAmount from t_wallet where supplier_id =#{supplierId}")
    public BigDecimal getTotalAmount(String supplierId);
    @Select("select * from t_wallet where supplier_id =#{supplierId}")
    public WalletDO getTotalAmount(String supplierId);
}