mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
update
This commit is contained in:
@@ -272,9 +272,10 @@ public class JsowellTask {
|
|||||||
* 推送统计信息 24小时执行一次
|
* 推送统计信息 24小时执行一次
|
||||||
*/
|
*/
|
||||||
public void pushStatisticsInfo() {
|
public void pushStatisticsInfo() {
|
||||||
|
//TODO prd环境不执行
|
||||||
String env = SpringUtils.getActiveProfile();
|
String env = SpringUtils.getActiveProfile();
|
||||||
if (StringUtils.equalsIgnoreCase(env, "pre")) {
|
if (StringUtils.equalsIgnoreCase(env, "prd")) {
|
||||||
log.debug("PRE环境不执行");
|
log.debug("PRD环境不执行");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -812,7 +812,7 @@ public class GuiZhouPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
|
|
||||||
equipmentStatsInfo.setEquipmentId(pileSn);
|
equipmentStatsInfo.setEquipmentId(pileSn);
|
||||||
equipmentStatsInfo.setEquipmentClassification(1);
|
equipmentStatsInfo.setEquipmentClassification(1);
|
||||||
equipmentStatsInfo.setEquipmentElectricity((vo.getTotalPower() != null) ? vo.getTotalPower() : BigDecimal.ZERO);
|
equipmentStatsInfo.setEquipmentElectricity((vo.getTotalPower() != null) ? vo.getTotalPower().setScale(2, RoundingMode.HALF_UP) : BigDecimal.ZERO);
|
||||||
equipmentStatsInfo.setEquipmentTotalChargeTime((vo.getChargingTime() != null) ? vo.getChargingTime() : Constants.zero);
|
equipmentStatsInfo.setEquipmentTotalChargeTime((vo.getChargingTime() != null) ? vo.getChargingTime() : Constants.zero);
|
||||||
equipmentStatsInfo.setEquipmentTotalChargeNum(orderVOS.size());
|
equipmentStatsInfo.setEquipmentTotalChargeNum(orderVOS.size());
|
||||||
equipmentStatsInfo.setEquipmentTotalWarningNum(0);
|
equipmentStatsInfo.setEquipmentTotalWarningNum(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user