| | |
| | | arcDataEntity.setArcTime(arcTime); |
| | | arcDataEntity.setArcId(item.getId()); |
| | | arcDataEntity.setArcValue(value); |
| | | arcDataEntity.setCode(item.getCode()); |
| | | arcDataEntity.setCreateTime(new Date()); |
| | | insert(arcDataEntity); |
| | | log.debug("归档完成,point:"+item.getPoint()); |
| | | }); |
| | |
| | | arcDataEntity.setArcTime(arcTime); |
| | | arcDataEntity.setArcId(item.getId()); |
| | | arcDataEntity.setArcValue(value); |
| | | arcDataEntity.setCode(item.getCode()); |
| | | arcDataEntity.setCreateTime(new Date()); |
| | | insert(arcDataEntity); |
| | | log.debug("归档完成,point:"+item.getPoint()); |
| | | }); |
| | |
| | | arcDataEntity.setArcTime(arcTime); |
| | | arcDataEntity.setArcId(item.getId()); |
| | | arcDataEntity.setArcValue(value); |
| | | arcDataEntity.setCode(item.getCode()); |
| | | arcDataEntity.setCreateTime(new Date()); |
| | | insert(arcDataEntity); |
| | | log.debug("归档完成,point:"+item.getPoint()); |
| | | }); |
| | |
| | | BigDecimal prev = BigDecimal.valueOf(valueList.get(0).getV()); |
| | | for (int i = 1; i < valueList.size(); i++) { |
| | | BigDecimal curr = BigDecimal.valueOf(valueList.get(i).getV()); |
| | | value = value.add(curr.subtract(prev)); |
| | | if(curr.compareTo(prev) > 0) { |
| | | value = value.add(curr.subtract(prev)); |
| | | } |
| | | prev = curr; |
| | | } |
| | | break; |