| | |
| | | package com.yeshi.buwan.service.imp; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | import com.yeshi.buwan.dao.CategoryContryDao; |
| | | import com.yeshi.buwan.domain.CategoryContry; |
| | | import com.yeshi.buwan.domain.DetailSystem; |
| | | import com.yeshi.buwan.domain.system.DetailSystem; |
| | | import com.yeshi.buwan.domain.VideoInfo; |
| | | import com.yeshi.buwan.domain.VideoResource; |
| | | import com.yeshi.buwan.util.Constant; |
| | | import com.yeshi.buwan.util.StringUtil; |
| | | |
| | | @Service |
| | |
| | | private boolean isContainsResource(List<Long> resourceList, List<VideoResource> relist) { |
| | | List<Long> targetList = new ArrayList<>(); |
| | | for (VideoResource vr : relist) |
| | | targetList.add(Long.parseLong(vr.getId())); |
| | | if(!StringUtil.isNullOrEmpty(vr.getId())) { |
| | | targetList.add(Long.parseLong(vr.getId())); |
| | | } |
| | | targetList.retainAll(resourceList); |
| | | return targetList.size() > 0; |
| | | } |