Przeglądaj źródła

kuaishou_supply_chain 时间类似更改 2

zhaoxian 9 miesięcy temu
rodzic
commit
430d34cdd8

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

@@ -190,9 +190,9 @@ public interface SupplyChainMapper {
 
 
     void replaceYufuKuaiShouActivityOpenItemList(@Param("list") List<KuaiShouActivityOpenItemList> list);
     void replaceYufuKuaiShouActivityOpenItemList(@Param("list") List<KuaiShouActivityOpenItemList> list);
 
 
-    List<JSONObject> getKsChannelGmvHourByDate(@Param("userList") List<Long> userList, @Param("date") String date);
+    List<JSONObject> getKsChannelGmvHourByDate(@Param("userList") List<Long> userList, @Param("date") Integer date);
 
 
-    List<JSONObject> getKsCourtshipGmvHourByDate(@Param("userList") List<Long> userList, @Param("date") String date);
+    List<JSONObject> getKsCourtshipGmvHourByDate(@Param("userList") List<Long> userList, @Param("date") Integer date);
 
 
     List<JSONObject> getBytedanceChannelGmvHourByDate(@Param("userList") List<Long> userList, @Param("date") Long date);
     List<JSONObject> getBytedanceChannelGmvHourByDate(@Param("userList") List<Long> userList, @Param("date") Long date);
 
 

+ 2 - 2
ruixuan-live/src/main/java/com/ruixuan/isc/service/ISupplyChainService.java

@@ -194,9 +194,9 @@ public interface ISupplyChainService {
 
 
     List<JSONObject> exportItemDetail(Map<String, Object> requestMap);
     List<JSONObject> exportItemDetail(Map<String, Object> requestMap);
 
 
-    List<JSONObject> getKsChannelGmvHourByDate(List<Long> userList, String nowDate);
+    List<JSONObject> getKsChannelGmvHourByDate(List<Long> userList, Integer nowDate);
 
 
-    List<JSONObject> getKsCourtshipGmvHourByDate(List<Long> userList, String nowDate);
+    List<JSONObject> getKsCourtshipGmvHourByDate(List<Long> userList, Integer nowDate);
 
 
     List<JSONObject> getBytedanceChannelGmvHourByDate(List<Long> userList, Long nowDate);
     List<JSONObject> getBytedanceChannelGmvHourByDate(List<Long> userList, Long nowDate);
 
 

+ 4 - 4
ruixuan-live/src/main/java/com/ruixuan/isc/service/impl/KuaishouItemCollectSamplesServiceImpl.java

@@ -794,11 +794,11 @@ public class KuaishouItemCollectSamplesServiceImpl implements IKuaishouItemColle
         List<JSONObject> today = new ArrayList<>();
         List<JSONObject> today = new ArrayList<>();
         List<JSONObject> yesterday = new ArrayList<>();
         List<JSONObject> yesterday = new ArrayList<>();
         if ("1".equals(type)) { // 渠道
         if ("1".equals(type)) { // 渠道
-            today = supplyChainService.getKsChannelGmvHourByDate(userList, nowDate);
-            yesterday = supplyChainService.getKsChannelGmvHourByDate(userList, lastDate);
+            today = supplyChainService.getKsChannelGmvHourByDate(userList, DateUtils.getIntegerTime(nowDate));
+            yesterday = supplyChainService.getKsChannelGmvHourByDate(userList, DateUtils.getIntegerTime(lastDate));
         } else if ("2".equals(type)) {
         } else if ("2".equals(type)) {
-            today = supplyChainService.getKsCourtshipGmvHourByDate(userList, nowDate);
-            yesterday = supplyChainService.getKsCourtshipGmvHourByDate(userList, lastDate);
+            today = supplyChainService.getKsCourtshipGmvHourByDate(userList, DateUtils.getIntegerTime(nowDate));
+            yesterday = supplyChainService.getKsCourtshipGmvHourByDate(userList, DateUtils.getIntegerTime(lastDate));
         }
         }
         completionTime(today, nowDate);
         completionTime(today, nowDate);
         completionTime(yesterday, lastDate);
         completionTime(yesterday, lastDate);

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

@@ -1167,12 +1167,12 @@ public class SupplyChainServiceImpl implements ISupplyChainService {
     }
     }
 
 
     @Override
     @Override
-    public List<JSONObject> getKsChannelGmvHourByDate(List<Long> userList, String nowDate) {
+    public List<JSONObject> getKsChannelGmvHourByDate(List<Long> userList, Integer nowDate) {
         return supplyChainMapper.getKsChannelGmvHourByDate(userList, nowDate);
         return supplyChainMapper.getKsChannelGmvHourByDate(userList, nowDate);
     }
     }
 
 
     @Override
     @Override
-    public List<JSONObject> getKsCourtshipGmvHourByDate(List<Long> userList, String nowDate) {
+    public List<JSONObject> getKsCourtshipGmvHourByDate(List<Long> userList, Integer nowDate) {
         return supplyChainMapper.getKsCourtshipGmvHourByDate(userList, nowDate);
         return supplyChainMapper.getKsCourtshipGmvHourByDate(userList, nowDate);
     }
     }