|
|
@@ -4,7 +4,7 @@
|
|
|
<resultMap id="BaseResultMap" type="com.goafanti.common.model.Customer">
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
- <result column="company_nmae" jdbcType="VARCHAR" property="companyName" />
|
|
|
+ <result column="company_name" jdbcType="VARCHAR" property="companyName" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="company_industry" jdbcType="VARCHAR" property="companyIndustry" />
|
|
|
<result column="company_intention" jdbcType="VARCHAR" property="companyIntention" />
|
|
|
@@ -21,7 +21,7 @@
|
|
|
<result column="fllow_situation" jdbcType="VARCHAR" property="fllowSituation" />
|
|
|
<result column="sex" jdbcType="INTEGER" property="sex" />
|
|
|
<result column="customer_statue" jdbcType="VARCHAR" property="customerStatue" />
|
|
|
- <result column="customer_typ" jdbcType="INTEGER" property="customerTyp" />
|
|
|
+ <result column="customer_typ" jdbcType="VARCHAR" property="customerTyp" />
|
|
|
<result column="tel_num" jdbcType="VARCHAR" property="telNum" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
@@ -83,7 +83,7 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, aid, company_nmae, create_time, company_industry, company_intention, adress,
|
|
|
+ id, aid, company_name, create_time, company_industry, company_intention, adress,
|
|
|
customer_name, customer_position, mobile, email, department, qq, wechat, remark,
|
|
|
province, fllow_situation, sex, customer_statue
|
|
|
</sql>
|
|
|
@@ -104,7 +104,7 @@
|
|
|
|
|
|
<!-- 新增客户 -->
|
|
|
<insert id="insertCustomer" parameterType="com.goafanti.common.model.Customer">
|
|
|
- insert into customer (id, aid, company_nmae,
|
|
|
+ insert into customer (id, aid, company_name,
|
|
|
create_time, company_industry, company_intention,
|
|
|
adress, customer_name, customer_position,
|
|
|
mobile, email, department,
|
|
|
@@ -117,7 +117,7 @@
|
|
|
#{mobile,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{department,jdbcType=VARCHAR},
|
|
|
#{qq,jdbcType=VARCHAR}, #{wechat,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
|
|
|
#{province,jdbcType=VARCHAR}, #{fllowSituation,jdbcType=VARCHAR}, #{sex,jdbcType=INTEGER},
|
|
|
- #{customerStatue,jdbcType=VARCHAR}, #{customerTyp,jdbcType=INTEGER}, #{telNum,jdbcType=VARCHAR},0,0)
|
|
|
+ #{customerStatue,jdbcType=VARCHAR}, #{customerTyp,jdbcType=VARCHAR}, #{telNum,jdbcType=VARCHAR},0,0)
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Customer">
|
|
|
@@ -130,7 +130,7 @@
|
|
|
aid,
|
|
|
</if>
|
|
|
<if test="companyName != null">
|
|
|
- company_nmae,
|
|
|
+ company_name,
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
@@ -250,7 +250,7 @@
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="companyName != null">
|
|
|
- company_nmae = #{companyName,jdbcType=VARCHAR},
|
|
|
+ company_name = #{companyName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
@@ -327,7 +327,7 @@
|
|
|
a.tel_num = #{telNum,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="customerTyp != null">
|
|
|
- a.typ = #{customerTyp,jdbcType=INTEGER},
|
|
|
+ a.typ = #{customerTyp,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="companyIntention != null">
|
|
|
a.company_intention = #{companyIntention,jdbcType=VARCHAR},
|
|
|
@@ -364,7 +364,7 @@
|
|
|
a.tel_num = #{telNum,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="customerTyp != null">
|
|
|
- a.typ = #{customerTyp,jdbcType=INTEGER},
|
|
|
+ a.typ = #{customerTyp,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="companyIntention != null">
|
|
|
a.company_intention = #{companyIntention,jdbcType=VARCHAR},
|