青羊经侦大队-数据平台
wl
2022-07-15 1de3b3fe57cd58e76c90fb33d4cdedc67c246a58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.example.jz.dao.GroupDao">
 
    <resultMap id="GroupUserVoMap" type="com.example.jz.modle.vo.GroupUserVo">
        <result property="userId" column="user_id" />
        <result property="userName" column="real_name" />
        <result property="banSpeech" column="ban_speech" />
    </resultMap>
 
    <select id="getAllUser" resultType="com.example.jz.modle.vo.GroupUserVo">
        select group_user.user_id,group_user.ban_speech,user.real_name
        from group_user
        join user on group_user.user_id = user.id
        where group_id = #{groupId}
    </select>
 
</mapper>