| | |
| | | try { |
| | | List<StoreConfig> list = storeConfigService.list(new QueryWrapper<StoreConfig>().eq("storeId", storeId) |
| | | .orderByAsc("sort").eq("isOpen", 1)); |
| | | HomeModule homeModule = homeModuleService.getOne(new QueryWrapper<HomeModule>().eq("isOpen", 1)); |
| | | List<HomeModule> homeModules = homeModuleService.list(new QueryWrapper<HomeModule>().eq("isOpen", 1).eq("storeId",storeId)); |
| | | List<StoreConfigVo> listVo = new ArrayList<>(); |
| | | if(null != homeModule){ |
| | | for (HomeModule homeModule : homeModules) { |
| | | StoreConfigVo vo = new StoreConfigVo(); |
| | | vo.setType(0); |
| | | vo.setIsOpen(homeModule.getIsOpen()); |
| | | vo.setIsTop(homeModule.getIsTop()); |
| | | vo.setSort(homeModule.getSort()); |
| | | vo.setBackgroundImage(homeModule.getBackgroundImage()); |
| | | vo.setDisplayType(homeModule.getDisplayType()); |
| | | listVo.add(vo); |
| | | } |
| | | for (StoreConfig storeConfig : list) { |
| | |
| | | storeConfigVo.setBackgroundImage(ToolUtil.isNotEmpty(worldCupStore.getBackgroundImage()) ? worldCupStore.getBackgroundImage() : worldCup.getHomeBackdropImg()); |
| | | storeConfigVo.setType(9); |
| | | storeConfigVo.setIsOpen(worldCupStore.getIsOpen()); |
| | | storeConfigVo.setDisplayType(worldCupStore.getDisplayType()); |
| | | storeConfigVo.setSort(worldCupStore.getSort()); |
| | | listVo.add(storeConfigVo); |
| | | } |