|
@@ -25,6 +25,7 @@
|
|
|
<result property="promoterUrl" column="promoter_url"/>
|
|
|
<result property="promoterPhone" column="promoter_phone"/>
|
|
|
<result property="promoterAddress" column="promoter_address"/>
|
|
|
+ <result property="consignee" column="consignee"/>
|
|
|
<result property="courierNumber" column="courier_number"/>
|
|
|
<result property="taskFileUrl" column="task_file_url"/>
|
|
|
<result property="collectSampleStatus" column="collect_sample_status"/>
|
|
@@ -34,7 +35,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectKuaishouItemCollectSamplesVo">
|
|
|
- select id, item_id, item_title, item_price, item_img_url, item_desc, commission_rate, regimental_promotion, sample_count, sample_requirement, item_create_id, item_create_name, collect_sample_id, collect_sample_name, partner_recommend_text, promoter_id, promoter_nick_name,promoter_url, promoter_phone, promoter_address, courier_number, task_file_url, collect_sample_status, collect_sample_desc, create_time, update_time from kuaishou_item_collect_samples
|
|
|
+ select id, item_id, item_title, item_price, item_img_url, item_desc, commission_rate, regimental_promotion, sample_count, sample_requirement, item_create_id, item_create_name, collect_sample_id, collect_sample_name, partner_recommend_text, promoter_id, promoter_nick_name,promoter_url, promoter_phone, promoter_address, consignee,courier_number, task_file_url, collect_sample_status, collect_sample_desc, create_time, update_time from kuaishou_item_collect_samples
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectKuaishouItemCollectSamplesList" parameterType="com.ruixuan.isc.entity.KuaishouItemCollectSamples"
|
|
@@ -101,6 +102,7 @@
|
|
|
promoter_id as 'promoterId',
|
|
|
promoter_nick_name as 'promoterNickName',
|
|
|
promoter_url as 'promoterUrl',
|
|
|
+ consignee,
|
|
|
concat(province,'-',promoter_address) as 'promoterAddress',
|
|
|
phone as 'promoterPhone'
|
|
|
from kuaishou_promoter
|
|
@@ -144,15 +146,16 @@
|
|
|
</select>
|
|
|
<select id="exportCollectSamples" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
select
|
|
|
+ id as 'id',
|
|
|
item_id as 'itemId',
|
|
|
item_title as 'itemTitle',
|
|
|
promoter_id as 'promoterId',
|
|
|
promoter_nick_name as 'promoterNickName',
|
|
|
sample_count as 'sampleCount',
|
|
|
sample_requirement as 'sampleRequirement',
|
|
|
+ consignee as 'consignee',
|
|
|
promoter_phone as 'promoterPhone',
|
|
|
promoter_address as 'promoterAddress'
|
|
|
-
|
|
|
from kuaishou_item_collect_samples
|
|
|
where 1= 1
|
|
|
<if test='ids != null and ids.size() > 0'>
|
|
@@ -189,6 +192,7 @@
|
|
|
<if test="promoterUrl != null">promoter_url,</if>
|
|
|
<if test="promoterPhone != null">promoter_phone,</if>
|
|
|
<if test="promoterAddress != null">promoter_address,</if>
|
|
|
+ <if test="consignee != null">consignee,</if>
|
|
|
<if test="courierNumber != null">courier_number,</if>
|
|
|
<if test="taskFileUrl != null">task_file_url,</if>
|
|
|
<if test="collectSampleStatus != null">collect_sample_status,</if>
|
|
@@ -217,6 +221,7 @@
|
|
|
<if test="promoterUrl != null">#{promoterUrl},</if>
|
|
|
<if test="promoterPhone != null">#{promoterPhone},</if>
|
|
|
<if test="promoterAddress != null">#{promoterAddress},</if>
|
|
|
+ <if test="consignee != null">#{consignee},</if>
|
|
|
<if test="courierNumber != null">#{courierNumber},</if>
|
|
|
<if test="taskFileUrl != null">#{taskFileUrl},</if>
|
|
|
<if test="collectSampleStatus != null">#{collectSampleStatus},</if>
|
|
@@ -245,6 +250,7 @@
|
|
|
promoter_nick_name,
|
|
|
promoter_phone,
|
|
|
promoter_address,
|
|
|
+ consignee,
|
|
|
courier_number,
|
|
|
task_file_url,
|
|
|
promoter_url,
|
|
@@ -272,6 +278,7 @@
|
|
|
#{add.promoterNickName},
|
|
|
#{add.promoterPhone},
|
|
|
#{add.promoterAddress},
|
|
|
+ #{add.consignee},
|
|
|
#{add.courierNumber},
|
|
|
#{add.taskFileUrl},
|
|
|
#{add.promoterUrl},
|
|
@@ -357,6 +364,7 @@
|
|
|
<if test="promoterUrl != null">promoter_url = #{promoterUrl},</if>
|
|
|
<if test="promoterPhone != null">promoter_phone = #{promoterPhone},</if>
|
|
|
<if test="promoterAddress != null">promoter_address = #{promoterAddress},</if>
|
|
|
+ <if test="consignee != null">consignee = #{consignee},</if>
|
|
|
<if test="courierNumber != null">courier_number = #{courierNumber},</if>
|
|
|
<if test="taskFileUrl != null">task_file_url = #{taskFileUrl},</if>
|
|
|
<if test="collectSampleStatus != null">collect_sample_status = #{collectSampleStatus},</if>
|