新增装置别名的修改

master
liuguijing 2 years ago
parent 295d491b3f
commit b55e0fd180

@ -68,10 +68,7 @@ public class TerminalVo {
@ApiModelProperty(value = "装置编号", example = "123455")
private Integer id;
@NotNull(message = "通道编号不能缺少")
@ApiModelProperty(value = "通道编号", example = "123455")
private String channelName;
@ApiModelProperty(value = "别名", example = "123455")
private String alias;
}
}

@ -73,9 +73,8 @@ public class UpdateTerminalVo {
@ApiModelProperty(value = "装置编号", example = "123455")
private Integer id;
@NotNull(message = "通道编号不能缺少")
@ApiModelProperty(value = "通道编号", example = "123455")
private String channelName;
@ApiModelProperty(value = "别名", example = "123455")
private String alias;
}

@ -120,7 +120,7 @@ public class TerminalServiceImpl implements TerminalService {
for (TerminalVo.Item item : channelId) {
TerminalChannelMapper record = new TerminalChannelMapper();
record.setChannelId(item.getId());
record.setAlias(item.getChannelName());
record.setAlias(item.getAlias());
record.setTermId(termid);
list.add(record);
}
@ -153,7 +153,7 @@ public class TerminalServiceImpl implements TerminalService {
for (UpdateTerminalVo.Item item : channelId) {
TerminalChannelMapper record = new TerminalChannelMapper();
record.setChannelId(item.getId());
record.setAlias(item.getChannelName());
record.setAlias(item.getAlias());
record.setTermId(termid);
list.add(record);
}

Loading…
Cancel
Save