1
luodangjia
2024-05-12 533558ecfbb188f43cbb151e5245abff1b1aa818
rest/src/main/java/cn/stylefeng/rest/modular/user/controller/MyMentalTestController.java
@@ -9,7 +9,6 @@
import cn.stylefeng.guns.modular.business.dto.MentalTestMyTestTopicDTO;
import cn.stylefeng.guns.modular.business.dto.MentalTestTopicAndRecordDTO;
import cn.stylefeng.guns.modular.business.entity.MentalTestRecord;
import cn.stylefeng.guns.modular.business.entity.MentalTestResult;
import cn.stylefeng.guns.modular.business.entity.MentalTestTopic;
import cn.stylefeng.guns.modular.business.entity.OrderMentalTest;
import cn.stylefeng.guns.modular.business.service.*;
@@ -106,12 +105,6 @@
        }
        List<Long> topicIdList = list.stream().map(o -> o.getTopicId()).collect(Collectors.toList());
        List<MentalTestResult> mentalTestResultAll = mentalTestResultService.list(
                Wrappers.<MentalTestResult>lambdaQuery()
                        .eq(MentalTestResult::getUserId, userId)
                        .in(MentalTestResult::getTopicId, topicIdList)
                        .groupBy(MentalTestResult::getTopicId)
        );
        List<OrderMentalTest> orderMentalTestAll = orderMentalTestService.list(
                Wrappers.<OrderMentalTest>lambdaQuery()
                        .eq(OrderMentalTest::getUserId, userId)