|
@@ -44,15 +44,31 @@ public class SiAeAllServiceImpl implements SiAeAllService {
|
|
siAeAllVO.setCheckType(type);
|
|
siAeAllVO.setCheckType(type);
|
|
Double radio = aeAll.get(type);
|
|
Double radio = aeAll.get(type);
|
|
siAeAllVO.setNumber(radio);
|
|
siAeAllVO.setNumber(radio);
|
|
|
|
+ Double upRadio = 0.00;
|
|
|
|
+ Double linkRadio = 0.00;
|
|
if (0 != radio){
|
|
if (0 != radio){
|
|
- double upRadio = Optional.ofNullable(upAllCollect).map(up -> up.get(type)).orElse(0.0);
|
|
|
|
|
|
+ upRadio = Optional.ofNullable(upAllCollect).map(up -> up.get(type)).orElse(0.0);
|
|
siAeAllVO.setSameRatio(Arith.div(upRadio,radio));
|
|
siAeAllVO.setSameRatio(Arith.div(upRadio,radio));
|
|
- double linkRadio = Optional.ofNullable(linkAllCollect).map(link -> link.get(type)).orElse(0.0);
|
|
|
|
|
|
+ linkRadio = Optional.ofNullable(linkAllCollect).map(link -> link.get(type)).orElse(0.0);
|
|
siAeAllVO.setLinkRelativeRatio(Arith.div(linkRadio,radio));
|
|
siAeAllVO.setLinkRelativeRatio(Arith.div(linkRadio,radio));
|
|
}else {
|
|
}else {
|
|
siAeAllVO.setSameRatio(0.00);
|
|
siAeAllVO.setSameRatio(0.00);
|
|
siAeAllVO.setLinkRelativeRatio(0.00);
|
|
siAeAllVO.setLinkRelativeRatio(0.00);
|
|
}
|
|
}
|
|
|
|
+ if (radio.equals(upRadio)){
|
|
|
|
+ siAeAllVO.setSameStatus(0);
|
|
|
|
+ }else if (radio > upRadio){
|
|
|
|
+ siAeAllVO.setSameStatus(1);
|
|
|
|
+ }else {
|
|
|
|
+ siAeAllVO.setSameStatus(2);
|
|
|
|
+ }
|
|
|
|
+ if (radio.equals(linkRadio)){
|
|
|
|
+ siAeAllVO.setLinkRelativeStatus(0);
|
|
|
|
+ }else if (radio > linkRadio){
|
|
|
|
+ siAeAllVO.setLinkRelativeStatus(1);
|
|
|
|
+ }else {
|
|
|
|
+ siAeAllVO.setLinkRelativeStatus(2);
|
|
|
|
+ }
|
|
allVoS.add(siAeAllVO);
|
|
allVoS.add(siAeAllVO);
|
|
}
|
|
}
|
|
});
|
|
});
|