Commit eb464233 by gdj

ai信息增加查询参数3。

parent a52e367f
...@@ -61,4 +61,9 @@ public class AiInfoDTO implements Serializable { ...@@ -61,4 +61,9 @@ public class AiInfoDTO implements Serializable {
*/ */
private String json; private String json;
/**
* 算法类型
*/
private String algorithmType;
} }
...@@ -62,4 +62,9 @@ public class AiInfoEntity implements Serializable { ...@@ -62,4 +62,9 @@ public class AiInfoEntity implements Serializable {
*/ */
private String json; private String json;
/**
* 算法类型
*/
private String algorithmType;
} }
...@@ -24,5 +24,7 @@ public class AiInfoSearchParam { ...@@ -24,5 +24,7 @@ public class AiInfoSearchParam {
@JsonProperty("end_warn_time") @JsonProperty("end_warn_time")
private Long endWarnTime; private Long endWarnTime;
@JsonProperty("algorithm_type")
private String algorithmType;
} }
...@@ -43,6 +43,9 @@ public class AiInfoServiceImpl extends ServiceImpl<IAiInfoMapper, AiInfoEntity> ...@@ -43,6 +43,9 @@ public class AiInfoServiceImpl extends ServiceImpl<IAiInfoMapper, AiInfoEntity>
if (StringUtils.hasText(param.getWarnType())) { if (StringUtils.hasText(param.getWarnType())) {
wrapper.eq(AiInfoEntity::getWarnType, param.getWarnType()); wrapper.eq(AiInfoEntity::getWarnType, param.getWarnType());
} }
if (StringUtils.hasText(param.getAlgorithmType())) {
wrapper.eq(AiInfoEntity::getAlgorithmType, param.getAlgorithmType());
}
if (!ObjectUtils.isEmpty(param.getStartWarnTime())) { if (!ObjectUtils.isEmpty(param.getStartWarnTime())) {
wrapper.ge(AiInfoEntity::getWarnTime, param.getStartWarnTime()); wrapper.ge(AiInfoEntity::getWarnTime, param.getStartWarnTime());
} }
......
...@@ -50,7 +50,7 @@ public class SdkAiInfoServiceImpl extends AbstractAiInfoService { ...@@ -50,7 +50,7 @@ public class SdkAiInfoServiceImpl extends AbstractAiInfoService {
aiInfoEntity.setWarnEvent(jsonData.get("warn_event").asText()); aiInfoEntity.setWarnEvent(jsonData.get("warn_event").asText());
aiInfoEntity.setWarnTime(jsonData.get("warn_time").asLong()); aiInfoEntity.setWarnTime(jsonData.get("warn_time").asLong());
aiInfoEntity.setImageUrl(jsonData.get("image_url").asText()); aiInfoEntity.setImageUrl(jsonData.get("image_url").asText());
aiInfoEntity.setWarnLocation(jsonData.get("warn_Location").asText()); aiInfoEntity.setWarnLocation(jsonData.get("warn_location").asText());
JsonNode obj = jsonData.get("obj"); JsonNode obj = jsonData.get("obj");
if (obj != null) { if (obj != null) {
aiInfoEntity.setJson(obj.toString()); aiInfoEntity.setJson(obj.toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment