Эх сурвалжийг харах

修改分页查询品牌,修改是否关注字段为int类型

云殇忆 1 жил өмнө
parent
commit
cb0d306a3a

+ 1 - 1
benyun-core/src/main/java/com/benyun/core/entity/bo/BrandSearch.java

@@ -13,6 +13,6 @@ public class BrandSearch {
     private String enterpriseName;
     private Integer coverCityCount;
     private Integer total;
-    private String attention;
+    private Integer attention;
     private Date updateTime;
 }

+ 3 - 3
benyun-core/src/main/java/com/benyun/core/service/impl/BrandServiceImpl.java

@@ -248,7 +248,7 @@ public class BrandServiceImpl implements BrandService {
         List<BrandSearch> brandSearches = brandMapper.searchSearchByMulti(text, industryCode, countUp, countDown, coverUp, coverDown);
         if (userId == null || userId.equals("")){
             for (BrandSearch search : brandSearches){
-                search.setAttention("0");
+                search.setAttention(0);
             }
         }else {
             List<AttentionPool> pools = attentionPoolDao.searchByMulti(null, userId);
@@ -258,9 +258,9 @@ public class BrandServiceImpl implements BrandService {
             }
             for (BrandSearch search : brandSearches){
                 if (map.get(search.getBrandId()) == null){
-                    search.setAttention("0");
+                    search.setAttention(0);
                 }else {
-                    search.setAttention("1");
+                    search.setAttention(1);
                 }
             }
         }