소스 검색

达人视频销售信息接口

zhaoxian 2 년 전
부모
커밋
1fdfc9cf8c

+ 8 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/controller/KuaiShouPromoterController.java

@@ -27,4 +27,12 @@ public class KuaiShouPromoterController {
         return promoterService.getPromoterInfo(promoterId);
     }
 
+    /**
+     * 查询达人详细数据
+     */
+    @GetMapping("/getPromoterVideoInfo")
+    public JSONObject getPromoterVideoInfo(Long promoterId) {
+        return promoterService.getPromoterVideoInfo(promoterId);
+    }
+
 }

+ 2 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/KuaishouPromoterMapper.java

@@ -14,4 +14,6 @@ public interface KuaishouPromoterMapper {
     List<JSONObject> getPromoterShortVideosCommerceInfo(@Param("promoterId") Long promoterId, @Param("startInt") Integer startInt, @Param("endInt") Integer endInt);
 
     List<JSONObject> getPromoterLiveCommerceInfo(@Param("promoterId") Long promoterId, @Param("startInt") Integer startInt, @Param("endInt") Integer endInt);
+
+    JSONObject getPromoterVideoInfo(Long promoterId);
 }

+ 6 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/KuaishouPromoterMapper.xml

@@ -70,4 +70,10 @@
         ORDER BY `date`
     </select>
 
+    <select id="getPromoterVideoInfo" resultType="com.alibaba.fastjson.JSONObject">
+        SELECT IFNULL(avgVideoSales, 0.0) as 'avgVideoSales', IFNULL(videoSales, 0.0) as 'videoSales''
+        from kwai_promoter.kwai_promoter_base_info
+        WHERE promoterId = #{promoterId}
+    </select>
+
 </mapper>

+ 2 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/service/IKuaishouPromoterService.java

@@ -5,4 +5,6 @@ import com.alibaba.fastjson.JSONObject;
 public interface IKuaishouPromoterService {
 
     JSONObject getPromoterInfo(Long promoterId);
+
+    JSONObject getPromoterVideoInfo(Long promoterId);
 }

+ 5 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/service/impl/IKuaishouPromoterServiceImpl.java

@@ -33,4 +33,9 @@ public class IKuaishouPromoterServiceImpl implements IKuaishouPromoterService {
         }
         return data;
     }
+
+    @Override
+    public JSONObject getPromoterVideoInfo(Long promoterId) {
+        return promoterMapper.getPromoterVideoInfo(promoterId);
+    }
 }