Compare commits

...

2 Commits

Author SHA1 Message Date
lin
93724bac98 修复预置位查询空指针 2025-08-12 12:28:51 +08:00
lin
83662f4210 修复数据库索引重复 2025-08-12 11:36:23 +08:00
5 changed files with 5 additions and 13 deletions

View File

@ -81,8 +81,6 @@ public class PresetQueryResponseMessageHandler extends SIPRequestProcessorParent
}
return;
}
Element sumNumElement = rootElement.element("SumNum");
int sumNum = Integer.parseInt(sumNumElement.getText());
int num = Integer.parseInt(presetListNumElement.attributeValue("Num"));
List<Preset> presetQuerySipReqList = new ArrayList<>();
if (num > 0) {
@ -103,14 +101,8 @@ public class PresetQueryResponseMessageHandler extends SIPRequestProcessorParent
presetQuerySipReqList.add(presetQuerySipReq);
}
}
// if (presetQuerySipReqList.size() == sumNum) {
// responseMessageHandler.handMessageEvent(rootElement, presetQuerySipReqList);
// }else {
// String sn = getText(element, "SN");
// addCatch(cmdType + "_" + sn, rootElement, presetQuerySipReqList);
// }
String sn = getText(element, "SN");
addCatch(cmdType + "_" + sn, sumNum, rootElement, presetQuerySipReqList);
addCatch(cmdType + "_" + sn, num, rootElement, presetQuerySipReqList);
try {
responseAck(request, Response.OK);
} catch (InvalidArgumentException | ParseException | SipException e) {

View File

@ -499,6 +499,6 @@ create table IF NOT EXISTS wvp_jt_channel (
name character varying(255),
update_time character varying(50) not null,
create_time character varying(50) not null,
constraint uk_jt_device_id_device_id unique (terminal_db_id, channel_id)
constraint uk_jt_channel_id_device_id unique (terminal_db_id, channel_id)
);

View File

@ -499,6 +499,6 @@ create table IF NOT EXISTS wvp_jt_channel (
name character varying(255),
update_time character varying(50) not null,
create_time character varying(50) not null,
constraint uk_jt_device_id_device_id unique (terminal_db_id, channel_id)
constraint uk_jt_channel_id_device_id unique (terminal_db_id, channel_id)
);

View File

@ -32,7 +32,7 @@ create table IF NOT EXISTS wvp_jt_channel (
name character varying(255),
update_time character varying(50) not null,
create_time character varying(50) not null,
constraint uk_jt_device_id_device_id unique (terminal_db_id, channel_id)
constraint uk_jt_channel_id_device_id unique (terminal_db_id, channel_id)
);
/*

View File

@ -31,7 +31,7 @@ create table IF NOT EXISTS wvp_jt_channel (
name character varying(255),
update_time character varying(50) not null,
create_time character varying(50) not null,
constraint uk_jt_device_id_device_id unique (terminal_db_id, channel_id)
constraint uk_jt_channel_id_device_id unique (terminal_db_id, channel_id)
);
ALTER table wvp_media_server ADD COLUMN IF NOT EXISTS jtt_proxy_port integer;