| | |
| | | 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.*; |
| | |
| | | } |
| | | |
| | | 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) |