| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003 |
- <?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.goafanti.common.dao.UserIdentityMapper">
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.UserIdentity">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- <id column="id" jdbcType="VARCHAR" property="id" />
- <result column="uid" jdbcType="VARCHAR" property="uid" />
- <result column="username" jdbcType="VARCHAR" property="username" />
- <result column="sex" jdbcType="VARCHAR" property="sex" />
- <result column="date_of_birth_year" jdbcType="VARCHAR" property="dateOfBirthYear" />
- <result column="date_of_birth_month" jdbcType="VARCHAR" property="dateOfBirthMonth" />
- <result column="id_number" jdbcType="VARCHAR" property="idNumber" />
- <result column="positive_id_url" jdbcType="VARCHAR" property="positiveIdUrl" />
- <result column="opposite_id_url" jdbcType="VARCHAR" property="oppositeIdUrl" />
- <result column="province" jdbcType="INTEGER" property="province" />
- <result column="city" jdbcType="INTEGER" property="city" />
- <result column="area" jdbcType="INTEGER" property="area" />
- <result column="contact_mobile" jdbcType="VARCHAR" property="contactMobile" />
- <result column="bank_name" jdbcType="VARCHAR" property="bankName" />
- <result column="bank_account" jdbcType="VARCHAR" property="bankAccount" />
- <result column="bank_card_number" jdbcType="VARCHAR" property="bankCardNumber" />
- <result column="amount_money" jdbcType="DECIMAL" property="amountMoney" />
- <result column="audit_status" jdbcType="INTEGER" property="auditStatus" />
- <result column="process" jdbcType="INTEGER" property="process" />
- <result column="wrong_count" jdbcType="INTEGER" property="wrongCount" />
- <result column="payment_date" jdbcType="TIMESTAMP" property="paymentDate" />
- <result column="expert" jdbcType="INTEGER" property="expert" />
- <result column="celebrity" jdbcType="INTEGER" property="celebrity" />
- <result column="international" jdbcType="INTEGER" property="international" />
- <result column="fixed_tel" jdbcType="VARCHAR" property="fixedTel" />
- <result column="qq" jdbcType="VARCHAR" property="qq" />
- <result column="postal_address" jdbcType="VARCHAR" property="postalAddress" />
- <result column="postcode" jdbcType="VARCHAR" property="postcode" />
- <result column="review_instructions" jdbcType="VARCHAR" property="reviewInstructions" />
- <result column="industry" jdbcType="INTEGER" property="industry" />
- <result column="contacts" jdbcType="VARCHAR" property="contacts" />
- <result column="email" jdbcType="VARCHAR" property="email" />
- <result column="professional_title" jdbcType="VARCHAR" property="professionalTitle" />
- <result column="work_unit" jdbcType="VARCHAR" property="workUnit" />
- <result column="education" jdbcType="VARCHAR" property="education" />
- <result column="major_category" jdbcType="VARCHAR" property="majorCategory" />
- <result column="qualification" jdbcType="VARCHAR" property="qualification" />
- <result column="investment" jdbcType="INTEGER" property="investment" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- <where>
- <foreach collection="oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- <where>
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- id, uid, username, sex, date_of_birth_year, date_of_birth_month, id_number, positive_id_url,
- opposite_id_url, province, city, area, contact_mobile, bank_name, bank_account, bank_card_number,
- amount_money, audit_status, process, wrong_count, payment_date, expert, celebrity,
- international, fixed_tel, qq, postal_address, postcode, review_instructions, industry,
- contacts, email, professional_title, work_unit, education, major_category, qualification,
- investment
- </sql>
- <select id="selectByExample" parameterType="com.goafanti.common.model.UserIdentityExample" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from user_identity
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- select
- <include refid="Base_Column_List" />
- from user_identity
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- delete from user_identity
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.goafanti.common.model.UserIdentityExample">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- delete from user_identity
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.UserIdentity">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- insert into user_identity (id, uid, username,
- sex, date_of_birth_year, date_of_birth_month,
- id_number, positive_id_url, opposite_id_url,
- province, city, area,
- contact_mobile, bank_name, bank_account,
- bank_card_number, amount_money, audit_status,
- process, wrong_count, payment_date,
- expert, celebrity, international,
- fixed_tel, qq, postal_address,
- postcode, review_instructions, industry,
- contacts, email, professional_title,
- work_unit, education, major_category,
- qualification, investment)
- values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
- #{sex,jdbcType=VARCHAR}, #{dateOfBirthYear,jdbcType=VARCHAR}, #{dateOfBirthMonth,jdbcType=VARCHAR},
- #{idNumber,jdbcType=VARCHAR}, #{positiveIdUrl,jdbcType=VARCHAR}, #{oppositeIdUrl,jdbcType=VARCHAR},
- #{province,jdbcType=INTEGER}, #{city,jdbcType=INTEGER}, #{area,jdbcType=INTEGER},
- #{contactMobile,jdbcType=VARCHAR}, #{bankName,jdbcType=VARCHAR}, #{bankAccount,jdbcType=VARCHAR},
- #{bankCardNumber,jdbcType=VARCHAR}, #{amountMoney,jdbcType=DECIMAL}, #{auditStatus,jdbcType=INTEGER},
- #{process,jdbcType=INTEGER}, #{wrongCount,jdbcType=INTEGER}, #{paymentDate,jdbcType=TIMESTAMP},
- #{expert,jdbcType=INTEGER}, #{celebrity,jdbcType=INTEGER}, #{international,jdbcType=INTEGER},
- #{fixedTel,jdbcType=VARCHAR}, #{qq,jdbcType=VARCHAR}, #{postalAddress,jdbcType=VARCHAR},
- #{postcode,jdbcType=VARCHAR}, #{reviewInstructions,jdbcType=VARCHAR}, #{industry,jdbcType=INTEGER},
- #{contacts,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{professionalTitle,jdbcType=VARCHAR},
- #{workUnit,jdbcType=VARCHAR}, #{education,jdbcType=VARCHAR}, #{majorCategory,jdbcType=VARCHAR},
- #{qualification,jdbcType=VARCHAR}, #{investment,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.UserIdentity">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- insert into user_identity
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="uid != null">
- uid,
- </if>
- <if test="username != null">
- username,
- </if>
- <if test="sex != null">
- sex,
- </if>
- <if test="dateOfBirthYear != null">
- date_of_birth_year,
- </if>
- <if test="dateOfBirthMonth != null">
- date_of_birth_month,
- </if>
- <if test="idNumber != null">
- id_number,
- </if>
- <if test="positiveIdUrl != null">
- positive_id_url,
- </if>
- <if test="oppositeIdUrl != null">
- opposite_id_url,
- </if>
- <if test="province != null">
- province,
- </if>
- <if test="city != null">
- city,
- </if>
- <if test="area != null">
- area,
- </if>
- <if test="contactMobile != null">
- contact_mobile,
- </if>
- <if test="bankName != null">
- bank_name,
- </if>
- <if test="bankAccount != null">
- bank_account,
- </if>
- <if test="bankCardNumber != null">
- bank_card_number,
- </if>
- <if test="amountMoney != null">
- amount_money,
- </if>
- <if test="auditStatus != null">
- audit_status,
- </if>
- <if test="process != null">
- process,
- </if>
- <if test="wrongCount != null">
- wrong_count,
- </if>
- <if test="paymentDate != null">
- payment_date,
- </if>
- <if test="expert != null">
- expert,
- </if>
- <if test="celebrity != null">
- celebrity,
- </if>
- <if test="international != null">
- international,
- </if>
- <if test="fixedTel != null">
- fixed_tel,
- </if>
- <if test="qq != null">
- qq,
- </if>
- <if test="postalAddress != null">
- postal_address,
- </if>
- <if test="postcode != null">
- postcode,
- </if>
- <if test="reviewInstructions != null">
- review_instructions,
- </if>
- <if test="industry != null">
- industry,
- </if>
- <if test="contacts != null">
- contacts,
- </if>
- <if test="email != null">
- email,
- </if>
- <if test="professionalTitle != null">
- professional_title,
- </if>
- <if test="workUnit != null">
- work_unit,
- </if>
- <if test="education != null">
- education,
- </if>
- <if test="majorCategory != null">
- major_category,
- </if>
- <if test="qualification != null">
- qualification,
- </if>
- <if test="investment != null">
- investment,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="uid != null">
- #{uid,jdbcType=VARCHAR},
- </if>
- <if test="username != null">
- #{username,jdbcType=VARCHAR},
- </if>
- <if test="sex != null">
- #{sex,jdbcType=VARCHAR},
- </if>
- <if test="dateOfBirthYear != null">
- #{dateOfBirthYear,jdbcType=VARCHAR},
- </if>
- <if test="dateOfBirthMonth != null">
- #{dateOfBirthMonth,jdbcType=VARCHAR},
- </if>
- <if test="idNumber != null">
- #{idNumber,jdbcType=VARCHAR},
- </if>
- <if test="positiveIdUrl != null">
- #{positiveIdUrl,jdbcType=VARCHAR},
- </if>
- <if test="oppositeIdUrl != null">
- #{oppositeIdUrl,jdbcType=VARCHAR},
- </if>
- <if test="province != null">
- #{province,jdbcType=INTEGER},
- </if>
- <if test="city != null">
- #{city,jdbcType=INTEGER},
- </if>
- <if test="area != null">
- #{area,jdbcType=INTEGER},
- </if>
- <if test="contactMobile != null">
- #{contactMobile,jdbcType=VARCHAR},
- </if>
- <if test="bankName != null">
- #{bankName,jdbcType=VARCHAR},
- </if>
- <if test="bankAccount != null">
- #{bankAccount,jdbcType=VARCHAR},
- </if>
- <if test="bankCardNumber != null">
- #{bankCardNumber,jdbcType=VARCHAR},
- </if>
- <if test="amountMoney != null">
- #{amountMoney,jdbcType=DECIMAL},
- </if>
- <if test="auditStatus != null">
- #{auditStatus,jdbcType=INTEGER},
- </if>
- <if test="process != null">
- #{process,jdbcType=INTEGER},
- </if>
- <if test="wrongCount != null">
- #{wrongCount,jdbcType=INTEGER},
- </if>
- <if test="paymentDate != null">
- #{paymentDate,jdbcType=TIMESTAMP},
- </if>
- <if test="expert != null">
- #{expert,jdbcType=INTEGER},
- </if>
- <if test="celebrity != null">
- #{celebrity,jdbcType=INTEGER},
- </if>
- <if test="international != null">
- #{international,jdbcType=INTEGER},
- </if>
- <if test="fixedTel != null">
- #{fixedTel,jdbcType=VARCHAR},
- </if>
- <if test="qq != null">
- #{qq,jdbcType=VARCHAR},
- </if>
- <if test="postalAddress != null">
- #{postalAddress,jdbcType=VARCHAR},
- </if>
- <if test="postcode != null">
- #{postcode,jdbcType=VARCHAR},
- </if>
- <if test="reviewInstructions != null">
- #{reviewInstructions,jdbcType=VARCHAR},
- </if>
- <if test="industry != null">
- #{industry,jdbcType=INTEGER},
- </if>
- <if test="contacts != null">
- #{contacts,jdbcType=VARCHAR},
- </if>
- <if test="email != null">
- #{email,jdbcType=VARCHAR},
- </if>
- <if test="professionalTitle != null">
- #{professionalTitle,jdbcType=VARCHAR},
- </if>
- <if test="workUnit != null">
- #{workUnit,jdbcType=VARCHAR},
- </if>
- <if test="education != null">
- #{education,jdbcType=VARCHAR},
- </if>
- <if test="majorCategory != null">
- #{majorCategory,jdbcType=VARCHAR},
- </if>
- <if test="qualification != null">
- #{qualification,jdbcType=VARCHAR},
- </if>
- <if test="investment != null">
- #{investment,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.goafanti.common.model.UserIdentityExample" resultType="java.lang.Long">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- select count(*) from user_identity
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- update user_identity
- <set>
- <if test="record.id != null">
- id = #{record.id,jdbcType=VARCHAR},
- </if>
- <if test="record.uid != null">
- uid = #{record.uid,jdbcType=VARCHAR},
- </if>
- <if test="record.username != null">
- username = #{record.username,jdbcType=VARCHAR},
- </if>
- <if test="record.sex != null">
- sex = #{record.sex,jdbcType=VARCHAR},
- </if>
- <if test="record.dateOfBirthYear != null">
- date_of_birth_year = #{record.dateOfBirthYear,jdbcType=VARCHAR},
- </if>
- <if test="record.dateOfBirthMonth != null">
- date_of_birth_month = #{record.dateOfBirthMonth,jdbcType=VARCHAR},
- </if>
- <if test="record.idNumber != null">
- id_number = #{record.idNumber,jdbcType=VARCHAR},
- </if>
- <if test="record.positiveIdUrl != null">
- positive_id_url = #{record.positiveIdUrl,jdbcType=VARCHAR},
- </if>
- <if test="record.oppositeIdUrl != null">
- opposite_id_url = #{record.oppositeIdUrl,jdbcType=VARCHAR},
- </if>
- <if test="record.province != null">
- province = #{record.province,jdbcType=INTEGER},
- </if>
- <if test="record.city != null">
- city = #{record.city,jdbcType=INTEGER},
- </if>
- <if test="record.area != null">
- area = #{record.area,jdbcType=INTEGER},
- </if>
- <if test="record.contactMobile != null">
- contact_mobile = #{record.contactMobile,jdbcType=VARCHAR},
- </if>
- <if test="record.bankName != null">
- bank_name = #{record.bankName,jdbcType=VARCHAR},
- </if>
- <if test="record.bankAccount != null">
- bank_account = #{record.bankAccount,jdbcType=VARCHAR},
- </if>
- <if test="record.bankCardNumber != null">
- bank_card_number = #{record.bankCardNumber,jdbcType=VARCHAR},
- </if>
- <if test="record.amountMoney != null">
- amount_money = #{record.amountMoney,jdbcType=DECIMAL},
- </if>
- <if test="record.auditStatus != null">
- audit_status = #{record.auditStatus,jdbcType=INTEGER},
- </if>
- <if test="record.process != null">
- process = #{record.process,jdbcType=INTEGER},
- </if>
- <if test="record.wrongCount != null">
- wrong_count = #{record.wrongCount,jdbcType=INTEGER},
- </if>
- <if test="record.paymentDate != null">
- payment_date = #{record.paymentDate,jdbcType=TIMESTAMP},
- </if>
- <if test="record.expert != null">
- expert = #{record.expert,jdbcType=INTEGER},
- </if>
- <if test="record.celebrity != null">
- celebrity = #{record.celebrity,jdbcType=INTEGER},
- </if>
- <if test="record.international != null">
- international = #{record.international,jdbcType=INTEGER},
- </if>
- <if test="record.fixedTel != null">
- fixed_tel = #{record.fixedTel,jdbcType=VARCHAR},
- </if>
- <if test="record.qq != null">
- qq = #{record.qq,jdbcType=VARCHAR},
- </if>
- <if test="record.postalAddress != null">
- postal_address = #{record.postalAddress,jdbcType=VARCHAR},
- </if>
- <if test="record.postcode != null">
- postcode = #{record.postcode,jdbcType=VARCHAR},
- </if>
- <if test="record.reviewInstructions != null">
- review_instructions = #{record.reviewInstructions,jdbcType=VARCHAR},
- </if>
- <if test="record.industry != null">
- industry = #{record.industry,jdbcType=INTEGER},
- </if>
- <if test="record.contacts != null">
- contacts = #{record.contacts,jdbcType=VARCHAR},
- </if>
- <if test="record.email != null">
- email = #{record.email,jdbcType=VARCHAR},
- </if>
- <if test="record.professionalTitle != null">
- professional_title = #{record.professionalTitle,jdbcType=VARCHAR},
- </if>
- <if test="record.workUnit != null">
- work_unit = #{record.workUnit,jdbcType=VARCHAR},
- </if>
- <if test="record.education != null">
- education = #{record.education,jdbcType=VARCHAR},
- </if>
- <if test="record.majorCategory != null">
- major_category = #{record.majorCategory,jdbcType=VARCHAR},
- </if>
- <if test="record.qualification != null">
- qualification = #{record.qualification,jdbcType=VARCHAR},
- </if>
- <if test="record.investment != null">
- investment = #{record.investment,jdbcType=INTEGER},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- update user_identity
- set id = #{record.id,jdbcType=VARCHAR},
- uid = #{record.uid,jdbcType=VARCHAR},
- username = #{record.username,jdbcType=VARCHAR},
- sex = #{record.sex,jdbcType=VARCHAR},
- date_of_birth_year = #{record.dateOfBirthYear,jdbcType=VARCHAR},
- date_of_birth_month = #{record.dateOfBirthMonth,jdbcType=VARCHAR},
- id_number = #{record.idNumber,jdbcType=VARCHAR},
- positive_id_url = #{record.positiveIdUrl,jdbcType=VARCHAR},
- opposite_id_url = #{record.oppositeIdUrl,jdbcType=VARCHAR},
- province = #{record.province,jdbcType=INTEGER},
- city = #{record.city,jdbcType=INTEGER},
- area = #{record.area,jdbcType=INTEGER},
- contact_mobile = #{record.contactMobile,jdbcType=VARCHAR},
- bank_name = #{record.bankName,jdbcType=VARCHAR},
- bank_account = #{record.bankAccount,jdbcType=VARCHAR},
- bank_card_number = #{record.bankCardNumber,jdbcType=VARCHAR},
- amount_money = #{record.amountMoney,jdbcType=DECIMAL},
- audit_status = #{record.auditStatus,jdbcType=INTEGER},
- process = #{record.process,jdbcType=INTEGER},
- wrong_count = #{record.wrongCount,jdbcType=INTEGER},
- payment_date = #{record.paymentDate,jdbcType=TIMESTAMP},
- expert = #{record.expert,jdbcType=INTEGER},
- celebrity = #{record.celebrity,jdbcType=INTEGER},
- international = #{record.international,jdbcType=INTEGER},
- fixed_tel = #{record.fixedTel,jdbcType=VARCHAR},
- qq = #{record.qq,jdbcType=VARCHAR},
- postal_address = #{record.postalAddress,jdbcType=VARCHAR},
- postcode = #{record.postcode,jdbcType=VARCHAR},
- review_instructions = #{record.reviewInstructions,jdbcType=VARCHAR},
- industry = #{record.industry,jdbcType=INTEGER},
- contacts = #{record.contacts,jdbcType=VARCHAR},
- email = #{record.email,jdbcType=VARCHAR},
- professional_title = #{record.professionalTitle,jdbcType=VARCHAR},
- work_unit = #{record.workUnit,jdbcType=VARCHAR},
- education = #{record.education,jdbcType=VARCHAR},
- major_category = #{record.majorCategory,jdbcType=VARCHAR},
- qualification = #{record.qualification,jdbcType=VARCHAR},
- investment = #{record.investment,jdbcType=INTEGER}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.UserIdentity">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- update user_identity
- <set>
- <if test="uid != null">
- uid = #{uid,jdbcType=VARCHAR},
- </if>
- <if test="username != null">
- username = #{username,jdbcType=VARCHAR},
- </if>
- <if test="sex != null">
- sex = #{sex,jdbcType=VARCHAR},
- </if>
- <if test="dateOfBirthYear != null">
- date_of_birth_year = #{dateOfBirthYear,jdbcType=VARCHAR},
- </if>
- <if test="dateOfBirthMonth != null">
- date_of_birth_month = #{dateOfBirthMonth,jdbcType=VARCHAR},
- </if>
- <if test="idNumber != null">
- id_number = #{idNumber,jdbcType=VARCHAR},
- </if>
- <if test="positiveIdUrl != null">
- positive_id_url = #{positiveIdUrl,jdbcType=VARCHAR},
- </if>
- <if test="oppositeIdUrl != null">
- opposite_id_url = #{oppositeIdUrl,jdbcType=VARCHAR},
- </if>
- <if test="province != null">
- province = #{province,jdbcType=INTEGER},
- </if>
- <if test="city != null">
- city = #{city,jdbcType=INTEGER},
- </if>
- <if test="area != null">
- area = #{area,jdbcType=INTEGER},
- </if>
- <if test="contactMobile != null">
- contact_mobile = #{contactMobile,jdbcType=VARCHAR},
- </if>
- <if test="bankName != null">
- bank_name = #{bankName,jdbcType=VARCHAR},
- </if>
- <if test="bankAccount != null">
- bank_account = #{bankAccount,jdbcType=VARCHAR},
- </if>
- <if test="bankCardNumber != null">
- bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
- </if>
- <if test="amountMoney != null">
- amount_money = #{amountMoney,jdbcType=DECIMAL},
- </if>
- <if test="auditStatus != null">
- audit_status = #{auditStatus,jdbcType=INTEGER},
- </if>
- <if test="process != null">
- process = #{process,jdbcType=INTEGER},
- </if>
- <if test="wrongCount != null">
- wrong_count = #{wrongCount,jdbcType=INTEGER},
- </if>
- <if test="paymentDate != null">
- payment_date = #{paymentDate,jdbcType=TIMESTAMP},
- </if>
- <if test="expert != null">
- expert = #{expert,jdbcType=INTEGER},
- </if>
- <if test="celebrity != null">
- celebrity = #{celebrity,jdbcType=INTEGER},
- </if>
- <if test="international != null">
- international = #{international,jdbcType=INTEGER},
- </if>
- <if test="fixedTel != null">
- fixed_tel = #{fixedTel,jdbcType=VARCHAR},
- </if>
- <if test="qq != null">
- qq = #{qq,jdbcType=VARCHAR},
- </if>
- <if test="postalAddress != null">
- postal_address = #{postalAddress,jdbcType=VARCHAR},
- </if>
- <if test="postcode != null">
- postcode = #{postcode,jdbcType=VARCHAR},
- </if>
- <if test="reviewInstructions != null">
- review_instructions = #{reviewInstructions,jdbcType=VARCHAR},
- </if>
- <if test="industry != null">
- industry = #{industry,jdbcType=INTEGER},
- </if>
- <if test="contacts != null">
- contacts = #{contacts,jdbcType=VARCHAR},
- </if>
- <if test="email != null">
- email = #{email,jdbcType=VARCHAR},
- </if>
- <if test="professionalTitle != null">
- professional_title = #{professionalTitle,jdbcType=VARCHAR},
- </if>
- <if test="workUnit != null">
- work_unit = #{workUnit,jdbcType=VARCHAR},
- </if>
- <if test="education != null">
- education = #{education,jdbcType=VARCHAR},
- </if>
- <if test="majorCategory != null">
- major_category = #{majorCategory,jdbcType=VARCHAR},
- </if>
- <if test="qualification != null">
- qualification = #{qualification,jdbcType=VARCHAR},
- </if>
- <if test="investment != null">
- investment = #{investment,jdbcType=INTEGER},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.UserIdentity">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Thu Nov 30 17:32:28 CST 2017.
- -->
- update user_identity
- set uid = #{uid,jdbcType=VARCHAR},
- username = #{username,jdbcType=VARCHAR},
- sex = #{sex,jdbcType=VARCHAR},
- date_of_birth_year = #{dateOfBirthYear,jdbcType=VARCHAR},
- date_of_birth_month = #{dateOfBirthMonth,jdbcType=VARCHAR},
- id_number = #{idNumber,jdbcType=VARCHAR},
- positive_id_url = #{positiveIdUrl,jdbcType=VARCHAR},
- opposite_id_url = #{oppositeIdUrl,jdbcType=VARCHAR},
- province = #{province,jdbcType=INTEGER},
- city = #{city,jdbcType=INTEGER},
- area = #{area,jdbcType=INTEGER},
- contact_mobile = #{contactMobile,jdbcType=VARCHAR},
- bank_name = #{bankName,jdbcType=VARCHAR},
- bank_account = #{bankAccount,jdbcType=VARCHAR},
- bank_card_number = #{bankCardNumber,jdbcType=VARCHAR},
- amount_money = #{amountMoney,jdbcType=DECIMAL},
- audit_status = #{auditStatus,jdbcType=INTEGER},
- process = #{process,jdbcType=INTEGER},
- wrong_count = #{wrongCount,jdbcType=INTEGER},
- payment_date = #{paymentDate,jdbcType=TIMESTAMP},
- expert = #{expert,jdbcType=INTEGER},
- celebrity = #{celebrity,jdbcType=INTEGER},
- international = #{international,jdbcType=INTEGER},
- fixed_tel = #{fixedTel,jdbcType=VARCHAR},
- qq = #{qq,jdbcType=VARCHAR},
- postal_address = #{postalAddress,jdbcType=VARCHAR},
- postcode = #{postcode,jdbcType=VARCHAR},
- review_instructions = #{reviewInstructions,jdbcType=VARCHAR},
- industry = #{industry,jdbcType=INTEGER},
- contacts = #{contacts,jdbcType=VARCHAR},
- email = #{email,jdbcType=VARCHAR},
- professional_title = #{professionalTitle,jdbcType=VARCHAR},
- work_unit = #{workUnit,jdbcType=VARCHAR},
- education = #{education,jdbcType=VARCHAR},
- major_category = #{majorCategory,jdbcType=VARCHAR},
- qualification = #{qualification,jdbcType=VARCHAR},
- investment = #{investment,jdbcType=INTEGER}
- where id = #{id,jdbcType=VARCHAR}
- </update>
-
- <select id="selectUserIdentityByUserId" parameterType="java.lang.String" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from user_identity
- where uid = #{uid,jdbcType=VARCHAR}
- </select>
-
- <select id="selectUserIdentityBoByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.UserIdentityBo">
- select
- t.id, t.uid, t.username, t.sex, t.date_of_birth_year as dateOfBirthYear,
- t.date_of_birth_month as dateOfBirthMonth, t.id_number as idNumber, t.audit_status as auditStatus,
- u.mobile, u.number from user u left JOIN user_identity t
- on t.uid = u.id where t.uid=#{uid,jdbcType=VARCHAR}
- </select>
-
- <select id="selectAuditorUserIdentityByUserId" parameterType="java.lang.String" resultType="com.goafanti.user.bo.AuditorUserIdentityDetailBo">
- select
- u.aid,
- u.mid,
- u.lvl,
- ui.id,
- ui.uid,
- ui.username,
- ui.sex,
- ui.date_of_birth_year as dateOfBirthYear,
- ui.date_of_birth_month as dateOfBirthMonth,
- ui.id_number as idNumber,
- ui.positive_id_url as positiveIdUrl,
- ui.opposite_id_url as oppositeIdUrl,
- ui.province,
- ui.city,
- ui.area,
- ui.contact_mobile as contactMobile,
- ui.bank_name as bankName,
- ui.bank_account as bankAccount,
- ui.bank_card_number as bankCardNumber,
- ui.amount_money as amountMoney,
- ui.audit_status as auditStatus,
- ui.payment_date as paymentDate,
- ui.expert,
- ui.celebrity
- from user u
- LEFT JOIN user_identity ui on u.id = ui.uid
- where u.id = #{uid,jdbcType=VARCHAR}
- </select>
-
- <select id="selectManagerUserNames" parameterType="java.lang.String" resultType="com.goafanti.user.bo.UserNames">
- select u.id as uid, i.username
- from user u INNER JOIN
- user_identity i on u.id = i.uid
- where u.lvl = 1
- <if test="_parameter != null">
- and u.mid = #{aid,jdbcType=VARCHAR}
- </if>
- </select>
-
- <select id="selectAllUserNames" parameterType="java.lang.String" resultType="com.goafanti.user.bo.UserNames">
- select u.id as uid, i.username
- from user u INNER JOIN
- user_identity i on u.id = i.uid
- where u.lvl = 1
- <if test="_parameter != null">
- and u.aid = #{aid,jdbcType=VARCHAR}
- </if>
- </select>
-
- <select id="selectManagerAchievementUserOwner" resultType="com.goafanti.user.bo.UserNames">
- select u.id as uid, ui.username, u.mobile
- from user u INNER JOIN
- user_identity ui on u.id = ui.uid
- where u.lvl = 1 and ui.username like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
- <if test="aid != null">
- and u.mid = #{aid,jdbcType=VARCHAR}
- </if>
-
- </select>
-
- <select id="selectAchievementUserOwner" resultType="com.goafanti.user.bo.UserNames">
- select u.id as uid, ui.username, u.mobile
- from user u INNER JOIN
- user_identity ui on u.id = ui.uid
- where u.lvl = 1 and ui.username like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
- <if test="aid != null">
- and u.aid = #{aid,jdbcType=VARCHAR}
- </if>
-
- </select>
-
- <select id="findSearchSubscriberListByPage" parameterType="String" resultType="com.goafanti.portal.bo.UserSubscriberListBo">
- SELECT
- u.id as uid, ui.username, u.number,
- ui.id as identityId, ui.province,
- u.head_portrait_url as personPortraitUrl,
- adc.achievement_count as achievementNum,
- adc.demand_count as demandNum,
- uc.engaged_field as engagedField,
- uc.work_unit as workUnit,
- ui.professional_title as position,
- ui.international
- FROM
- <![CDATA[ user ]]> u
- LEFT JOIN user_identity ui ON ui.uid = u.id
- LEFT JOIN user_career uc ON uc.uid = u.id
- <!-- LEFT JOIN user_info info ON info.uid = u.id -->
- LEFT JOIN achievement_demand_count adc ON adc.uid = u.id
- WHERE
- u.type = 0 and ui.expert = 1
- <if test="null != level and level==1 ">
- AND u.lvl <![CDATA[ >= ]]> 1
- </if>
- <if test="null !=level and level==0">
- AND u.lvl = 0
- </if>
- <if test="international !=null">
- AND ui.international= #{international,jdbcType=INTEGER}
- </if>
- <if test="province != null">
- AND ui.province = #{province,jdbcType=INTEGER}
- </if>
- <if test="city != null">
- AND ui.city = #{city,jdbcType=INTEGER}
- </if>
- <if test="area != null">
- AND ui.area = #{area,jdbcType=INTEGER}
- </if>
- <if test="field != null">
- AND uc.engaged_field like CONCAT(#{field,jdbcType=VARCHAR}, '%')
- </if>
- <if test="name != null">
- AND ui.username like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
- </if>
- ORDER BY
- u.number
- <if test="page_sql!=null">
- ${page_sql}
- </if>
- </select>
-
- <select id="findSearchSubscriberCount" parameterType="String" resultType="java.lang.Integer">
- SELECT
- count(1)
- FROM
- <![CDATA[ user ]]> u
- LEFT JOIN user_identity ui ON ui.uid = u.id
- LEFT JOIN user_career uc ON uc.uid = u.id
- WHERE
- u.type = 0 and ui.expert = 1
- <if test="null != level and level==1 ">
- AND u.lvl <![CDATA[ >= ]]> 1
- </if>
- <if test="null != level and level==0">
- AND u.lvl = 0
- </if>
- <if test="international !=null">
- AND ui.international= #{international,jdbcType=INTEGER}
- </if>
- <if test="province != null">
- AND ui.province = #{province,jdbcType=INTEGER}
- </if>
- <if test="city != null">
- AND ui.city = #{city,jdbcType=INTEGER}
- </if>
- <if test="area != null">
- AND ui.area = #{area,jdbcType=INTEGER}
- </if>
- <if test="field != null">
- AND uc.engaged_field like CONCAT(#{field,jdbcType=VARCHAR}, '%')
- </if>
- <if test="name != null">
- AND ui.username like CONCAT('%', #{name,jdbcType=VARCHAR}, '%')
- </if>
- </select>
- <select id="selectInternationalUser" resultType="com.goafanti.portal.bo.InternationalListBo">
- select
- a.id,
- b.username as ownerName,
- c.ability_label as abilityLabel,
- a.head_portrait_url as personPortraitUrl,
- e.education
- from user a
- left join user_identity b
- on a.id = b.uid
- left join user_ability c
- on a.id = c.uid
- <!-- left join user_info d
- on a.id = d.uid -->
- left join user_edu e
- on a.id = e.uid
- where 1=1
- <!-- and b.international_flag and b.audit_status = 5 and b.expert = 1 -->
- order by
- a.create_time desc
- limit 0,6
- </select>
- </mapper>
|