You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?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.epmet.dao.UserInvitationDao">
|
|
|
|
|
|
|
|
<resultMap type="com.epmet.entity.UserInvitationEntity" id="userInvitationMap">
|
|
|
|
<result property="id" column="ID"/>
|
|
|
|
<result property="customerId" column="CUSTOMER_ID"/>
|
|
|
|
<result property="gridId" column="GRID_ID"/>
|
|
|
|
<result property="inviterUserId" column="INVITER_USER_ID"/>
|
|
|
|
<result property="inviteeUserId" column="INVITEE_USER_ID"/>
|
|
|
|
<result property="inviteSource" column="INVITE_SOURCE"/>
|
|
|
|
<result property="inviteSourceId" column="INVITE_SOURCE_ID"/>
|
|
|
|
<result property="invitationTime" column="INVITATION_TIME"/>
|
|
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
|
|
<result property="revision" column="REVISION"/>
|
|
|
|
<result property="createdBy" column="CREATED_BY"/>
|
|
|
|
<result property="createdTime" column="CREATED_TIME"/>
|
|
|
|
<result property="updatedBy" column="UPDATED_BY"/>
|
|
|
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<!-- 根据被邀请人id、邀请链接id、邀请场景查询人员邀请记录 -->
|
|
|
|
<select id="selectUserInvitation" parameterType="map" resultType="com.epmet.dto.UserInvitationDTO">
|
|
|
|
SELECT
|
|
|
|
*
|
|
|
|
FROM
|
|
|
|
user_invitation ui
|
|
|
|
WHERE
|
|
|
|
ui.DEL_FLAG = '0'
|
|
|
|
AND ui.INVITEE_USER_ID = #{inviteeUserId}
|
|
|
|
AND ui.INVITE_SOURCE_ID = #{inviteSourceId}
|
|
|
|
AND ui.INVITE_SOURCE = #{inviteSource}
|
|
|
|
</select>
|
|
|
|
</mapper>
|