|
@@ -217,7 +217,7 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="check" resultType="java.lang.Integer">
|
|
|
+ <select id="check" resultType="java.lang.String">
|
|
|
select count(1)
|
|
|
from kuaishou_item_collect_samples
|
|
|
where item_id = #{itemId}
|
|
@@ -292,7 +292,7 @@
|
|
|
where item_id = #{itemId}
|
|
|
and collect_sample_status >= 3
|
|
|
</select>
|
|
|
- <select id="promoterInfo" resultType="com.alibaba.fastjson.JSONObject" parameterType="java.lang.Long">
|
|
|
+ <select id="promoterInfo" resultType="com.alibaba.fastjson.JSONObject" parameterType="java.lang.String">
|
|
|
select total_sale as 'totalSale', fans_number as 'fansNumber'
|
|
|
from kuaishou_promoter
|
|
|
where promoter_id = #{promoterId} limit 1
|
|
@@ -706,7 +706,7 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <select id="checkByRelateIdAndPromoterId" resultType="java.lang.Integer">
|
|
|
+ <select id="checkByRelateIdAndPromoterId" resultType="java.lang.String">
|
|
|
select count(1)
|
|
|
from kuaishou_item_collect_samples
|
|
|
where item_id in (
|
|
@@ -723,9 +723,9 @@
|
|
|
<!-- 出单量 >= 50 且 状态为5已签收待上传作业 的数据-->
|
|
|
<select id="getAccordWithOrderQuantityList" resultType="java.lang.Long">
|
|
|
SELECT t1.id
|
|
|
- FROM
|
|
|
- kuaishou_item_collect_samples t1
|
|
|
- LEFT JOIN promoter_iterm_oerder_amount t2 ON t1.item_id = t2.item_id and t1.promoter_id = t2.promoter_id
|
|
|
+ FROM kuaishou_item_collect_samples t1
|
|
|
+ LEFT JOIN promoter_iterm_oerder_amount t2
|
|
|
+ ON t1.item_id = t2.item_id and t1.promoter_id = t2.promoter_id
|
|
|
WHERE t1.collect_sample_status = 5
|
|
|
AND t2.valid_order_num >= 50
|
|
|
</select>
|