|
|
@ -110,7 +110,6 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
if (item.getMediaType() == 0) {
|
|
|
|
if (item.getMediaType() == 0) {
|
|
|
|
photoBean.setPath(photoaddress + item.getPath());
|
|
|
|
photoBean.setPath(photoaddress + item.getPath());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
photoBean.setPath(videoaddress + item.getPath());
|
|
|
|
photoBean.setPath(videoaddress + item.getPath());
|
|
|
|
if (item.getThumb() != null) {
|
|
|
|
if (item.getThumb() != null) {
|
|
|
|
photoBean.setThumb(videoaddress + item.getThumb());
|
|
|
|
photoBean.setThumb(videoaddress + item.getThumb());
|
|
|
@ -316,17 +315,17 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
PageUtils.SetPage(pageindex, pagesize);
|
|
|
|
PageUtils.SetPage(pageindex, pagesize);
|
|
|
|
|
|
|
|
|
|
|
|
List<ChannelAndTermDto> list = terminalsDao.selectChannelAndTermList(CommonStatus.EFFECTIVE.value());
|
|
|
|
List<ChannelAndTermDto> list = terminalsDao.selectChannelAndTermList(CommonStatus.EFFECTIVE.value());
|
|
|
|
|
|
|
|
List<TerminalPhotosModel.PhotosBean> beans = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!CollectionUtil.isEmpty(list)) {
|
|
|
|
List<Integer> termidlist = new ArrayList<>();
|
|
|
|
List<Integer> termidlist = new ArrayList<>();
|
|
|
|
for (ChannelAndTermDto item : list) {
|
|
|
|
for (ChannelAndTermDto item : list) {
|
|
|
|
Integer termid = item.getTermid();
|
|
|
|
Integer termid = item.getTermid();
|
|
|
|
termidlist.add(termid);
|
|
|
|
termidlist.add(termid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
List<Lines> lines = linesDao.selectLineByDyId(null, CommonStatus.EFFECTIVE.value());
|
|
|
|
List<Lines> lines = linesDao.selectLineByDyId(null, CommonStatus.EFFECTIVE.value());
|
|
|
|
|
|
|
|
|
|
|
|
List<TermAndChannelLatestPhotoMapperDto> list2 = terminalPhotoDao.selectTermAndChannelLatestPhotoList(termidlist);
|
|
|
|
List<TermAndChannelLatestPhotoMapperDto> list2 = terminalPhotoDao.selectTermAndChannelLatestPhotoList(termidlist);
|
|
|
|
List<TerminalPhotosModel.PhotosBean> beans = new ArrayList<>();
|
|
|
|
|
|
|
|
for (ChannelAndTermDto item : list) {
|
|
|
|
for (ChannelAndTermDto item : list) {
|
|
|
|
TerminalPhotosModel.PhotosBean photosBean = new TerminalPhotosModel.PhotosBean();
|
|
|
|
TerminalPhotosModel.PhotosBean photosBean = new TerminalPhotosModel.PhotosBean();
|
|
|
|
photosBean.setTermid(item.getTermid());
|
|
|
|
photosBean.setTermid(item.getTermid());
|
|
|
@ -362,6 +361,8 @@ public class TerminalPhotoServiceImpl implements TerminalPhotoService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
beans.add(photosBean);
|
|
|
|
beans.add(photosBean);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
model.setList(beans);
|
|
|
|
model.setList(beans);
|
|
|
|
PageInfo pageData = PageUtils.getPageData(list);
|
|
|
|
PageInfo pageData = PageUtils.getPageData(list);
|
|
|
|
int currentpage = pageData.getPageNum();
|
|
|
|
int currentpage = pageData.getPageNum();
|
|
|
|