CPersonalInformationMapper.xml 1.4 KB
<?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="cn.bronet.admin.demo.mapper.CPersonalInformationMapper">

    <resultMap type="cn.bronet.admin.demo.domain.CPersonalInformation" id="CPersonalInformationResult">
        <result property="id" column="id"/>
        <result property="userId" column="user_id"/>
        <result property="phonenumber" column="phonenumber"/>
        <result property="email" column="email"/>
        <result property="resume" column="resume"/>
        <result property="createTime" column="create_time"/>
        <result property="updateTime" column="update_time"/>
        <result property="home" column="home"/>
        <result property="identityCard" column="identity_card"/>
        <result property="sex" column="sex"/>
        <result property="name" column="name"/>
        <result property="birthday" column="birthday"/>
        <result property="company" column="company"/>
        <result property="position" column="position"/>
        <result property="attentionNumber" column="attention_number"/>
        <result property="beanVermicelli" column="bean_vermicelli"/>
    </resultMap>
    <select id="studentInfo" resultMap="CPersonalInformationResult">
        SELECT * FROM c_personal_information WHERE user_id = #{uid}
    </select>


</mapper>