wangdy 7 лет назад
Родитель
Сommit
77960d6f07

+ 2 - 2
src/main/java/com/uas/platform/b2c/common/search/service/impl/SearcherServiceImpl.java

@@ -269,8 +269,8 @@ public class SearcherServiceImpl implements SearcherService {
 
         SPage<Long> stockPage = (SPage<Long>) ((JSONObject)results.get("stock")).toJavaObject(SPage.class);
         SPage<Long> futuresPage = (SPage<Long>) ((JSONObject)results.get("futures")).toJavaObject(SPage.class);
-        for (Long goodsId : stockPage.getContent()) {
-            goodsList.add(goodsDao.findOne(goodsId));
+        for (Object goodsId : stockPage.getContent()) {
+            goodsList.add(goodsDao.findOne(Long.valueOf(goodsId.toString())));
         }
 
         for (Object PrId : futuresPage.getContent()) {