[v0.0.6] fix: 装订和查询结果字段用bool,command用int

master
shiyi 4 weeks ago
parent 0f8038483a
commit 79b7b27be5

@ -90,7 +90,7 @@ public class CacUavParamBindHandler implements IRemoteMessageHandler {
bindResultParam.setCommandSource(1); bindResultParam.setCommandSource(1);
bindResultParam.setUavType(uavType.getRemoteCode()); bindResultParam.setUavType(uavType.getRemoteCode());
bindResultParam.setUavParamBindCode(ByteUtils.byteToInt(code)); bindResultParam.setUavParamBindCode(ByteUtils.byteToInt(code));
bindResultParam.setBindResult(false?0:1); bindResultParam.setBindResult(false);
CacHpApi.uavParamBindResultNotify(bindResultParam); CacHpApi.uavParamBindResultNotify(bindResultParam);
} catch (IOException e) { } catch (IOException e) {
log.error("[cac] 参数装订回报通知失败:{}", bindResultParam, e); log.error("[cac] 参数装订回报通知失败:{}", bindResultParam, e);

@ -87,7 +87,7 @@ public class CacUavParamQueryHandler implements IRemoteMessageHandler {
queryResultParam.setCommandSource(1); queryResultParam.setCommandSource(1);
queryResultParam.setUavType(uavType.getRemoteCode()); queryResultParam.setUavType(uavType.getRemoteCode());
queryResultParam.setUavParamQueryCode(ByteUtils.byteToInt(code)); queryResultParam.setUavParamQueryCode(ByteUtils.byteToInt(code));
queryResultParam.setQueryResult(false?0:1); queryResultParam.setQueryResult(false);
CacHpApi.uavParamQueryResultNotify(queryResultParam); CacHpApi.uavParamQueryResultNotify(queryResultParam);
} catch (IOException e) { } catch (IOException e) {
log.error("[cac] 参数装订回报通知失败:{}", queryResultParam, e); log.error("[cac] 参数装订回报通知失败:{}", queryResultParam, e);

@ -89,7 +89,7 @@ public class CacUavRouteBindHandler implements IRemoteMessageHandler {
bindResultParam.setCommandSource(1); bindResultParam.setCommandSource(1);
bindResultParam.setUavType(uavType.getRemoteCode()); bindResultParam.setUavType(uavType.getRemoteCode());
bindResultParam.setUavParamBindCode(ByteUtils.byteToInt(code)); bindResultParam.setUavParamBindCode(ByteUtils.byteToInt(code));
bindResultParam.setBindResult(false?0:1); bindResultParam.setBindResult(false);
CacHpApi.uavParamBindResultNotify(bindResultParam); CacHpApi.uavParamBindResultNotify(bindResultParam);
} catch (IOException e) { } catch (IOException e) {
log.error("[cac] 参数装订回报通知失败:{}", bindResultParam, e); log.error("[cac] 参数装订回报通知失败:{}", bindResultParam, e);

@ -13,5 +13,5 @@ public class BindResultParam {
Integer commandSource; Integer commandSource;
Integer uavType; Integer uavType;
Integer uavParamBindCode; Integer uavParamBindCode;
Integer bindResult; Boolean bindResult;
} }

@ -15,6 +15,6 @@ public class QueryResultParam {
Integer commandSource; Integer commandSource;
Integer uavType; Integer uavType;
Integer uavParamQueryCode; Integer uavParamQueryCode;
Integer queryResult; Boolean queryResult;
String queryResultContent; String queryResultContent;
} }

Loading…
Cancel
Save