| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springblade.common.param.CommonParamSet; |
| | | import org.springblade.common.utils.AuthUtils; |
| | | import org.springblade.common.utils.RoleUtil; |
| | | import org.springblade.common.utils.SpringUtils; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | |
| | | } |
| | | rotation.setPropertyFlag(1); |
| | | } |
| | | if(AuthUtils.isMj(userRole)){ |
| | | rotation.setType(1); |
| | | } |
| | | if(AuthUtils.isJd(userRole)){ |
| | | rotation.setType(2); |
| | | } |
| | | if (StringUtils.isNotBlank(rotation.getAoiCode())) { |
| | | // 查询房屋的小区 |
| | | IDistrictService bean = SpringUtils.getBean(IDistrictService.class); |
| | |
| | | if (rotationVOList.size() == 0) { |
| | | // 如果没有对应的轮播图,则采用系统默认的 |
| | | rotation.setType(3); |
| | | rotation.setPublicFlag(2); |
| | | rotation.setDistrictIdList(null); |
| | | rotationVOList = baseMapper.selectRotationPage(page, |
| | | rotation, |
| | | 1, |