| | |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.msg.MsgInviteDetail"> |
| | | <id column="mi_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="mi_type" property="msgType" |
| | | <result column="mi_type" property="msgType" |
| | | typeHandler="com.yeshi.fanli.util.mybatishandler.msg.MsgTypeInviteTypeEnumHandler" /> |
| | | <result column="mi_desc" property="desc" jdbcType="VARCHAR" /> |
| | | <result column="mi_beizhu" property="beiZhu" jdbcType="VARCHAR" /> |
| | |
| | | <result column="mi_create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="mi_update_time" property="updateTime" jdbcType="TIMESTAMP" /> |
| | | |
| | | <association property="inviteUser" column="mi_invite_id"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <association property="inviteUser" column="mi_invite_id" |
| | | javaType="com.yeshi.fanli.entity.bus.user.ThreeSale"> |
| | | <id column="mi_invite_id" property="id" jdbcType="BIGINT" /> |
| | | <id column="state" property="state" jdbcType="BOOLEAN" /> |
| | | <id column="expire" property="expire" jdbcType="INTEGER" /> |
| | | <association property="boss" column="boss_id" |
| | | javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> |
| | | <id column="boss_id" property="id" jdbcType="BIGINT" /> |
| | |
| | | |
| | | <association property="worker" column="worker_id" |
| | | javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <id column="worker_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="nick_name" property="nickName" jdbcType="VARCHAR" /> |
| | | <result column="portrait" property="portrait" jdbcType="VARCHAR" /> |
| | | </association> |
| | | </association> |
| | | <association property="user" column="mi_uid"> |
| | | <association property="user" column="mi_uid" |
| | | javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> |
| | | <id column="mi_uid" property="id" jdbcType="BIGINT" /> |
| | | </association> |
| | | </resultMap> |
| | |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_msg_invite where mi_invite_id = #{0} |
| | | , |
| | | t.* |
| | | from yeshi_ec_msg_invite left join yeshi_ec_threesale t on |
| | | t.id=mi_invite_id where mi_invite_id = #{0} |
| | | </select> |
| | | |
| | | |
| | |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | count(mi_id) |
| | | from yeshi_ec_msg_invite where mi_uid |
| | | = #{0} |
| | | from yeshi_ec_msg_invite where mi_uid= |
| | | #{uid} |
| | | </select> |
| | | |
| | | |
| | |
| | | </set> |
| | | where mi_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <update id="setMsgReadByUid" parameterType="java.lang.Long"> |
| | | update |
| | | yeshi_ec_msg_invite set mi_read=1 where mi_uid=#{0} |
| | | </update> |
| | | </mapper> |