<?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.xcong.excoin.modules.home.dao.MemberQuickBuySaleDao">  
 | 
      
 | 
    <select id="selectByIdAndMemberId" resultType="com.xcong.excoin.modules.home.entity.MemberQuickBuySaleEntity">  
 | 
        SELECT a.* FROM member_quick_buy_sale a WHERE a.id = #{id} AND a.member_id = #{memberId}  
 | 
    </select>  
 | 
  
 | 
    <update id="updateQuickBuySaleTimeOut">  
 | 
        update member_quick_buy_sale  
 | 
        set order_status = 5  
 | 
        where order_type = 'B' and order_status=1  
 | 
        and timestampdiff(MINUTE, create_time, now()) > 30  
 | 
    </update>  
 | 
</mapper> 
 |