yujian
2019-01-22 88b54772dbcf5ecab1e2316e4e4626ac901b8908
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgInviteDetailMapper.xml
@@ -5,7 +5,7 @@
   <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" />
@@ -13,8 +13,11 @@
      <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" />
@@ -22,12 +25,13 @@
         <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>
@@ -45,7 +49,10 @@
      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>
@@ -63,8 +70,8 @@
      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>
@@ -131,4 +138,9 @@
      </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>