|
|
@@ -56,24 +56,25 @@
|
|
|
id, aid, customer_typ, share_typ, agent_id, company_intention, create_time, follow_situation,
|
|
|
customer_statue, paid
|
|
|
</sql>
|
|
|
- <select id="selectCustomerByPrimaryKey" parameterType="java.lang.String" resultMap="com.goafanti.customer.bo.CustomerBo">
|
|
|
+ <select id="selectCustomerByPrimaryKey" parameterType="java.lang.String" resultType="com.goafanti.customer.bo.CustomerBo">
|
|
|
select
|
|
|
a.customer_typ as customerTyp,
|
|
|
- a.share_typ as shareTyp,
|
|
|
+ a.share_typ as shareTyp,
|
|
|
a.company_intention as companyIntention,
|
|
|
a.create_time as createTime,
|
|
|
a.follow_situation as followSituation,
|
|
|
- a.customer_statue as ,customerStatue,
|
|
|
- b.name,b.sex,b.mobile,b.telNum,b.email,b.qq,b.wechat,b.depatrment,b.remarks,
|
|
|
+ a.customer_statue as customerStatue,
|
|
|
+ b.name,b.sex,b.mobile,b.tel_num as telNum,b.email,b.qq,b.wechat,b.depatrment,b.remarks,
|
|
|
b.customer_position as customerPosition,
|
|
|
c.company_name as companyName,
|
|
|
c.location_province as locationProvince,
|
|
|
c.company_industry as companyIndustry,
|
|
|
- c.adress
|
|
|
- from customer a left join customer_user_info b on a.id=b.cid
|
|
|
- left join customer_organization_info c on a.id=c.cid
|
|
|
+ c.adress -->
|
|
|
+ from customer a
|
|
|
+ left join customer_user_info b on a.id=b.cid
|
|
|
+ left join customer_organization_info c on a.id=c.cid
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
- </select>
|
|
|
+ </select>
|
|
|
<delete id="deleteCustomerByPrimaryKey" parameterType="java.lang.String">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|