소스 검색

修改报错

yumeng 1 년 전
부모
커밋
87b74edb6e

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

@@ -107,7 +107,7 @@ public interface SupplyChainMapper {
 
     List<JSONObject> exportBdDetail(Map<String, Object> requestMap);
 
-    List<JSONObject> getUserList(@Param("map") Map<Long, Long> map);
+    List<JSONObject> getUserList(@Param("map") Map<String, String> map);
 
     String getUserName(@Param("promoterId") Long promoterId);
 

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

@@ -44,10 +44,10 @@ public class SupplyChainServiceImpl implements ISupplyChainService {
     public List<JSONObject> getOrderList(Map<String, Object> requestMap) {
         List<JSONObject> list = supplyChainMapper.getOrderList(requestMap);
         if (!Check.isNull(list)) {
-            Map<Long, Long> map = new HashMap<>();
+            Map<String, String> map = new HashMap<>();
             for (int i = 0; i < list.size(); i++) {
                 JSONObject jsonObject = list.get(i);
-                Long promoterId = jsonObject.getLong("promoterId");
+                String promoterId = jsonObject.getString("promoterId");
                 requestMap.put("promoterId", promoterId);
                 List<JSONObject> topOrders = supplyChainMapper.getTopOrders(requestMap);
                 jsonObject.put("topOrders", topOrders);