瀏覽代碼

达人标签

yumeng 1 年之前
父節點
當前提交
543ec5d224

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

@@ -785,7 +785,7 @@ public class KuaishouItemCollectSamplesController extends BaseController {
     public JSONObject getGmvHour(@ApiParam("创建人ID") @RequestParam(value = "userId", required = true) Long userId,
                                  @ApiParam("类型,1-渠道;2-招商") @RequestParam(value = "type", required = true) String type,
                                  @ApiParam("媒体,1-抖音;2-快手") @RequestParam(value = "mediaId", required = false) String mediaId,
-                                 @ApiParam("开始日期") @RequestParam(value = "statDate", required = false) String startDate,
+                                 @ApiParam("开始日期") @RequestParam(value = "startDate", required = false) String startDate,
                                  @ApiParam("结束日期") @RequestParam(value = "endDate", required = false) String endDate
     ) {
         JSONObject returnJson = new JSONObject();

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

@@ -190,4 +190,6 @@ public interface SupplyChainMapper {
     List<JSONObject> getBytedanceChannelGmvHourByDate(@Param("userList") List<Long> userList, @Param("date") Long date);
 
     List<JSONObject> getBytedanceCourtshipGmvHourByDate(@Param("userList") List<Long> userList, @Param("date") Long date);
+
+    List<JSONObject> getPromoterId(@Param("promoterId") Long promoterId);
 }

+ 12 - 1
ruixuan-live/src/main/java/com/ruixuan/isc/service/impl/SupplyChainServiceImpl.java

@@ -371,7 +371,18 @@ public class SupplyChainServiceImpl implements ISupplyChainService {
 
     @Override
     public List<JSONObject> bdDetailListV2(Map<String, Object> requestMap) {
-        return supplyChainMapper.bdDetailListV2(requestMap);
+        List<JSONObject> jsonObjects = supplyChainMapper.bdDetailListV2(requestMap);
+        if (!Check.isNull(jsonObjects)) {
+            for (int i = 0; i < jsonObjects.size(); i++) {
+                JSONObject jsonObject = jsonObjects.get(i);
+                Long promoterId = jsonObject.getLong("promoterId");
+                List<JSONObject> tags = supplyChainMapper.getPromoterId(promoterId);
+                jsonObject.put("tags", tags);
+
+            }
+
+        }
+        return jsonObjects;
     }
 
     @Override

+ 7 - 0
ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

@@ -2965,5 +2965,12 @@
         WHERE activity_status = 2
            OR activity_status = 3
     </select>
+    <select id="getPromoterId" resultType="com.alibaba.fastjson.JSONObject" parameterType="java.lang.Long">
+        select tag, proportion
+        from promoter_tag
+        where promoter_id = #{promoterId}
+        order by tag_oid_num desc
+        limit 5
+    </select>
 
 </mapper>