123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?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.demo.wjj.mapper.AuthenticationMapper">
- <!--插入车商认证信息-->
- <insert id="insert" parameterType="com.demo.wjj.po.Authentication">
- INSERT INTO tb_authentication(id,real_name,id_card_no,id_card_imgpo,id_card_imgsi,add_time,is_check,check_time,user_id,head_portrait,bank_card_no,phone)
- VALUES (#{id},#{realName},#{idCardNumber},#{idCardImaPo},#{idCardImaSi},#{addTime},#{isCheck},#{checkTime},#{userId},#{headPortrait},#{bankCardNumber},#{phone})
- </insert>
- <select id="selectById" resultType="com.demo.wjj.po.Authentication">
- select a.id id,
- a.real_name realName,
- a.id_card_no idCardNumber,
- a.id_card_imgpo idCardImaPo,
- a.id_card_imgsi idCardImaSi,
- a.add_time addTime,
- a.is_check isCheck,
- a.check_time checkTime,
- a.user_id userId,
- a.head_portrait headPortrait,
- a.bank_card_no bankCardNumber,
- a.phone phone
- from tb_authentication a
- where a.user_id = #{id}
- </select>
- <select id="selectByUserId" resultType="com.demo.wjj.po.Authentication">
- select a.id id,
- a.real_name realName,
- a.id_card_no idCardNumber,
- a.id_card_imgpo idCardImaPo,
- a.id_card_imgsi idCardImaSi,
- a.add_time addTime,
- a.is_check isCheck,
- a.check_time checkTime,
- a.user_id userId,
- a.head_portrait headPortrait,
- a.bank_card_no bankCardNumber,
- a.phone phone
- from tb_authentication a
- where a.user_id = #{userId}
- </select>
- <delete id="delete">
- DELETE from tb_authentication
- where user_id = #{userId}
- </delete>
- </mapper>
|