|
|
@@ -54,10 +54,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="thirdAccount" column="third_account" />
|
|
|
<result property="clueId" column="clue_id" />
|
|
|
<result property="qwName" column="qw_name" />
|
|
|
+ <result property="platformName" column="platform_name" />
|
|
|
+ <result property="goodsName" column="goods_name" />
|
|
|
+ <result property="goodsSpecification" column="goods_specification" />
|
|
|
+ <result property="shopName" column="shop_name" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCrmCustomerVo">
|
|
|
- select customer_id, customer_code, customer_name, mobile, sex, weixin, remark, user_id, create_user_id, receive_user_id, customer_user_id, address,city_ids, location, detail_address, lng, lat, create_time, update_time, status, is_receive, dept_id, is_del, customer_type, receive_time, pool_time, company_id, is_line, source, tags,ext_json,visit_status,register_date,register_link_url,register_desc,register_submit_time,is_pool,register_type,pay_money,buy_count,source_code,push_time,push_code,visit_time,traffic_source,import_type,third_account,clue_id,qw_name from crm_customer
|
|
|
+ select * from crm_customer
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCrmCustomerList" parameterType="CrmCustomer" resultMap="CrmCustomerResult">
|
|
|
@@ -94,6 +98,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="thirdAccount != null "> and third_account = #{thirdAccount}</if>
|
|
|
<if test="clueId != null "> and clue_id = #{clueId}</if>
|
|
|
<if test="qwName != null "> and qw_name = #{qwName}</if>
|
|
|
+ <if test="platformName != null "> and platform_name = #{platformName}</if>
|
|
|
+ <if test="goodsName != null "> and goods_name = #{goodsName}</if>
|
|
|
+ <if test="goodsSpecification != null "> and goods_specification = #{goodsSpecification}</if>
|
|
|
+ <if test="shopName != null "> and shop_name = #{shopName}</if>
|
|
|
</where>
|
|
|
order by customer_id desc
|
|
|
</select>
|
|
|
@@ -159,6 +167,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="thirdAccount != null">third_account,</if>
|
|
|
<if test="clueId != null">clue_id,</if>
|
|
|
<if test="qwName != null">qw_name,</if>
|
|
|
+ <if test="platformName != null">platform_name,</if>
|
|
|
+ <if test="goodsName != null">goods_name,</if>
|
|
|
+ <if test="goodsSpecification != null">goods_specification,</if>
|
|
|
+ <if test="shopName != null">shop_name,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="customerCode != null">#{customerCode},</if>
|
|
|
@@ -209,6 +221,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="thirdAccount != null">#{thirdAccount},</if>
|
|
|
<if test="clueId != null">#{clueId},</if>
|
|
|
<if test="qwName != null">#{qwName},</if>
|
|
|
+ <if test="platformName != null">#{platformName},</if>
|
|
|
+ <if test="goodsName != null">#{goodsName},</if>
|
|
|
+ <if test="goodsSpecification != null">#{goodsSpecification},</if>
|
|
|
+ <if test="shopName != null">#{shopName},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -263,6 +279,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="thirdAccount != null">third_account = #{thirdAccount},</if>
|
|
|
<if test="clueId != null">clue_id = #{clueId},</if>
|
|
|
<if test="qwName != null">qw_name = #{qwName},</if>
|
|
|
+ <if test="platformName != null">platform_name = #{platformName},</if>
|
|
|
+ <if test="goodsName != null">goods_name = #{goodsName},</if>
|
|
|
+ <if test="goodsSpecification != null">goods_specification = #{goodsSpecification},</if>
|
|
|
+ <if test="shopName != null">shop_name = #{shopName},</if>
|
|
|
</trim>
|
|
|
where customer_id = #{customerId}
|
|
|
</update>
|