Jelajahi Sumber

修改项目启动时的报错异常

penghao 2 bulan lalu
induk
melakukan
2673816f0a

+ 1 - 1
alien-entity/src/main/java/shop/alien/mapper/LifeUserDynamicsMapper.java

@@ -49,7 +49,7 @@ public interface LifeUserDynamicsMapper extends BaseMapper<LifeUserDynamics> {
             "on llr.huifu_id = lud.id\n" +
             "and lu.user_phone = (select CONCAT('user_',lu1.user_phone) from life_user lu1 where lu1.id = #{userId})" +
             "${ew.customSqlSegment}")
-    List<LifeUserDynamicsVo> getStoreDynamicslist(@Param("userId") String userId, @Param(Constants.WRAPPER) QueryWrapper<LifeUserDynamics> dynamicsWrapper);
+    List<LifeUserDynamicsVo> getStoreDynamicslistWithWrapper(@Param("userId") String userId, @Param(Constants.WRAPPER) QueryWrapper<LifeUserDynamics> dynamicsWrapper);
 
     @Select("with middle_lud as (\n" +
             "  select distinct  \n" +

+ 1 - 1
alien-entity/src/main/java/shop/alien/mapper/PlatformStoreCouponMapper.java

@@ -26,7 +26,7 @@ public interface PlatformStoreCouponMapper extends BaseMapper<LifeCoupon> {
             "join store_info store on store.id = coupon.store_id " +
             "join store_user user on store.id = user.store_id " +
             "${ew.customSqlSegment}")
-    List<LifeCouponVo> getCouponList(@Param(Constants.WRAPPER) QueryWrapper<LifeCouponVo> wrapper);
+    List<LifeCouponVo> getCouponListWithoutPage(@Param(Constants.WRAPPER) QueryWrapper<LifeCouponVo> wrapper);
 
     @Select("select lc.*,si.store_name,si.store_tel phone\n" +
             "from life_coupon lc \n" +

+ 1 - 1
alien-entity/src/main/java/shop/alien/mapper/PlatformStoreLifeGroupBuyMainMapper.java

@@ -30,6 +30,6 @@ public interface PlatformStoreLifeGroupBuyMainMapper extends BaseMapper<LifeGrou
             "\tJOIN store_info store ON store.id = life.store_id\n" +
             "\tJOIN store_user user ON store.id = user.store_id\n"+
             "${ew.customSqlSegment}")
-    List<LifeGroupBuyMainVo> getLifeGroupBuyMainList(@Param(Constants.WRAPPER) QueryWrapper<LifeGroupBuyMainVo> wrapper);
+    List<LifeGroupBuyMainVo> getLifeGroupBuyMainListWithoutPage(@Param(Constants.WRAPPER) QueryWrapper<LifeGroupBuyMainVo> wrapper);
 
 }

+ 1 - 1
alien-store/src/main/java/shop/alien/store/service/LifeUserStoreService.java

@@ -451,7 +451,7 @@ public class LifeUserStoreService {
         QueryWrapper<LifeUserDynamics> dynamicsWrapper = new QueryWrapper<>();
         dynamicsWrapper.eq("phone_id", "store_" + storeInfoVoOne.getStorePhone())
                 .orderByDesc("lud.created_time");
-        List<LifeUserDynamicsVo> storeDynamicslist = lifeUserDynamicsMapper.getStoreDynamicslist(userId, dynamicsWrapper);
+        List<LifeUserDynamicsVo> storeDynamicslist = lifeUserDynamicsMapper.getStoreDynamicslistWithWrapper(userId, dynamicsWrapper);
         List<Map<String, Object>> dynamicsList = new ArrayList<>();
         List<LifeUserDynamicsVo> storeDynamicslist2 = storeDynamicslist.stream().limit(10).collect(Collectors.toList());
         for (LifeUserDynamicsVo lifeUserDynamicsVo : storeDynamicslist2) {

+ 2 - 2
alien-store/src/main/java/shop/alien/store/service/impl/PlatformStoreCouponServiceImpl.java

@@ -307,7 +307,7 @@ public class PlatformStoreCouponServiceImpl implements PlatformStoreCouponServic
             wrapper.lt("coupon.end_date", currentDate);
         }
 
-        List<LifeCouponVo> lifeCouponVo = platformStoreCouponMapper.getCouponList(wrapper);
+        List<LifeCouponVo> lifeCouponVo = platformStoreCouponMapper.getCouponListWithoutPage(wrapper);
         lifeCouponVo.forEach(item -> {
             if (item.getStatus() == 5 && item.getStockQty() > 0) {
                 item.setCouponState("进行中");
@@ -412,7 +412,7 @@ public class PlatformStoreCouponServiceImpl implements PlatformStoreCouponServic
 
         wrapper.orderByDesc("life.created_time");
 
-        List<LifeGroupBuyMainVo> lifeGroupBuyMainList = platformStoreLifeGroupBuyMainMapper.getLifeGroupBuyMainList(wrapper);
+        List<LifeGroupBuyMainVo> lifeGroupBuyMainList = platformStoreLifeGroupBuyMainMapper.getLifeGroupBuyMainListWithoutPage(wrapper);
         lifeGroupBuyMainList.forEach(item -> {
             if (item.getStatus() == 1) {
                 item.setCouponState("待审核");