|
@@ -37,7 +37,6 @@ public class CarouselMapLogic {
|
|
|
List<String> companyWechatIds = adminUser.getAdminCompanyIds();
|
|
|
|
|
|
return carouselMapService.lambdaQuery()
|
|
|
- .in(CollectionUtils.isNotEmpty(companyWechatIds), CarouselMap::getCompanyWechatId, companyWechatIds)
|
|
|
.eq(state != null, CarouselMap::getState, state)
|
|
|
.orderByDesc(CarouselMap::getCreateTime)
|
|
|
.page(new Page<>(pageNum, pageSize));
|
|
@@ -59,9 +58,8 @@ public class CarouselMapLogic {
|
|
|
AdminUserCom adminUser = commonLogic.getAdminUser(request);
|
|
|
|
|
|
//新增轮播
|
|
|
- carouselMap.setCreateTime(new Date());
|
|
|
- carouselMap.setCompanyWechatId(adminUser.getLoginCompanyWechatId());
|
|
|
- carouselMap.setCompanyName(adminUser.getLoginCompanyName());
|
|
|
+
|
|
|
+
|
|
|
carouselMapService.save(carouselMap);
|
|
|
}
|
|
|
|