From 89f8649e8cf9bc12b9e29abb0adc4f9b77273143 Mon Sep 17 00:00:00 2001 From: guyue <1721849008@qq.com> Date: 星期二, 08 七月 2025 09:07:44 +0800 Subject: [PATCH] 第三方接口 --- src/main/java/com/linghu/service/impl/KeywordServiceImpl.java | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/linghu/service/impl/KeywordServiceImpl.java b/src/main/java/com/linghu/service/impl/KeywordServiceImpl.java index 5901887..568e27b 100644 --- a/src/main/java/com/linghu/service/impl/KeywordServiceImpl.java +++ b/src/main/java/com/linghu/service/impl/KeywordServiceImpl.java @@ -1,5 +1,6 @@ package com.linghu.service.impl; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.linghu.model.common.ResponseResult; import com.linghu.model.entity.Keyword; @@ -7,6 +8,9 @@ import com.linghu.model.vo.KeywordStaticsListVO; import com.linghu.service.KeywordService; import com.linghu.mapper.KeywordMapper; + + +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @@ -19,6 +23,8 @@ */ @Service public class KeywordServiceImpl extends ServiceImpl<KeywordMapper, Keyword> implements KeywordService{ + @Autowired + private KeywordMapper keywordMapper; @Override public ResponseResult<KeywordStaticsListVO> statics(Integer keywordId, Integer questionId) { @@ -70,8 +76,12 @@ } + + @Override + public List<Keyword> getKeywordsByOrderId(String orderId) { + LambdaQueryWrapper<Keyword> queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.eq(Keyword::getOrder_id, orderId); + return keywordMapper.selectList(queryWrapper); + } + } - - - - -- Gitblit v1.7.1