Blame view

SmsVerifyCodeMapper.xml 539 Bytes
涂亚平 committed
1 2 3 4
<?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.subsidy.mapper.SmsVerifyCodeMapper">

涂亚平 committed
5 6 7 8 9 10 11 12 13 14 15 16
    <select id="getOneByTelePhone" resultType="com.subsidy.model.SmsVerifyCodeDO">
        select
        *
        from
        sms_verify_code
        where
        create_date > DATE_ADD(
        NOW(),
        INTERVAL - 300 MINUTE)
        and telephone = #{telephone}
        and delete_date is null
    </select>
涂亚平 committed
17 18

</mapper>