Jelajahi Sumber

小店评分

yumeng 11 bulan lalu
induk
melakukan
14d6ba3db8

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

@@ -341,10 +341,15 @@ public class SupplyChainController extends BaseController {
                 export.add(date.getString("deliveryRadio"));
                 export.add(date.getString("deliveryRadio"));
                 export.add(date.getString("notDeliveryNum"));
                 export.add(date.getString("notDeliveryNum"));
                 export.add(date.getString("ccrValue"));
                 export.add(date.getString("ccrValue"));
+                export.add(date.getString("shopStar"));
+                export.add(date.getString("mallLogisticsScore"));
+                export.add(date.getString("shopScore"));
+                export.add(date.getString("mallServiceScore"));
+                export.add(date.getString("mallQualityScore"));
                 exportList.add(export);
                 exportList.add(export);
             }
             }
         }
         }
-        String[] headers = {"所属人", "商品ID", "商品名称", "商品封面", "佣金率", "订单数", "有效订单数", "有效订单率", "发货数", "发货率", "未发货数", "ccr"};
+        String[] headers = {"所属人", "商品ID", "商品名称", "商品封面", "佣金率", "订单数", "有效订单数", "有效订单率", "发货数", "发货率", "未发货数", "ccr", "小店星级", "店铺物流分", "店铺评分", "店铺服务分", "店铺质量分"};
         OutputStream os = response.getOutputStream();
         OutputStream os = response.getOutputStream();
         ExportExcelUtils eeu = new ExportExcelUtils();
         ExportExcelUtils eeu = new ExportExcelUtils();
         XSSFWorkbook workbook = new XSSFWorkbook();
         XSSFWorkbook workbook = new XSSFWorkbook();
@@ -2021,7 +2026,9 @@ public class SupplyChainController extends BaseController {
         os.flush();
         os.flush();
         os.close();
         os.close();
     }
     }
+
     static ExecutorService addListCService = Executors.newFixedThreadPool(5);
     static ExecutorService addListCService = Executors.newFixedThreadPool(5);
