yujian
2019-01-22 88b54772dbcf5ecab1e2316e4e4626ac901b8908
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgOrderDetailMapper.xml
@@ -16,7 +16,7 @@
      <result column="mo_read" property="read" jdbcType="BOOLEAN" />
      <result column="mo_create_time" property="createTime" jdbcType="TIMESTAMP" />
      <result column="mo_update_time" property="updateTime" jdbcType="TIMESTAMP" />
      <association property="user" column="mo_uid">
      <association property="user" column="mo_uid" javaType="com.yeshi.fanli.entity.bus.user.UserInfo">
         <id column="mo_uid" property="id" jdbcType="BIGINT" />
      </association>
   </resultMap>
@@ -36,6 +36,14 @@
      from yeshi_ec_msg_order where mo_uid = #{uid,jdbcType=BIGINT} and
      mo_order_id=#{orderId}
   </select>
   <select id="listByOrderId" resultMap="BaseResultMap" parameterType="java.lang.String">
      select
      <include refid="Base_Column_List" />
      from yeshi_ec_msg_order where mo_order_id = #{orderId}
   </select>
   <select id="listByUid" resultMap="BaseResultMap">
      select
@@ -126,4 +134,10 @@
      </set>
      where mo_id = #{id,jdbcType=BIGINT}
   </update>
   <update id="setMsgReadByUid" parameterType="java.lang.Long">
      update
      yeshi_ec_msg_order set mo_read=1 where mo_uid=#{0}
   </update>
</mapper>