|
|
@ -34,6 +34,7 @@ import com.elink.esua.epdc.dao.BannerDao; |
|
|
|
import com.elink.esua.epdc.dto.BannerDTO; |
|
|
|
import com.elink.esua.epdc.dto.NewsUserAttitudeDTO; |
|
|
|
import com.elink.esua.epdc.dto.ParentAndAllDeptDTO; |
|
|
|
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.result.EpdcBannerListResultDTO; |
|
|
|
import com.elink.esua.epdc.entity.BannerEntity; |
|
|
@ -160,8 +161,16 @@ public class BannerServiceImpl extends BaseServiceImpl<BannerDao, BannerEntity> |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<EpdcBannerListResultDTO> listBanner(EpdcBannerListFromDTO fromDTO) { |
|
|
|
return baseDao.selectListBanner(fromDTO); |
|
|
|
public List<EpdcBannerListResultDTO> listBanner(EpdcBannerListFromDTO fromDto) { |
|
|
|
return baseDao.selectListBanner(fromDto); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<EpdcBannerListResultDTO> listBannerByCategory(EpdcBannerListByCategoryFromDTO fromDto) { |
|
|
|
if (CollUtil.isEmpty(fromDto.getCategoryCodeList())) { |
|
|
|
return Lists.newArrayList(); |
|
|
|
} |
|
|
|
return baseDao.listBannerByCategory(fromDto); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -204,17 +213,16 @@ public class BannerServiceImpl extends BaseServiceImpl<BannerDao, BannerEntity> |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* 组织机构信息处理 |
|
|
|
* |
|
|
|
* @params [dto, bannerList] |
|
|
|
* @return java.util.List<com.elink.esua.epdc.entity.BannerEntity> |
|
|
|
* @params [dto, bannerList] |
|
|
|
* @author liuchuang |
|
|
|
* @since 2020/3/7 14:41 |
|
|
|
*/ |
|
|
|
private List<BannerEntity> handleOrganizationInfo(OrganizationModifyDTO dto, List<BannerDTO> bannerList) { |
|
|
|
List<BannerEntity> entities = new ArrayList<>(); |
|
|
|
for (BannerDTO banner: bannerList) { |
|
|
|
for (BannerDTO banner : bannerList) { |
|
|
|
BannerEntity entity = new BannerEntity(); |
|
|
|
if (StringUtils.isNotEmpty(banner.getParentDeptIds()) && StringUtils.isNotEmpty(banner.getParentDeptNames())) { |
|
|
|
List<String> parentDeptIds = Arrays.asList(banner.getParentDeptIds().split(",")); |
|
|
|