|
|
|
@ -305,7 +305,7 @@ public class TerminalUtils {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static List<TerminalPhotoSelectListModel.PhotoBean> fdsa(String requestIp, List<TerminalPhoto> list, Map<Integer, Terminals> terminalMap, Map<Integer, LineAndDyNameDto> lineMap, Map<Integer, TerminalChannels> termchannelMap, Map<String, TerminalChannelMapper> termchannelMapMap) {
|
|
|
|
|
public static List<TerminalPhotoSelectListModel.PhotoBean> fdsa(String requestIp, List<TerminalPhoto> list, Map<Integer, Terminals> terminalMap, Map<Integer, LineAndDyNameDto> lineMap, Map<Integer, TowerDto> towerMap, Map<Integer, TerminalChannels> termchannelMap, Map<String, TerminalChannelMapper> termchannelMapMap) {
|
|
|
|
|
List<TerminalPhotoSelectListModel.PhotoBean> beans = new ArrayList<>();
|
|
|
|
|
for (TerminalPhoto item : list) {
|
|
|
|
|
TerminalPhotoSelectListModel.PhotoBean photoBean = new TerminalPhotoSelectListModel.PhotoBean();
|
|
|
|
@ -315,12 +315,16 @@ public class TerminalUtils {
|
|
|
|
|
Integer mediaType = item.getMediaType();
|
|
|
|
|
if (mediaType != null && (mediaType.intValue() == 0 || mediaType.intValue() == 1)) {
|
|
|
|
|
photoBean.setDisplayname(terminals.getDisplayName());
|
|
|
|
|
Integer lineid = terminals.getLineid();
|
|
|
|
|
photoBean.setLineid(lineid);
|
|
|
|
|
if (lineMap != null) {
|
|
|
|
|
LineAndDyNameDto lineAndDyNameDto = lineMap.get(lineid);
|
|
|
|
|
if (lineAndDyNameDto != null) {
|
|
|
|
|
photoBean.setLinename(lineAndDyNameDto.getName());
|
|
|
|
|
Integer towerid = terminals.getTowerid();
|
|
|
|
|
if (towerMap != null) {
|
|
|
|
|
TowerDto towerDto = towerMap.get(towerid);
|
|
|
|
|
Integer lineId = towerDto.getLineId();
|
|
|
|
|
photoBean.setLineid(lineId);
|
|
|
|
|
if (lineMap != null) {
|
|
|
|
|
LineAndDyNameDto lineAndDyNameDto = lineMap.get(lineId);
|
|
|
|
|
if (lineAndDyNameDto != null) {
|
|
|
|
|
photoBean.setLinename(lineAndDyNameDto.getName());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Integer channelId = item.getChannelId();
|
|
|
|
|