+
     /**
     /**
      * 接口链接:
      * 接口链接:
      * https://open.kwaixiaodian.com/zone/new/docs/api?name=open.distribution.investment.activity.open.close&version=1
      * https://open.kwaixiaodian.com/zone/new/docs/api?name=open.distribution.investment.activity.open.close&version=1
@@ -2193,7 +2200,6 @@ public class SupplyChainController extends BaseController {
     }
     }
 
 
 
 
-
     @PostMapping(value = "/mgsAccept2")
     @PostMapping(value = "/mgsAccept2")
     public Map<String, Object> mgsAccept2(@RequestBody String eventsEncoded) {
     public Map<String, Object> mgsAccept2(@RequestBody String eventsEncoded) {
         try {
         try {

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

@@ -87,7 +87,6 @@ public class SupplyChainServiceImpl implements ISupplyChainService {
     @Override
     @Override
     public List<JSONObject> itemList(Map<String, Object> requestMap) {
     public List<JSONObject> itemList(Map<String, Object> requestMap) {
         List<JSONObject> list = supplyChainMapper.itemList(requestMap);
         List<JSONObject> list = supplyChainMapper.itemList(requestMap);
-
         return list;
         return list;
     }
     }
 
 

+ 34 - 5
ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

@@ -194,12 +194,19 @@
         then 0
         then 0
         else replace( t3.ccr_value,'%','')
         else replace( t3.ccr_value,'%','')
         end
         end
-        ) as 'ccrInt'
+        ) as 'ccrInt',
+        t4.shop_star as 'shopStar',
+        t4.mall_logistics_score as 'mallLogisticsScore',
+        t4.shop_score as 'shopScore',
+        t4.mall_service_score as 'mallServiceScore',
+        t4.mall_quality_score as 'mallQualityScore'
         from kuaishou_supply_chain t1
         from kuaishou_supply_chain t1
         left join kuaishou_item_bind_user t2
         left join kuaishou_item_bind_user t2
         on t1.item_id = t2.item_id
         on t1.item_id = t2.item_id
         left join kuaishou_item_ccr_info t3
         left join kuaishou_item_ccr_info t3
         on t1.item_id = t3.item_id
         on t1.item_id = t3.item_id
+        left join kuaishou_activity_open_item_list t4
+        on t1.item_id = t4.item_id
         where 1 = 1
         where 1 = 1
         <if test="start != null and start != ''">
         <if test="start != null and start != ''">
             and t1.order_create_time &gt;= #{start}
             and t1.order_create_time &gt;= #{start}
@@ -223,8 +230,12 @@
 
 
 
 
     <select id="itemBindList" resultType="com.alibaba.fastjson.JSONObject">
     <select id="itemBindList" resultType="com.alibaba.fastjson.JSONObject">
-        select t1.*,t2.*
-
+        select t1.*,t2.*,
+        t3.shop_star as 'shopStar',
+        t3.mall_logistics_score as 'mallLogisticsScore',
+        t3.shop_score as 'shopScore',
+        t3.mall_service_score as 'mallServiceScore',
+        t3.mall_quality_score as 'mallQualityScore'
         from (select t.item_id as 'itemId', t.item_title as 'itemTitle', t.user_id as 'userId', t.user_name as
         from (select t.item_id as 'itemId', t.item_title as 'itemTitle', t.user_id as 'userId', t.user_name as
         'userName',
         'userName',
         (case
         (case
@@ -267,6 +278,8 @@
         from kuaishou_supply_chain
         from kuaishou_supply_chain
         where order_create_time &gt;= #{start}
         where order_create_time &gt;= #{start}
         group by item_id) t2 on t1.itemId = t2.itemId
         group by item_id) t2 on t1.itemId = t2.itemId
+        left join kuaishou_activity_open_item_list t3
+        on t1.itemId = t3.item_id
 
 
         where 1 = 1
         where 1 = 1
         <if test="itemId != null and itemId != ''">
         <if test="itemId != null and itemId != ''">
@@ -867,12 +880,19 @@
         round(sum(case when t1.send_status = 1 and order_status != 80 then 1 else 0 end) / sum(case when t1.order_status
         round(sum(case when t1.send_status = 1 and order_status != 80 then 1 else 0 end) / sum(case when t1.order_status
         != 80 then 1 else 0 end) * 100, 2) as 'deliveryRadio',
         != 80 then 1 else 0 end) * 100, 2) as 'deliveryRadio',
         round(t1.item_commission_rate / 10,2) as 'itemCommissionRate',
         round(t1.item_commission_rate / 10,2) as 'itemCommissionRate',
-        t3.ccr_value as 'ccrValue'
+        t3.ccr_value as 'ccrValue',
+        t4.shop_star as 'shopStar',
+        t4.mall_logistics_score as 'mallLogisticsScore',
+        t4.shop_score as 'shopScore',
+        t4.mall_service_score as 'mallServiceScore',
+        t4.mall_quality_score as 'mallQualityScore'
         from kuaishou_supply_chain t1
         from kuaishou_supply_chain t1
         left join kuaishou_item_bind_user t2
         left join kuaishou_item_bind_user t2
         on t1.item_id = t2.item_id
         on t1.item_id = t2.item_id
         left join kuaishou_item_ccr_info t3
         left join kuaishou_item_ccr_info t3
         on t1.item_id = t3.item_id
         on t1.item_id = t3.item_id
+        left join kuaishou_activity_open_item_list t4
+        on t1.item_id = t4.item_id
         where 1 = 1
         where 1 = 1
         <if test="start != null and start != ''">
         <if test="start != null and start != ''">
             and t1.order_create_time &gt;= #{start}
             and t1.order_create_time &gt;= #{start}
@@ -2520,7 +2540,12 @@
 
 
     </select>
     </select>
     <select id="exportBindOrder" resultType="com.alibaba.fastjson.JSONObject">
     <select id="exportBindOrder" resultType="com.alibaba.fastjson.JSONObject">
-        select *,t3.ccr_value as 'ccrValue'
+        select *,t3.ccr_value as 'ccrValue',
+        t4.shop_star as 'shopStar',
+        t4.mall_logistics_score as 'mallLogisticsScore',
+        t4.shop_score as 'shopScore',
+        t4.mall_service_score as 'mallServiceScore',
+        t4.mall_quality_score as 'mallQualityScore'
         from (select item_id as 'itemId', item_title as 'itemTitle', user_id as 'userId', user_name as 'userName'
         from (select item_id as 'itemId', item_title as 'itemTitle', user_id as 'userId', user_name as 'userName'
         from kuaishou_item_list
         from kuaishou_item_list
         where
         where
@@ -2546,6 +2571,10 @@
         group by item_id) t2 on t1.itemId = t2.itemId
         group by item_id) t2 on t1.itemId = t2.itemId
         left join kuaishou_item_ccr_info t3
         left join kuaishou_item_ccr_info t3
         on t1.itemId = t3.item_id
         on t1.itemId = t3.item_id
+        left join kuaishou_activity_open_item_list t4
+        on t1.itemId = t4.item_id
+
+
         where 1 = 1
         where 1 = 1
         <if test="itemId != null and itemId != ''">
         <if test="itemId != null and itemId != ''">
             and t1.item_id = #{itemId}
             and t1.item_id = #{itemId}