feiyu02
2022-06-28 5670e4a15fba292ef5f8fb90e96072de976bb621
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
<?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="cn.flightfeather.supervision.domain.mapper.ParticipantMapper" >
  <resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.entity.Participant" >
    <!--
      WARNING - @mbg.generated
    -->
    <id column="MP_ID" property="mpId" jdbcType="INTEGER" />
    <result column="MP_MGUID" property="mpMguid" jdbcType="VARCHAR" />
    <result column="MP_MTitle" property="mpMtitle" jdbcType="VARCHAR" />
    <result column="MC_VMRoomGUID" property="mcVmroomguid" jdbcType="VARCHAR" />
    <result column="MC_VMRoomCode" property="mcVmroomcode" jdbcType="VARCHAR" />
    <result column="MP_PtUnitID" property="mpPtunitid" jdbcType="VARCHAR" />
    <result column="MP_PtUnit" property="mpPtunit" jdbcType="VARCHAR" />
    <result column="MP_ParticipantID" property="mpParticipantid" jdbcType="VARCHAR" />
    <result column="MP_Participant" property="mpParticipant" jdbcType="VARCHAR" />
    <result column="MP_PersonType" property="mpPersontype" jdbcType="TINYINT" />
    <result column="MP_CreateDate" property="mpCreatedate" jdbcType="TIMESTAMP" />
    <result column="MP_UpdateDate" property="mpUpdatedate" jdbcType="TIMESTAMP" />
    <result column="MP_Extension1" property="mpExtension1" jdbcType="VARCHAR" />
    <result column="MP_Extension2" property="mpExtension2" jdbcType="VARCHAR" />
    <result column="MP_Extension3" property="mpExtension3" jdbcType="VARCHAR" />
    <result column="MP_Remark" property="mpRemark" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbg.generated
    -->
    MP_ID, MP_MGUID, MP_MTitle, MC_VMRoomGUID, MC_VMRoomCode, MP_PtUnitID, MP_PtUnit, 
    MP_ParticipantID, MP_Participant, MP_PersonType, MP_CreateDate, MP_UpdateDate, MP_Extension1, 
    MP_Extension2, MP_Extension3, MP_Remark
  </sql>
 
  <select id="selectAsUserInfo" parameterType="String" resultType="map">
    select
    a.MP_ParticipantID as userId,
    b.UI_HeadIconUrl as headIconUrl,
    b.UI_RealName as realName,
    a.MP_PersonType as personType
    from tc_t_m_participants as a
    left join sm_t_userinfo as b on a.MP_ParticipantID = b.UI_GUID
    where a.MP_MGUID = #{param1} and a.MC_VMRoomGUID = #{param2}
  </select>
</mapper>