xiaoyong931011
2021-12-08 f5e6133809c553cfd9fb28ee61019927c547c374
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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()) &gt; 30
    </update>
</mapper>