| | |
| | | |
| | | import com.yeshi.buwan.domain.SolrVideo; |
| | | import com.yeshi.buwan.domain.VideoInfo; |
| | | import com.yeshi.buwan.util.StringUtil; |
| | | import com.yeshi.buwan.util.VideoTypeUtil; |
| | | |
| | | import java.util.Date; |
| | | |
| | |
| | | |
| | | |
| | | public static SolrVideo create(VideoInfo videoInfo) { |
| | | |
| | | |
| | | SolrVideo solrVideo = new SolrVideo(); |
| | | solrVideo.setMainactor(videoInfo.getMainActor()); |
| | | solrVideo.setShow(Integer.parseInt(videoInfo.getShow())); |
| | |
| | | solrVideo.setVideocount(videoInfo.getVideocount()); |
| | | solrVideo.setName(videoInfo.getName()); |
| | | solrVideo.setUpdatetime(videoInfo.getUpdatetime()); |
| | | if (videoInfo.getVideoType() != null) |
| | | solrVideo.setRootVideoType(videoInfo.getVideoType().getId()); |
| | | else |
| | | solrVideo.setRootVideoType(0); |
| | | |
| | | solrVideo.setYear(videoInfo.getYear()); |
| | | return solrVideo; |
| | | } |
| | | } |