goupan
2024-04-29 727d4605fd6826ee9078553b5c7626b7803629d8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package cn.stylefeng.guns.modular.business.service;
 
import cn.stylefeng.guns.modular.business.dto.MentalTestMyTestOrderDTO;
import cn.stylefeng.guns.modular.business.dto.MentalTestMyTestRecordTopicDTO;
import cn.stylefeng.guns.modular.business.dto.MentalTestMyTestTopicDTO;
import cn.stylefeng.guns.modular.business.dto.MentalTestRecordPageDTO;
import cn.stylefeng.guns.modular.business.entity.MentalTestRecord;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
 
/**
 * <p>
 * 心理测试记录 服务类
 * </p>
 *
 * @author goupan
 * @since 2024-01-09
 */
public interface IMentalTestRecordService extends IService<MentalTestRecord> {
 
    /**
     * 我的测试
     * @param userId
     * @return
     */
    List<MentalTestMyTestTopicDTO> myTestTopic(Long userId, Long topicId);
 
    /**
     * 我的测试记录(含题库信息)
     * @param mentalAppointmentId
     * @param mentalAppointmentIdList
     * @return
     */
    List<MentalTestMyTestRecordTopicDTO> myTestRecordTopicByMentalAppointmentId(Long mentalAppointmentId, List<Long> mentalAppointmentIdList);
 
    /**
     * 我的测试(订单)
     * @param userId
     * @param topicId
     * @return
     */
    List<MentalTestMyTestOrderDTO> myTestOrder(Long userId, Long topicId);
 
    /**
     * 从测试记录中获取1v1咨询师
     * @param mentalTestRecordId
     * @param userId
     * @return
     */
    Long getConsultWorkerIdByRecord(Long mentalTestRecordId, Long userId);
 
    Page<MentalTestRecordPageDTO> getPage(Page<Object> page, String title, String nickName, String telephone, Integer testType);
 
}