| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.dsh.other.entity.HomeModule; |
| | | import com.dsh.other.entity.StoreConfig; |
| | | import com.dsh.other.feignclient.communityWorldCup.WorldCupClient; |
| | | import com.dsh.other.feignclient.communityWorldCup.WorldCupStoreClient; |
| | | import com.dsh.other.feignclient.communityWorldCup.model.WorldCup; |
| | | import com.dsh.other.feignclient.communityWorldCup.model.WorldCupStore; |
| | | import com.dsh.other.model.StoreConfigVo; |
| | | import com.dsh.other.service.IHomeModuleService; |
| | |
| | | @Resource |
| | | private WorldCupStoreClient worldCupStoreClient; |
| | | |
| | | @Resource |
| | | private WorldCupClient worldCupClient; |
| | | |
| | | |
| | | |
| | | |
| | |
| | | vo.setIsTop(homeModule.getIsTop()); |
| | | vo.setSort(homeModule.getSort()); |
| | | vo.setBackgroundImage(homeModule.getBackgroundImage()); |
| | | vo.setDisplayType(homeModule.getDisplayType()); |
| | | listVo.add(vo); |
| | | } |
| | | for (StoreConfig storeConfig : list) { |
| | |
| | | |
| | | List<WorldCupStore> worldCupStoreList = worldCupStoreClient.getWorldCupStoreList(storeId); |
| | | for (WorldCupStore worldCupStore : worldCupStoreList) { |
| | | WorldCup worldCup = worldCupClient.getWorldCup(worldCupStore.getWorldCupId()); |
| | | StoreConfigVo storeConfigVo = new StoreConfigVo(); |
| | | storeConfigVo.setIsTop(0); |
| | | storeConfigVo.setId(worldCupStore.getWorldCupId()); |
| | | storeConfigVo.setBackgroundImage(ToolUtil.isNotEmpty(worldCupStore.getBackgroundImage()) ? worldCupStore.getBackgroundImage() : "https://we-park-life.oss-cn-beijing.aliyuncs.com/img/760934115ff6468591ed51f0d760a989.jpg"); |
| | | 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); |
| | | } |