mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-17 00:08:35 +08:00
update
This commit is contained in:
@@ -1954,17 +1954,19 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
orderCodeList.addAll(Lists.newArrayList(StringUtils.split(indexOrderInfoVO.getOrderCodes(), ",")));
|
orderCodeList.addAll(Lists.newArrayList(StringUtils.split(indexOrderInfoVO.getOrderCodes(), ",")));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询对应数据
|
if (CollectionUtils.isNotEmpty(orderCodeList)) {
|
||||||
IndexOrderInfoVO detailInfo = orderBasicInfoMapper.getIndexOrderDetail(orderCodeList);
|
// 查询对应数据
|
||||||
|
IndexOrderInfoVO detailInfo = orderBasicInfoMapper.getIndexOrderDetail(orderCodeList);
|
||||||
vo.setTotalOrderAmount(totalOrderAmount.toString());
|
vo.setTotalOrderAmount(totalOrderAmount.toString());
|
||||||
vo.setTotalElectricity(totalElectricity.toString());
|
vo.setTotalElectricity(totalElectricity.toString());
|
||||||
vo.setTotalPeakUsedElectricity(detailInfo.getTotalPeakUsedElectricity());
|
if (detailInfo != null) {
|
||||||
vo.setTotalFlatUsedElectricity(detailInfo.getTotalFlatUsedElectricity());
|
vo.setTotalPeakUsedElectricity(detailInfo.getTotalPeakUsedElectricity());
|
||||||
vo.setTotalSharpUsedElectricity(detailInfo.getTotalSharpUsedElectricity());
|
vo.setTotalFlatUsedElectricity(detailInfo.getTotalFlatUsedElectricity());
|
||||||
vo.setTotalValleyUsedElectricity(detailInfo.getTotalValleyUsedElectricity());
|
vo.setTotalSharpUsedElectricity(detailInfo.getTotalSharpUsedElectricity());
|
||||||
|
vo.setTotalValleyUsedElectricity(detailInfo.getTotalValleyUsedElectricity());
|
||||||
resultList.add(vo);
|
}
|
||||||
|
resultList.add(vo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
resultList = resultList.stream().sorted(Comparator.comparing(IndexOrderInfoVO::getDate)).collect(Collectors.toList());
|
resultList = resultList.stream().sorted(Comparator.comparing(IndexOrderInfoVO::getDate)).collect(Collectors.toList());
|
||||||
return resultList;
|
return resultList;
|
||||||
|
|||||||
Reference in New Issue
Block a user