You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1.1 KiB

<?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.yami.shop.dao.SmsLogMapper">
<resultMap id="BaseResultMap" type="com.yami.shop.bean.model.SmsLog">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="user_phone" jdbcType="VARCHAR" property="userPhone" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="mobile_code" jdbcType="VARCHAR" property="mobileCode" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="rec_date" jdbcType="TIMESTAMP" property="recDate" />
<result column="response_code" jdbcType="VARCHAR" property="responseCode" />
<result column="status" jdbcType="INTEGER" property="status" />
</resultMap>
<update id="invalidSmsByMobileAndType">
update tz_sms_log set status = 0 where user_phone = #{mobile} and type = #{type}
</update>
</mapper>