Administrator
7 hours ago 29674c95a7c1f57233c4182a72d01917a0be9689
src/main/java/cc/mrbird/febs/ai/service/impl/AiProductQuestionLabelServiceImpl.java
@@ -19,6 +19,7 @@
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
@Slf4j
@Service
@@ -72,4 +73,14 @@
        }
        return new FebsResponse().success().message("操作成功");
    }
    @Override
    public List<AiProductQuestionLabel> listAllByCompanyId(String companyId) {
        LambdaQueryWrapper<AiProductQuestionLabel> query = Wrappers.lambdaQuery(AiProductQuestionLabel.class);
        if (StrUtil.isNotEmpty(companyId)){
            query.eq(AiProductQuestionLabel::getCompanyId, companyId);
        }
        query.orderByDesc(AiProductQuestionLabel::getCreatedTime);
        return aiProductQuestionLabelMapper.selectList(query);
    }
}