Commit 7364de85 by gdj

ai信息增加查询参数。

parent 830003e6
......@@ -12,4 +12,10 @@ public class AiInfoSearchParam {
@JsonProperty("device_sn")
private String deviceSn;
@JsonProperty("warn_type")
private String warnType;
@JsonProperty("warn_event")
private String warnEvent;
}
......@@ -35,6 +35,12 @@ public class AiInfoServiceImpl extends ServiceImpl<IAiInfoMapper, AiInfoEntity>
if (StringUtils.hasText(param.getDeviceSn())) {
wrapper.eq(AiInfoEntity::getDeviceSn, param.getDeviceSn());
}
if (StringUtils.hasText(param.getWarnEvent())) {
wrapper.like(AiInfoEntity::getWarnEvent, param.getWarnEvent());
}
if (StringUtils.hasText(param.getWarnType())) {
wrapper.eq(AiInfoEntity::getWarnType, param.getWarnType());
}
Page<AiInfoEntity> pagination = this.page(new Page<>(page, pageSize), wrapper);
List<AiInfoDTO> aiInfoDTOList = pagination.getRecords().stream().map(this::AiInfoEntityToDTO)
......
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