|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.cyksj.dto.Result;
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
import com.cyksj.model.entity.UserMirrorShopManageAdvertise;
|
|
import com.cyksj.model.entity.UserMirrorShopManageAdvertise;
|
|
|
|
|
+import com.cyksj.service.mange.RefreshCacheService;
|
|
|
import com.cyksj.service.mirrorshop.UserMirrorShopAdvertiseService;
|
|
import com.cyksj.service.mirrorshop.UserMirrorShopAdvertiseService;
|
|
|
import com.cyksj.web.util.StpUserMirrorShopManageUser;
|
|
import com.cyksj.web.util.StpUserMirrorShopManageUser;
|
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
@@ -34,6 +35,8 @@ public class CmsUserMirrorAdvertiseController {
|
|
|
|
|
|
|
|
private final HttpServletRequest request;
|
|
private final HttpServletRequest request;
|
|
|
|
|
|
|
|
|
|
+ private RefreshCacheService refreshCacheService;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 店铺公告列表
|
|
* 店铺公告列表
|
|
|
*/
|
|
*/
|
|
@@ -71,6 +74,7 @@ public class CmsUserMirrorAdvertiseController {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
}
|
|
|
userMirrorShopAdvertiseService.saveOrUpdate(advertise);
|
|
userMirrorShopAdvertiseService.saveOrUpdate(advertise);
|
|
|
|
|
+ refreshCacheService.refreshUserMirrorShopAdvertiseCache(userId);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -88,6 +92,7 @@ public class CmsUserMirrorAdvertiseController {
|
|
|
}
|
|
}
|
|
|
en.setStatus(!en.getStatus());
|
|
en.setStatus(!en.getStatus());
|
|
|
userMirrorShopAdvertiseService.updateById(en);
|
|
userMirrorShopAdvertiseService.updateById(en);
|
|
|
|
|
+ refreshCacheService.refreshUserMirrorShopAdvertiseCache(userId);
|
|
|
});
|
|
});
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
}
|
|
@@ -101,6 +106,7 @@ public class CmsUserMirrorAdvertiseController {
|
|
|
userMirrorShopAdvertiseService.remove(Wrappers.lambdaQuery(UserMirrorShopManageAdvertise.class)
|
|
userMirrorShopAdvertiseService.remove(Wrappers.lambdaQuery(UserMirrorShopManageAdvertise.class)
|
|
|
.eq(UserMirrorShopManageAdvertise::getId, id)
|
|
.eq(UserMirrorShopManageAdvertise::getId, id)
|
|
|
.eq(UserMirrorShopManageAdvertise::getUserId, userId));
|
|
.eq(UserMirrorShopManageAdvertise::getUserId, userId));
|
|
|
|
|
+ refreshCacheService.refreshUserMirrorShopAdvertiseCache(userId);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|