提交 4105d048 authored 作者: 邓砥奕's avatar 邓砥奕

更新

上级 b48797a9
...@@ -291,6 +291,7 @@ public class RfidController { ...@@ -291,6 +291,7 @@ public class RfidController {
Boolean hasSeqDim = warningDetailSelectVo.getSeqDim()!=null; Boolean hasSeqDim = warningDetailSelectVo.getSeqDim()!=null;
Boolean hasInventoryResultsDim = warningDetailSelectVo.getInventoryResultsDim()!=null; Boolean hasInventoryResultsDim = warningDetailSelectVo.getInventoryResultsDim()!=null;
Boolean hasCreateTimeDim = warningDetailSelectVo.getCreateTimeDim()!=null; Boolean hasCreateTimeDim = warningDetailSelectVo.getCreateTimeDim()!=null;
Boolean hasWarningHandle = warningDetailSelectVo.getWarningHandle()!=null;
List<LibraryWarningLog> libraryWarningLogs = libraryWarningLogDao.findAll(); List<LibraryWarningLog> libraryWarningLogs = libraryWarningLogDao.findAll();
List<WarningDetailListVo> warningDetailListVos = new ArrayList<>(); List<WarningDetailListVo> warningDetailListVos = new ArrayList<>();
for (LibraryWarningLog libraryWarningLog :libraryWarningLogs) { for (LibraryWarningLog libraryWarningLog :libraryWarningLogs) {
...@@ -305,7 +306,8 @@ public class RfidController { ...@@ -305,7 +306,8 @@ public class RfidController {
Boolean containSeqDim = !hasSeqDim||warningDetailListVo.getDeviceLibraryEntity().getSeqNumber().contains(warningDetailSelectVo.getSeqDim()); Boolean containSeqDim = !hasSeqDim||warningDetailListVo.getDeviceLibraryEntity().getSeqNumber().contains(warningDetailSelectVo.getSeqDim());
Boolean containInventoryResultsDim = !hasInventoryResultsDim||warningDetailListVo.getInventoryResults().contains(warningDetailSelectVo.getInventoryResultsDim()); Boolean containInventoryResultsDim = !hasInventoryResultsDim||warningDetailListVo.getInventoryResults().contains(warningDetailSelectVo.getInventoryResultsDim());
Boolean containCreateTimeDim = !hasCreateTimeDim||sdf.format(warningDetailListVo.getCreateTime()).contains(warningDetailSelectVo.getCreateTimeDim()); Boolean containCreateTimeDim = !hasCreateTimeDim||sdf.format(warningDetailListVo.getCreateTime()).contains(warningDetailSelectVo.getCreateTimeDim());
return containModelDim&&containNameDim&&containSeqDim&&containInventoryResultsDim&&containCreateTimeDim; Boolean isHandle = !hasWarningHandle||warningDetailListVo.getWarningHandle().equals(warningDetailSelectVo.getWarningHandle());
return containModelDim&&containNameDim&&containSeqDim&&containInventoryResultsDim&&containCreateTimeDim&&isHandle;
}).sorted(Comparator.comparing(WarningDetailListVo::getCreateTime).reversed()).collect(Collectors.toList()); }).sorted(Comparator.comparing(WarningDetailListVo::getCreateTime).reversed()).collect(Collectors.toList());
} }
return ResultUtil.success(PageUtil.getPerPage(warningDetailSelectVo.getPage(),warningDetailSelectVo.getSize(),warningDetailListVos,warningDetailSelectVo.getPageable())); return ResultUtil.success(PageUtil.getPerPage(warningDetailSelectVo.getPage(),warningDetailSelectVo.getSize(),warningDetailListVos,warningDetailSelectVo.getPageable()));
......
...@@ -33,4 +33,6 @@ public class WarningDetailSelectVo extends CustomPage { ...@@ -33,4 +33,6 @@ public class WarningDetailSelectVo extends CustomPage {
@ApiModelProperty(value = "告警时间模糊查询字段") @ApiModelProperty(value = "告警时间模糊查询字段")
private String createTimeDim; private String createTimeDim;
@ApiModelProperty(value = "是否处理 0为否 1为是")
private Integer warningHandle;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论