|
|
@@ -10,6 +10,7 @@ import com.github.pagehelper.PageInfo;
|
|
|
import com.sckw.core.exception.SystemException;
|
|
|
import com.sckw.core.model.constant.Global;
|
|
|
import com.sckw.core.model.enums.AddressDefaultTypeEnum;
|
|
|
+import com.sckw.core.model.enums.ContractStatusEnum;
|
|
|
import com.sckw.core.model.page.PageHelperUtil;
|
|
|
import com.sckw.core.model.page.PageResult;
|
|
|
import com.sckw.core.utils.BeanUtils;
|
|
|
@@ -28,7 +29,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import com.sckw.operation.model.entity.KwoBanner;
|
|
|
-import com.sckw.core.model.enums.bannerDistrictEnum;
|
|
|
+import com.sckw.core.model.enums.BannerDistrictEnum;
|
|
|
|
|
|
/**
|
|
|
* @author sky
|
|
|
@@ -119,7 +120,7 @@ public class BannerService {
|
|
|
}
|
|
|
|
|
|
if (Objects.nonNull(item.getDistrict())) {
|
|
|
- bannerQueryResVo.setDistrictName(bannerDistrictEnum.getName(item.getDistrict()).getName());
|
|
|
+ bannerQueryResVo.setDistrictName(BannerDistrictEnum.getName(item.getDistrict()).getName());
|
|
|
}
|
|
|
|
|
|
list.add(bannerQueryResVo);
|
|
|
@@ -218,4 +219,22 @@ public class BannerService {
|
|
|
return bannerDetailResVo;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @return HttpResult
|
|
|
+ * @desc: 获取分类
|
|
|
+ * @author: sky
|
|
|
+ * @date: 2023/7/12
|
|
|
+ */
|
|
|
+ public List<BannerCategoryResVo> getCategory() {
|
|
|
+ BannerDistrictEnum[] values = BannerDistrictEnum.values();
|
|
|
+ List<BannerCategoryResVo> list = new ArrayList<>();
|
|
|
+ for (BannerDistrictEnum bannerDistrictEnum : values) {
|
|
|
+ BannerCategoryResVo bannerCategoryResVo = new BannerCategoryResVo();
|
|
|
+ bannerCategoryResVo.setCode(bannerDistrictEnum.getCode());
|
|
|
+ bannerCategoryResVo.setName(bannerDistrictEnum.getName());
|
|
|
+ list.add(bannerCategoryResVo);
|
|
|
+ }
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
}
|