| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?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.finikes.oc.base.dao.PassportDAO">
- <insert id="insert" useGeneratedKeys="true" keyProperty="id" keyColumn="id"
- parameterType="com.finikes.oc.base.entity.Passport">
- INSERT INTO t_passport (mobile, password, veriCode, veriCodeDeadline)
- VALUES (#{mobile}, #{password}, #{veriCode}, #{veriCodeDeadline})
- </insert>
- <select id="findByMobile" parameterType="java.lang.String" resultType="com.finikes.oc.base.entity.Passport">
- SELECT id, mobile, password, veriCode, state, veriCodeDeadline
- FROM t_passport
- WHERE mobile = #{mobile}
- </select>
- <select id="findById" parameterType="java.lang.Integer" resultType="com.finikes.oc.base.entity.Passport">
- SELECT id, mobile, password, veriCode, state, veriCodeDeadline
- FROM t_passport
- WHERE id = #{id}
- </select>
- <update id="updateVeriCode" parameterType="com.finikes.oc.base.entity.Passport">
- UPDATE t_passport
- SET veriCode = #{veriCode},
- veriCodeDeadline = #{veriCodeDeadline}
- WHERE mobile = #{mobile}
- </update>
- <update id="updateState" parameterType="com.finikes.oc.base.entity.Passport">
- UPDATE t_passport
- SET state = #{state},
- createTime = #{createTime}
- WHERE mobile = #{mobile}
- </update>
- <update id="updateStateAndPassword" parameterType="com.finikes.oc.base.entity.Passport">
- UPDATE t_passport
- SET state = #{state},
- createTime = #{createTime},
- password = #{password}
- WHERE mobile = #{mobile}
- </update>
- <update id="updateName">
- UPDATE t_passport
- SET name = #{name}
- WHERE id = #{id}
- </update>
- </mapper>
|