|
|
@@ -44,7 +44,6 @@
|
|
|
<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" />
|
|
|
<result column="graduate_school" jdbcType="VARCHAR" property="graduateSchool" />
|
|
|
<result column="consultant" jdbcType="INTEGER" property="consultant" />
|
|
|
<result column="consultation_price" jdbcType="DECIMAL" property="consultationPrice" />
|
|
|
@@ -128,7 +127,6 @@
|
|
|
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, graduate_school, consultant, consultation_price
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.UserIdentityExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -193,13 +191,13 @@
|
|
|
contact_mobile, bank_name, bank_account,
|
|
|
bank_card_number, amount_money, audit_status,
|
|
|
process, wrong_count, payment_date,
|
|
|
- expert, celebrity, international,
|
|
|
+ expert, international,
|
|
|
fixed_tel, qq, postal_address,
|
|
|
postcode, review_instructions, industry,
|
|
|
contacts, email, professional_title,
|
|
|
work_unit, education, major_category,
|
|
|
- qualification, investment, graduate_school,
|
|
|
- consultant, consultation_price)
|
|
|
+ qualification, graduate_school,
|
|
|
+ consultation_price)
|
|
|
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},
|
|
|
@@ -207,13 +205,13 @@
|
|
|
#{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},
|
|
|
+ #{expert,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}, #{graduateSchool,jdbcType=VARCHAR},
|
|
|
- #{consultant,jdbcType=INTEGER}, #{consultationPrice,jdbcType=DECIMAL})
|
|
|
+ #{qualification,jdbcType=VARCHAR}, #{graduateSchool,jdbcType=VARCHAR},
|
|
|
+ #{consultationPrice,jdbcType=DECIMAL})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.UserIdentity">
|
|
|
<!--
|
|
|
@@ -289,9 +287,6 @@
|
|
|
<if test="expert != null">
|
|
|
expert,
|
|
|
</if>
|
|
|
- <if test="celebrity != null">
|
|
|
- celebrity,
|
|
|
- </if>
|
|
|
<if test="international != null">
|
|
|
international,
|
|
|
</if>
|
|
|
@@ -334,15 +329,9 @@
|
|
|
<if test="qualification != null">
|
|
|
qualification,
|
|
|
</if>
|
|
|
- <if test="investment != null">
|
|
|
- investment,
|
|
|
- </if>
|
|
|
<if test="graduateSchool != null">
|
|
|
graduate_school,
|
|
|
</if>
|
|
|
- <if test="consultant != null">
|
|
|
- consultant,
|
|
|
- </if>
|
|
|
<if test="consultationPrice != null">
|
|
|
consultation_price,
|
|
|
</if>
|
|
|
@@ -414,9 +403,6 @@
|
|
|
<if test="expert != null">
|
|
|
#{expert,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="celebrity != null">
|
|
|
- #{celebrity,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="international != null">
|
|
|
#{international,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -459,15 +445,9 @@
|
|
|
<if test="qualification != null">
|
|
|
#{qualification,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="investment != null">
|
|
|
- #{investment,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="graduateSchool != null">
|
|
|
#{graduateSchool,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="consultant != null">
|
|
|
- #{consultant,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="consultationPrice != null">
|
|
|
#{consultationPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
@@ -558,9 +538,6 @@
|
|
|
<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>
|
|
|
@@ -603,15 +580,9 @@
|
|
|
<if test="record.qualification != null">
|
|
|
qualification = #{record.qualification,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.investment != null">
|
|
|
- investment = #{record.investment,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="record.graduateSchool != null">
|
|
|
graduate_school = #{record.graduateSchool,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.consultant != null">
|
|
|
- consultant = #{record.consultant,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="record.consultationPrice != null">
|
|
|
consultation_price = #{record.consultationPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
@@ -649,7 +620,6 @@
|
|
|
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},
|
|
|
@@ -664,9 +634,7 @@
|
|
|
education = #{record.education,jdbcType=VARCHAR},
|
|
|
major_category = #{record.majorCategory,jdbcType=VARCHAR},
|
|
|
qualification = #{record.qualification,jdbcType=VARCHAR},
|
|
|
- investment = #{record.investment,jdbcType=INTEGER},
|
|
|
graduate_school = #{record.graduateSchool,jdbcType=VARCHAR},
|
|
|
- consultant = #{record.consultant,jdbcType=INTEGER},
|
|
|
consultation_price = #{record.consultationPrice,jdbcType=DECIMAL}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -743,9 +711,6 @@
|
|
|
<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>
|
|
|
@@ -788,18 +753,18 @@
|
|
|
<if test="qualification != null">
|
|
|
qualification = #{qualification,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="investment != null">
|
|
|
- investment = #{investment,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="graduateSchool != null">
|
|
|
graduate_school = #{graduateSchool,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="consultant != null">
|
|
|
- consultant = #{consultant,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="consultationPrice != null">
|
|
|
consultation_price = #{consultationPrice,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="expertAudit != null">
|
|
|
+ expert_audit = #{expertAudit,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="releaseStatus != null">
|
|
|
+ release_status = #{releaseStatus,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -831,7 +796,6 @@
|
|
|
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},
|
|
|
@@ -846,9 +810,7 @@
|
|
|
education = #{education,jdbcType=VARCHAR},
|
|
|
major_category = #{majorCategory,jdbcType=VARCHAR},
|
|
|
qualification = #{qualification,jdbcType=VARCHAR},
|
|
|
- investment = #{investment,jdbcType=INTEGER},
|
|
|
graduate_school = #{graduateSchool,jdbcType=VARCHAR},
|
|
|
- consultant = #{consultant,jdbcType=INTEGER},
|
|
|
consultation_price = #{consultationPrice,jdbcType=DECIMAL}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -894,8 +856,7 @@
|
|
|
ui.amount_money as amountMoney,
|
|
|
ui.audit_status as auditStatus,
|
|
|
ui.payment_date as paymentDate,
|
|
|
- ui.expert,
|
|
|
- ui.celebrity
|
|
|
+ ui.expert
|
|
|
from user u
|
|
|
LEFT JOIN user_identity ui on u.id = ui.uid
|
|
|
where u.id = #{uid,jdbcType=VARCHAR}
|
|
|
@@ -1098,7 +1059,7 @@
|
|
|
|
|
|
<select id="findConsultantListByPage" resultType="com.goafanti.app.bo.consultantListBo">
|
|
|
select t.uid as id,t.username as username ,u.head_portrait_url as headPortraitUrl,u.introduction ,
|
|
|
- t.consultant,t.celebrity,ifnull(x.n,0) as reservationCount
|
|
|
+ t.consultant,ifnull(x.n,0) as reservationCount
|
|
|
from user_identity t
|
|
|
left join `user` u on t.uid=u.id
|
|
|
left join ( select y.x as n, y.seller_id
|
|
|
@@ -1122,7 +1083,7 @@
|
|
|
<select id="selectconsultantByUid" parameterType="java.lang.String" resultType="com.goafanti.app.bo.consultantListBo">
|
|
|
select
|
|
|
t.uid as id ,t.username as username ,t.consultant,u.head_portrait_url as headPortraitUrl,
|
|
|
- u.introduction,ifnull(o.x,0) as reservationCount,j.easemob_name as easemobName,t.celebrity
|
|
|
+ u.introduction,ifnull(o.x,0) as reservationCount,j.easemob_name as easemobName
|
|
|
from user_identity t
|
|
|
left join user u on t.uid =u.id
|
|
|
left join jpush_easemob_account j on t.uid=j.uid
|