feat: 导入装置带上是否带云台

dev
huangfeng 6 months ago
parent b7819c9f13
commit 3bbfa93e13

@ -16,4 +16,5 @@ public class UploadModel {
private List<String> cmdidList;
@NotNull(message = "channelCount不能为空")
private Integer channelCount;
private Integer hasPan;
}

@ -263,6 +263,9 @@ public class TerminalExtServiceImpl implements TerminalExtService {
if (protocol == null) {
throw new ApiException("未找到该规约");
}
if (model.getHasPan() == null) {
model.setHasPan(0);
}
Date now = new Date();
for (String cmdid : model.getCmdidList()) {
Towers tower = new Towers();
@ -279,6 +282,7 @@ public class TerminalExtServiceImpl implements TerminalExtService {
term.setLineId(line.getId());
term.setTowerId(tower.getId());
term.setProtocol(model.getProtocol());
term.setHasPan(model.getHasPan());
term.setDisplayName(cmdid);
term.setCreateTime(now);
term.setUpdateTime(now);

Loading…
Cancel
Save