|
@@ -110,7 +110,7 @@ public class CarouselChartInfoServiceImpl extends ServiceImpl<CarouselChartInfoM
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public Response removeCarouselByIds(Long[] ids) {
|
|
|
for (Long id : ids) {
|
|
|
- this.update(new UpdateWrapper<CarouselChartInfo>().set("status",1).eq("id",id));
|
|
|
+ this.update(new UpdateWrapper<CarouselChartInfo>().set("status","1").eq("id",id));
|
|
|
//删除缓存
|
|
|
redisTemplate.delete(Constants.CAROUSEL_CHART_KEY + id);
|
|
|
}
|
|
@@ -137,7 +137,7 @@ public class CarouselChartInfoServiceImpl extends ServiceImpl<CarouselChartInfoM
|
|
|
}else {
|
|
|
//数据库获取(此处可不做查询!)
|
|
|
CarouselChartInfo carouselChartInfo = new CarouselChartInfo();
|
|
|
- carouselChartInfo.setStatus(0);//启用状态
|
|
|
+ carouselChartInfo.setStatus("0");//启用状态
|
|
|
infoVos = carouselChartInfoMapper.selectCarouselChartInfoList(carouselChartInfo);
|
|
|
}
|
|
|
|