goupan
2024-04-14 ca931b87c7d7de8d3c75d6a4a5f0693d77420c8c
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
package cn.stylefeng.roses.kernel.customer.modular.mapper;
 
import cn.stylefeng.roses.kernel.customer.api.pojo.UserManagePageResponseDTO;
import cn.stylefeng.roses.kernel.customer.modular.entity.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * C端用户表 Mapper 接口
 *
 * @author fengshuonan
 * @date 2021/06/07 11:40
 */
public interface CustomerMapper extends BaseMapper<Customer> {
 
    List<Long> getWorkerIdByLineStatusAndPostType(
            @Param("lineStatus") String lineStatus,
            @Param("postType") Integer postType,
            @Param("postId") Integer postId,
            @Param("workStatus") Integer workStatus
    );
    List<Long> randomWorkerByLineStatusAndPostNeWorkerId(
            @Param("lineStatus") String lineStatus,
            @Param("postType") Integer postType,
            @Param("postId") Integer postId,
            @Param("workStatus") Integer workStatus,
            @Param("mentalAnalysisStatus") Integer mentalAnalysisStatus,
            @Param("eqWorkerIdList") List<Long> eqWorkerIdList,
            @Param("neWorkerIdList") List<Long> neWorkerIdList
    );
 
    List<Customer> getWorkerListByLineStatusAndPostType(
            @Param("lineStatus") String lineStatus,
            @Param("postType") Integer postType,
            @Param("postId") Integer postId,
            @Param("workStatus") Integer workStatus
    );
 
    Page<UserManagePageResponseDTO> getCustomerPage(
            @Param("page") Page<Object> page,
            @Param("userType") Integer userType,
            @Param("id") Long id,
            @Param("name") String name,
            @Param("telephone") String telephone,
            @Param("statusFlag") Integer statusFlag
    );
 
}