Jelajahi Sumber

达人列表添加字段

zhaoxian 2 tahun lalu
induk
melakukan
a89428105d

+ 2 - 2
ruixuan-live/src/main/java/com/ruixuan/isc/controller/KuaishouItemCollectSamplesController.java

@@ -581,7 +581,7 @@ public class KuaishouItemCollectSamplesController extends BaseController {
             @ApiParam("有效订单数起始数") @RequestParam(value = "validorderStart", required = false) Double validorderStart,
             @ApiParam("有效订单数结束数") @RequestParam(value = "validorderEnd", required = false) Double validorderEnd,
             @ApiParam("起始时间") @RequestParam(value = "startDate", required = true) String startDate,
-            @ApiParam("结束时间") @RequestParam(value = "EndDate", required = true) String EndDate
+            @ApiParam("结束时间") @RequestParam(value = "endDate", required = true) String endDate
     ) {
         Map<String, Object> map = new HashMap<>();
         map.put("itemId", itemId);
@@ -593,7 +593,7 @@ public class KuaishouItemCollectSamplesController extends BaseController {
         map.put("validorderStart", validorderStart);
         map.put("validorderEnd", validorderEnd);
         map.put("startDate", startDate);
-        map.put("EndDate", EndDate);
+        map.put("endDate", endDate);
         JSONObject returnJson = new JSONObject();
         try {
             List<JSONObject> list = kuaishouItemCollectSamplesService.queryProductList(map);

+ 2 - 0
ruixuan-live/src/main/java/com/ruixuan/isc/mapper/KuaishouPromoterMapper.java

@@ -64,4 +64,6 @@ public interface KuaishouPromoterMapper {
     List<Long> selectPromoterIdList(@Param("userList") List<Long> userList);
 
     JSONObject getgetMonthPromoterTotal(@Param("userList") List<Long> userList, @Param("start") String start, @Param("end") String end);
+
+    void updateKuaishouPromoterByPromoterId(KuaishouPromoter promoters);
 }

+ 10 - 5
ruixuan-live/src/main/resources/mapper/isc/KuaishouItemCollectSamplesMapper.xml

@@ -569,9 +569,11 @@
         regimental_promotion_amount as 'regimentalPromotionAmount'
         FROM kuaishou_supply_chain
         <where>
-            <if test="startDate != null and EndDate != null">
+            <if test="startDate != null and startDate != ''">
                 AND stat_date >= #{startDate}
-                AND stat_date &lt;= #{EndDate}
+            </if>
+            <if test="endDate != null and endDate != '' ">
+                AND stat_date &lt;= #{endDate}
             </if>
             <if test="itemId != null and itemId != ''">
                 AND item_id = #{itemId}
@@ -585,8 +587,10 @@
             <if test="promoterId != null and promoterId != ''">
                 AND promoter_id = #{promoterId}
             </if>
-            <if test="reservePriceStart != null and reservePriceEnd != null">
+            <if test="reservePriceStart != null and reservePriceStart != ''">
                 AND reserve_price >= #{reservePriceStart}
+            </if>
+            <if test="reservePriceEnd != null and reservePriceEnd != ''">
                 AND reserve_price &lt;= #{reservePriceEnd}
             </if>
         </where>
@@ -594,11 +598,12 @@
         ORDER BY create_time DESC
         )t
         where 1=1
-        <if test="validorderStart != null and validorderEnd != null">
+        <if test="validorderStart != null and validorderStart != ''">
             AND validorder >= #{validorderStart}
+        </if>
+        <if test="validorderEnd != null and validorderEnd != ''">
             AND validorder &lt;= #{validorderEnd}
         </if>
     </select>
 
-
 </mapper>

+ 27 - 0
ruixuan-live/src/main/resources/mapper/isc/KuaishouPromoterMapper.xml

@@ -214,12 +214,39 @@
             <if test="province != null">province = #{province},</if>
             <if test="commissionRequirement != null">commission_requirement = #{commissionRequirement},</if>
             <if test="categoryRequirement != null">category_requirement = #{categoryRequirement},</if>
+            <if test="avgVideoSales != null">avg_video_sales = #{avgVideoSales},</if>
+            <if test="videoSales != null">video_sales = #{videoSales},</if>
             <if test="createTime != null">create_time = #{createTime},</if>
             <if test="updateTime != null">update_time = #{updateTime},</if>
         </trim>
         where id = #{id}
     </update>
 
+    <update id="updateKuaishouPromoterByPromoterId" parameterType="com.ruixuan.isc.entity.KuaishouPromoter">
+        update kuaishou_promoter
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="userId != null">user_id = #{userId},</if>
+            <if test="userName != null">user_name = #{userName},</if>
+            <if test="promoterId != null">promoter_id = #{promoterId},</if>
+            <if test="promoterNickName != null">promoter_nick_name = #{promoterNickName},</if>
+            <if test="totalSale != null">total_sale = #{totalSale},</if>
+            <if test="fansNumber != null">fans_number = #{fansNumber},</if>
+            <if test="promoterUrl != null">promoter_url = #{promoterUrl},</if>
+            <if test="phone != null">phone = #{phone},</if>
+            <if test="consignee != null">consignee = #{consignee},</if>
+            <if test="promoterAddress != null">promoter_address = #{promoterAddress},</if>
+            <if test="state != null">state = #{state},</if>
+            <if test="province != null">province = #{province},</if>
+            <if test="commissionRequirement != null">commission_requirement = #{commissionRequirement},</if>
+            <if test="categoryRequirement != null">category_requirement = #{categoryRequirement},</if>
+            <if test="avgVideoSales != null">avg_video_sales = #{avgVideoSales},</if>
+            <if test="videoSales != null">video_sales = #{videoSales},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+        </trim>
+        where promoter_id = #{promoterId}
+    </update>
+
     <delete id="deleteKuaishouPromoterById" parameterType="Long">
         delete
         from kuaishou_promoter