|
@@ -323,22 +323,22 @@ public class NeoFacade {
|
|
unit = lis.getUnits();
|
|
unit = lis.getUnits();
|
|
for (LisRemind lisRemind : lrlist) {
|
|
for (LisRemind lisRemind : lrlist) {
|
|
if (lisRemind.getRange() == 0) { /*&& lisRemind.getUnit().equals(unit) &&*/
|
|
if (lisRemind.getRange() == 0) { /*&& lisRemind.getUnit().equals(unit) &&*/
|
|
- if (null!=lisRemind.getMinval() && null!=lisRemind.getMaxval() &&
|
|
|
|
- val <= lisRemind.getMaxval() && val >= lisRemind.getMinval()){
|
|
|
|
- OtherTipNeoDTO otherTipNeoDTO = new OtherTipNeoDTO();
|
|
|
|
- BeanUtils.copyProperties(lis, otherTipNeoDTO);
|
|
|
|
-
|
|
|
|
- otherTipNeoDTO.setFactor(getReminds(lisRemind));
|
|
|
|
- otherTipNeoDTOS.add(otherTipNeoDTO);
|
|
|
|
|
|
+ if (null==lisRemind.getMinval() && val <= lisRemind.getMaxval()) {
|
|
|
|
+ otherTipNeoDTOS = updateTipNeoDTO(otherTipNeoDTOS, lis, lisRemind);
|
|
|
|
+ }
|
|
|
|
+ else if(null==lisRemind.getMaxval() && val >= lisRemind.getMinval()) {
|
|
|
|
+ otherTipNeoDTOS = updateTipNeoDTO(otherTipNeoDTOS, lis, lisRemind);
|
|
|
|
+ }
|
|
|
|
+ else if (null!=lisRemind.getMinval() && null!=lisRemind.getMaxval() &&
|
|
|
|
+ val <= lisRemind.getMaxval() && val >= lisRemind.getMinval()) {
|
|
|
|
+ otherTipNeoDTOS = updateTipNeoDTO(otherTipNeoDTOS, lis, lisRemind);
|
|
}
|
|
}
|
|
} else if (lisRemind.getRange() == 1) { /*&& lisRemind.getUnit().equals(unit) &&*/
|
|
} else if (lisRemind.getRange() == 1) { /*&& lisRemind.getUnit().equals(unit) &&*/
|
|
- if ((null!=lisRemind.getMaxval() && val > lisRemind.getMaxval()) ||
|
|
|
|
- (null!=lisRemind.getMinval() && val < lisRemind.getMinval())){
|
|
|
|
- OtherTipNeoDTO otherTipNeoDTO = new OtherTipNeoDTO();
|
|
|
|
- BeanUtils.copyProperties(lis, otherTipNeoDTO);
|
|
|
|
-
|
|
|
|
- otherTipNeoDTO.setFactor(getReminds(lisRemind));
|
|
|
|
- otherTipNeoDTOS.add(otherTipNeoDTO);
|
|
|
|
|
|
+ if (null!=lisRemind.getMaxval() && val > lisRemind.getMaxval()) {
|
|
|
|
+ otherTipNeoDTOS = updateTipNeoDTO(otherTipNeoDTOS, lis, lisRemind);
|
|
|
|
+ }
|
|
|
|
+ else if (null!=lisRemind.getMinval() && val < lisRemind.getMinval()){
|
|
|
|
+ otherTipNeoDTOS = updateTipNeoDTO(otherTipNeoDTOS, lis, lisRemind);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -365,6 +365,17 @@ public class NeoFacade {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ public List<OtherTipNeoDTO> updateTipNeoDTO(List<OtherTipNeoDTO> otherTipNeoDTOS, Lis lis, LisRemind lisRemind) {
|
|
|
|
+ OtherTipNeoDTO otherTipNeoDTO = new OtherTipNeoDTO();
|
|
|
|
+ BeanUtils.copyProperties(lis, otherTipNeoDTO);
|
|
|
|
+
|
|
|
|
+ otherTipNeoDTO.setFactor(getReminds(lisRemind));
|
|
|
|
+ otherTipNeoDTOS.add(otherTipNeoDTO);
|
|
|
|
+
|
|
|
|
+ return otherTipNeoDTOS;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
public List<NodeNeoDTO> getReminds(LisRemind lisRemind) {
|
|
public List<NodeNeoDTO> getReminds(LisRemind lisRemind) {
|
|
List<NodeNeoDTO> nodeNeoDTOS = new ArrayList<>();
|
|
List<NodeNeoDTO> nodeNeoDTOS = new ArrayList<>();
|
|
NodeNeoDTO nodeNeoDTO;
|
|
NodeNeoDTO nodeNeoDTO;
|