|
|
@ -2,7 +2,6 @@ package com.elink.esua.epdc.service.impl; |
|
|
|
|
|
|
|
import com.elink.esua.epdc.async.WxMaSecCheckTask; |
|
|
|
import com.elink.esua.epdc.common.token.dto.TokenDto; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.NumConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.enums.UserTagEnum; |
|
|
|
import com.elink.esua.epdc.commons.tools.enums.YesOrNoEnum; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
@ -12,7 +11,7 @@ import com.elink.esua.epdc.dto.comment.TopicCommentStatementFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.comment.TopicCommentsFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.comment.result.EventCommentsResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.enums.TopicStateEnum; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcBannerListByCategoryFromDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcBannerListFromDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcNewsListByCategoryFromDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcUserGroupInviteFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcBannerListResultDTO; |
|
|
@ -30,13 +29,11 @@ import com.elink.esua.epdc.dto.project.result.ProjectListResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.topic.form.*; |
|
|
|
import com.elink.esua.epdc.dto.topic.result.TopicDetailResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.topic.result.TopicListResultDTO; |
|
|
|
import com.elink.esua.epdc.enums.IndependentFunctionCodeEnum; |
|
|
|
import com.elink.esua.epdc.feign.AdminFeignClient; |
|
|
|
import com.elink.esua.epdc.feign.NewsFeignClient; |
|
|
|
import com.elink.esua.epdc.feign.PropertyFeignClient; |
|
|
|
import com.elink.esua.epdc.service.PropertyService; |
|
|
|
import com.elink.esua.epdc.utils.UserTagUtils; |
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@ -322,12 +319,8 @@ public class PropertyServiceImpl implements PropertyService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result<List<EpdcBannerListResultDTO>> listBnnerByCategory(TokenDto userDetail, EpdcBannerListByCategoryFromDTO formDto) { |
|
|
|
List<String> categoryCodes = Lists.newArrayList(); |
|
|
|
categoryCodes.add(IndependentFunctionCodeEnum.POLICE_NOTICE.getCode()); |
|
|
|
categoryCodes.add(IndependentFunctionCodeEnum.SAFETY_PRECAUTIONS.getCode()); |
|
|
|
public Result<List<EpdcBannerListResultDTO>> listBnnerByCategory(TokenDto userDetail, EpdcBannerListFromDTO formDto) { |
|
|
|
formDto.setDeptId(userDetail.getGridId()); |
|
|
|
formDto.setCategoryCodeList(categoryCodes); |
|
|
|
return newsFeignClient.listBannerByCategory(formDto); |
|
|
|
return newsFeignClient.listBanner(formDto); |
|
|
|
} |
|
|
|
} |
|
|
|