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