diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/dto/XhpcChargeHistoryOrder.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/dto/XhpcChargeHistoryOrder.java index 0c7608a1..c10a82fb 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/dto/XhpcChargeHistoryOrder.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/dto/XhpcChargeHistoryOrder.java @@ -14,6 +14,32 @@ public class XhpcChargeHistoryOrder { * 历史订单id */ private Long historyOrderId; + + /** + * 电站id + */ + private Long chargingStationId; + + /** + * 充电订单id + */ + private Long chargeOrderId; + + /** + * 终端id + */ + private Long terminalId; + + /** + * 流水号 + */ + private String serialNumber; + + /** + * 互联网订单流水号 + */ + private String internetSerialNumber; + /** * 订单总价 */ @@ -75,18 +101,35 @@ public class XhpcChargeHistoryOrder { private Integer source; /** - * 充电订单id + * 开始充电soc */ - private Long chargeOrderId; + private String startSoc; /** - * 电站id + * 结束时soc */ - private Long chargingStationId; + private String endSoc; + /** - * 终端id + * 对账状态(0待确认 1已确认,2待提交,3待审核) */ - private Long terminalId; + private Integer reconciliationStatus; + + /** + * 清分状态(0待清分 1清分在途,2已提现,3待提交,4待审核) + */ + private Integer sortingStatus; + + /** + * 1 自动结算 2 平台结算 + */ + private Integer type; + + /** + * 状态(0正常 1停用) + */ + private Integer status; + /** * 开始时间 @@ -108,6 +151,11 @@ public class XhpcChargeHistoryOrder { */ private BigDecimal chargingDegree; + /** + * 删除标志(0代表存在 2代表删除) + */ + private Integer delFlag; + /** * 运营商id */ @@ -127,15 +175,104 @@ public class XhpcChargeHistoryOrder { * 电桩id */ private Long chargingPileId; + /** * 总电费 */ private BigDecimal powerPriceTotal; + /** * 总服务费 */ private BigDecimal servicePriceTotal; + /** + * 0未统计 1已统计 + */ + private Integer state; + + /** + * VIN 码 + */ + private String vinNormal; + + /** + * 充电电量 + */ + private Double totalPower; + + /** + * 0:用户手动停止充电 + * 1:客户归属地运营商平台停止充电 + * 2:BMS 停止充电; + * 3:充电机设备故障; + * 4:连接器断开 + * 5-99 自定义 + */ + private Integer stopReasonEvcs = 0; + + /** + * 运营商/场站OperatorID + */ + private String operatorIdEvcs; + + /** + * 流量方OperatorID + */ + private String operatorId3rdptyEvcs; + + /** + * 终端客户开启充电方式 + * 0:未知 + * 1:市/省级平台无卡启动 + * 2:有卡启动 + * 3:其他无卡启动 + */ + private int chargeModelEvcs; + + /** + * 实际充电的客户在运营商侧的名称,<=20字符 + */ + private String userNameEvcs; + + /** + * 接口额定功率 + * 单位:kW, 小数点后 1 位 + */ + private Double connectorPowerEvcs; + + /** + * 电表总起值 + * 单位:度, 小数点后2位 + */ + private Double meterValueStartEvcs; + + /** + * 电表总结束值 + * 单位:度, 小数点后2位 + */ + private Double meterValueEndEvcs; + + public Double getMeterValueEndEvcs() { + + return meterValueEndEvcs; + } + + public void setMeterValueEndEvcs(Double meterValueEndEvcs) { + + this.meterValueEndEvcs = meterValueEndEvcs; + } + + public String getUserNameEvcs() { + + return userNameEvcs; + } + + public void setUserNameEvcs(String userNameEvcs) { + + this.userNameEvcs = userNameEvcs; + } + public Long getHistoryOrderId() { return historyOrderId; @@ -146,9 +283,69 @@ public class XhpcChargeHistoryOrder { this.historyOrderId = historyOrderId; } + public Long getChargingStationId() { + + return chargingStationId == null ? 0 : chargingStationId; + } + + public void setChargingStationId(Long chargingStationId) { + + this.chargingStationId = chargingStationId; + } + + public Long getChargeOrderId() { + + return chargeOrderId; + } + + public void setChargeOrderId(Long chargeOrderId) { + + this.chargeOrderId = chargeOrderId; + } + + public Long getUserId() { + + return userId; + } + + public void setUserId(Long userId) { + + this.userId = userId; + } + + public Long getTerminalId() { + + return terminalId; + } + + public void setTerminalId(Long terminalId) { + + this.terminalId = terminalId; + } + + public String getSerialNumber() { + + return serialNumber; + } + + public void setSerialNumber(String serialNumber) { + + this.serialNumber = serialNumber; + } + + public String getInternetSerialNumber() { + + return internetSerialNumber; + } + + public void setInternetSerialNumber(String internetSerialNumber) { + + this.internetSerialNumber = internetSerialNumber; + } + public BigDecimal getTotalPrice() { - return totalPrice; + return totalPrice == null ? BigDecimal.ZERO : totalPrice; } public void setTotalPrice(BigDecimal totalPrice) { @@ -256,124 +453,74 @@ public class XhpcChargeHistoryOrder { this.operationSvcCommission = operationSvcCommission; } - public Integer getSource() { + public String getStartSoc() { - return source; + return startSoc; } - public void setSource(Integer source) { + public void setStartSoc(String startSoc) { - this.source = source; + this.startSoc = startSoc; } - public Long getChargeOrderId() { + public String getEndSoc() { - return chargeOrderId; + return endSoc; } - public void setChargeOrderId(Long chargeOrderId) { + public void setEndSoc(String endSoc) { - this.chargeOrderId = chargeOrderId; + this.endSoc = endSoc; } - public Long getChargingStationId() { + public Integer getReconciliationStatus() { - return chargingStationId; + return reconciliationStatus; } - public void setChargingStationId(Long chargingStationId) { + public void setReconciliationStatus(Integer reconciliationStatus) { - this.chargingStationId = chargingStationId; + this.reconciliationStatus = reconciliationStatus; } - public Long getTerminalId() { + public Integer getSortingStatus() { - return terminalId; + return sortingStatus; } - public void setTerminalId(Long terminalId) { + public void setSortingStatus(Integer sortingStatus) { - this.terminalId = terminalId; + this.sortingStatus = sortingStatus; } - public Date getStartTime() { + public Integer getType() { - return startTime; + return type; } - public void setStartTime(Date startTime) { + public void setType(Integer type) { - this.startTime = startTime; + this.type = type; } - public Date getEndTime() { + public Integer getStatus() { - return endTime; + return status; } - public void setEndTime(Date endTime) { + public void setStatus(Integer status) { - this.endTime = endTime; + this.status = status; } - public Long getChargingTimeNumber() { + public Integer getDelFlag() { - return chargingTimeNumber; + return delFlag; } - public void setChargingTimeNumber(Long chargingTimeNumber) { + public void setDelFlag(Integer delFlag) { - this.chargingTimeNumber = chargingTimeNumber; - } - - public Long getOperatorId() { - - return operatorId; - } - - public void setOperatorId(Long operatorId) { - - this.operatorId = operatorId; - } - - public Long getUserId() { - - return userId; - } - - public void setUserId(Long userId) { - - this.userId = userId; - } - - public Long getRateModelId() { - - return rateModelId; - } - - public void setRateModelId(Long rateModelId) { - - this.rateModelId = rateModelId; - } - - public BigDecimal getChargingDegree() { - - return chargingDegree; - } - - public void setChargingDegree(BigDecimal chargingDegree) { - - this.chargingDegree = chargingDegree; - } - - public Long getChargingPileId() { - - return chargingPileId; - } - - public void setChargingPileId(Long chargingPileId) { - - this.chargingPileId = chargingPileId; + this.delFlag = delFlag; } public BigDecimal getPowerPriceTotal() { @@ -388,7 +535,7 @@ public class XhpcChargeHistoryOrder { public BigDecimal getServicePriceTotal() { - return servicePriceTotal; + return servicePriceTotal == null ? BigDecimal.ZERO : servicePriceTotal; } public void setServicePriceTotal(BigDecimal servicePriceTotal) { @@ -396,4 +543,174 @@ public class XhpcChargeHistoryOrder { this.servicePriceTotal = servicePriceTotal; } + public Integer getState() { + + return state; + } + + public void setState(Integer state) { + + this.state = state; + } + + public String getVinNormal() { + + return vinNormal; + } + + public void setVinNormal(String vinNormal) { + + this.vinNormal = vinNormal; + } + + public Double getTotalPower() { + + return totalPower; + } + + public void setTotalPower(Double totalPower) { + + this.totalPower = totalPower; + } + + public Date getStartTime() { + + return startTime; + } + + public void setStartTime(Date startTime) { + + this.startTime = startTime; + } + + public Integer getStopReasonEvcs() { + + return stopReasonEvcs; + } + + public void setStopReasonEvcs(Integer stopReasonEvcs) { + + this.stopReasonEvcs = stopReasonEvcs; + } + + public String getOperatorIdEvcs() { + + return operatorIdEvcs; + } + + public void setOperatorIdEvcs(String operatorIdEvcs) { + + this.operatorIdEvcs = operatorIdEvcs; + } + + public String getOperatorId3rdptyEvcs() { + + return operatorId3rdptyEvcs; + } + + public void setOperatorId3rdptyEvcs(String operatorId3rdptyEvcs) { + + this.operatorId3rdptyEvcs = operatorId3rdptyEvcs; + } + + public int getChargeModelEvcs() { + + return chargeModelEvcs; + } + + public void setChargeModelEvcs(int chargeModelEvcs) { + + this.chargeModelEvcs = chargeModelEvcs; + } + + public Double getConnectorPowerEvcs() { + + return connectorPowerEvcs; + } + + public void setConnectorPowerEvcs(Double connectorPowerEvcs) { + + this.connectorPowerEvcs = connectorPowerEvcs; + } + + public Double getMeterValueStartEvcs() { + + return meterValueStartEvcs; + } + + public void setMeterValueStartEvcs(Double meterValueStartEvcs) { + + this.meterValueStartEvcs = meterValueStartEvcs; + } + + public Integer getSource() { + + return source; + } + + public void setSource(Integer source) { + + this.source = source; + } + + public Long getChargingTimeNumber() { + + return chargingTimeNumber; + } + + public void setChargingTimeNumber(Long chargingTimeNumber) { + + this.chargingTimeNumber = chargingTimeNumber; + } + + public BigDecimal getChargingDegree() { + + return chargingDegree; + } + + public void setChargingDegree(BigDecimal chargingDegree) { + + this.chargingDegree = chargingDegree; + } + + public Long getRateModelId() { + + return rateModelId; + } + + public void setRateModelId(Long rateModelId) { + + this.rateModelId = rateModelId; + } + + public Long getChargingPileId() { + + return chargingPileId; + } + + public void setChargingPileId(Long chargingPileId) { + + this.chargingPileId = chargingPileId; + } + + public Date getEndTime() { + + return endTime; + } + + public void setEndTime(Date endTime) { + + this.endTime = endTime; + } + + public Long getOperatorId() { + + return operatorId; + } + + public void setOperatorId(Long operatorId) { + + this.operatorId = operatorId; + } + } diff --git a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcRealTimeOrderServiceImpl.java b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcRealTimeOrderServiceImpl.java index 2a91c1d3..c3d59fc9 100644 --- a/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcRealTimeOrderServiceImpl.java +++ b/xhpc-modules/xhpc-order/src/main/java/com/xhpc/order/service/impl/XhpcRealTimeOrderServiceImpl.java @@ -318,7 +318,6 @@ public class XhpcRealTimeOrderServiceImpl implements IXhpcRealTimeOrderService { xhpcHistoryOrder.setChargingStationId(xhpcChargeOrder.getChargingStationId()); xhpcHistoryOrder.setUserId(userId); xhpcHistoryOrder.setTerminalId(xhpcChargeOrder.getTerminalId()); - xhpcHistoryOrder.setGunId(xhpcChargeOrder.getGunId()); xhpcHistoryOrder.setStartTime(xhpcChargeOrder.getStartTime()); xhpcHistoryOrder.setStopReasonEvcs(xhpcChargeOrder.getStopReasonEvcs());//todo 从头开始设置所有evcs字段 xhpcHistoryOrder.setChargeModelEvcs(xhpcChargeOrder.getChargeModelEvcs()); diff --git a/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcHistoryOrderMapper.xml b/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcHistoryOrderMapper.xml index 40df51c7..665cf7c9 100644 --- a/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcHistoryOrderMapper.xml +++ b/xhpc-modules/xhpc-order/src/main/resources/mapper/XhpcHistoryOrderMapper.xml @@ -5,237 +5,339 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + history_order_id, charging_station_id, charge_order_id, user_id, terminal_id, serial_number, + internet_serial_number, power_price_total, service_price_total, total_price, promotion_discount, + act_price, act_power_price, act_service_price, internet_commission, internet_svc_commission, + platform_commission, platform_svc_commisssion, operation_commission, operation_svc_commission, + start_soc, end_soc, reconciliation_status, sorting_status, `type`, `status`, del_flag, + create_time, create_by, update_time, update_by, remark, `state`, vin_normal, search_value, + operator_id_evcs, charge_model_evcs, connector_power_evcs, meter_value_end_evcs, + meter_value_start_evcs, operator_id3rdpty_evcs, start_time, stop_reason_evcs, total_power, + user_name_evcs, phone + INSERT INTO xhpc_history_order - + charging_station_id, - + charge_order_id, - + user_id, - + terminal_id, - + serial_number, - + internet_serial_number, - - total_price, - - - promotion_discount, - - - act_price, - - - act_power_price, - - - act_service_price, - - - internet_commission, - - - internet_svc_commission, - - - platform_commission, - - - platform_svc_commisssion, - - - operation_commission, - - - operation_svc_commission, - - - start_soc, - - - end_soc, - - - reconciliation_status, - - - sorting_status, - - - type, - - - status, - - - del_flag, - - - create_time, - - - create_by, - - - update_time, - - - update_by, - - - remark, - - + power_price_total, - + service_price_total, - - vin_normal + + total_price, + + + promotion_discount, + + + act_price, + + + act_power_price, + + + act_service_price, + + + internet_commission, + + + internet_svc_commission, + + + platform_commission, + + + platform_svc_commisssion, + + + operation_commission, + + + operation_svc_commission, + + + start_soc, + + + end_soc, + + + reconciliation_status, + + + sorting_status, + + + `type`, + + + `status`, + + + del_flag, + + + create_time, + + + create_by, + + + update_time, + + + update_by, + + + remark, + + + `state`, + + + vin_normal, + + + search_value, + + + operator_id_evcs, + + + charge_model_evcs, + + + connector_power_evcs, + + + meter_value_end_evcs, + + + meter_value_start_evcs, + + + operator_id3rdpty_evcs, + + + start_time, + + + stop_reason_evcs, + + + total_power, + + + user_name_evcs, + + + phone, - - #{chargingStationId}, + + #{chargingStationId,jdbcType=BIGINT}, - - #{chargeOrderId}, + + #{chargeOrderId,jdbcType=BIGINT}, - - #{userId}, + + #{userId,jdbcType=BIGINT}, - - #{terminalId}, + + #{terminalId,jdbcType=BIGINT}, - - #{serialNumber}, + + #{serialNumber,jdbcType=VARCHAR}, - - #{internetSerialNumber}, + + #{internetSerialNumber,jdbcType=VARCHAR}, - - #{totalPrice}, + + #{powerPriceTotal,jdbcType=DECIMAL}, - - #{promotionDiscount}, + + #{servicePriceTotal,jdbcType=DECIMAL}, - - #{actPrice}, + + #{totalPrice,jdbcType=DECIMAL}, - - #{actPowerPrice}, + + #{promotionDiscount,jdbcType=DECIMAL}, - - #{actServicePrice}, + + #{actPrice,jdbcType=DECIMAL}, - - #{internetCommission}, + + #{actPowerPrice,jdbcType=DECIMAL}, - - #{internetSvcCommission}, + + #{actServicePrice,jdbcType=DECIMAL}, - - #{platformCommission}, + + #{internetCommission,jdbcType=DECIMAL}, - - #{platformSvcCommisssion}, + + #{internetSvcCommission,jdbcType=DECIMAL}, - - #{operationCommission}, + + #{platformCommission,jdbcType=DECIMAL}, - - #{operationSvcCommission}, + + #{platformSvcCommisssion,jdbcType=DECIMAL}, - - #{startSoc}, + + #{operationCommission,jdbcType=DECIMAL}, - - #{endSoc}, + + #{operationSvcCommission,jdbcType=DECIMAL}, - - #{reconciliationStatus}, + + #{startSoc,jdbcType=VARCHAR}, - - #{sortingStatus}, + + #{endSoc,jdbcType=VARCHAR}, - - #{type}, + + #{reconciliationStatus,jdbcType=INTEGER}, - - #{status}, + + #{sortingStatus,jdbcType=INTEGER}, - - #{delFlag}, + + #{type,jdbcType=TINYINT}, - - #{createTime}, + + #{status,jdbcType=INTEGER}, - - #{createBy}, + + #{delFlag,jdbcType=INTEGER}, - - #{updateTime}, + + #{createTime,jdbcType=TIMESTAMP}, - - #{updateBy}, + + #{createBy,jdbcType=VARCHAR}, - - #{remark}, + + #{updateTime,jdbcType=TIMESTAMP}, - - #{powerPriceTotal}, + + #{updateBy,jdbcType=VARCHAR}, - - #{servicePriceTotal}, + + #{remark,jdbcType=VARCHAR}, - - #{vinNormal} + + #{state,jdbcType=INTEGER}, + + + #{vinNormal,jdbcType=VARCHAR}, + + + #{searchValue,jdbcType=VARCHAR}, + + + #{operatorIdEvcs,jdbcType=VARCHAR}, + + + #{chargeModelEvcs,jdbcType=INTEGER}, + + + #{connectorPowerEvcs,jdbcType=DOUBLE}, + + + #{meterValueEndEvcs,jdbcType=DOUBLE}, + + + #{meterValueStartEvcs,jdbcType=DOUBLE}, + + + #{operatorId3rdptyEvcs,jdbcType=VARCHAR}, + + + #{startTime,jdbcType=TIMESTAMP}, + + + #{stopReasonEvcs,jdbcType=INTEGER}, + + + #{totalPower,jdbcType=DOUBLE}, + + + #{userNameEvcs,jdbcType=VARCHAR}, + + + #{phone,jdbcType=VARCHAR}, @@ -243,58 +345,143 @@ UPDATE xhpc_history_order - charging_station_id = - #{chargingStationId}, + + charging_station_id = #{chargingStationId,jdbcType=BIGINT}, - charge_order_id = #{chargeOrderId}, - user_id = #{userId}, - terminal_id = #{terminalId}, - serial_number = #{serialNumber}, - internet_serial_number = - #{internetSerialNumber}, + + charge_order_id = #{chargeOrderId,jdbcType=BIGINT}, - total_price = #{totalPrice}, - promotion_discount = - #{promotionDiscount}, + + user_id = #{userId,jdbcType=BIGINT}, - act_price = #{actPrice}, - act_power_price = #{actPowerPrice}, - act_service_price = #{actServicePrice}, - internet_commission = - #{internetCommission}, + + terminal_id = #{terminalId,jdbcType=BIGINT}, - internet_svc_commission = - #{internetSvcCommission}, + + serial_number = #{serialNumber,jdbcType=VARCHAR}, - platform_commission = - #{platformCommission}, + + internet_serial_number = #{internetSerialNumber,jdbcType=VARCHAR}, - platform_svc_commisssion = - #{platformSvcCommisssion}, + + power_price_total = #{powerPriceTotal,jdbcType=DECIMAL}, - operation_commission = - #{operationCommission}, + + service_price_total = #{servicePriceTotal,jdbcType=DECIMAL}, - operation_svc_commission = - #{operationSvcCommission}, + + total_price = #{totalPrice,jdbcType=DECIMAL}, + + + promotion_discount = #{promotionDiscount,jdbcType=DECIMAL}, + + + act_price = #{actPrice,jdbcType=DECIMAL}, + + + act_power_price = #{actPowerPrice,jdbcType=DECIMAL}, + + + act_service_price = #{actServicePrice,jdbcType=DECIMAL}, + + + internet_commission = #{internetCommission,jdbcType=DECIMAL}, + + + internet_svc_commission = #{internetSvcCommission,jdbcType=DECIMAL}, + + + platform_commission = #{platformCommission,jdbcType=DECIMAL}, + + + platform_svc_commisssion = #{platformSvcCommisssion,jdbcType=DECIMAL}, + + + operation_commission = #{operationCommission,jdbcType=DECIMAL}, + + + operation_svc_commission = #{operationSvcCommission,jdbcType=DECIMAL}, + + + start_soc = #{startSoc,jdbcType=VARCHAR}, + + + end_soc = #{endSoc,jdbcType=VARCHAR}, + + + reconciliation_status = #{reconciliationStatus,jdbcType=INTEGER}, + + + sorting_status = #{sortingStatus,jdbcType=INTEGER}, + + + `type` = #{type,jdbcType=TINYINT}, + + + `status` = #{status,jdbcType=INTEGER}, + + + del_flag = #{delFlag,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + update_by = #{updateBy,jdbcType=VARCHAR}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + `state` = #{state,jdbcType=INTEGER}, + + + vin_normal = #{vinNormal,jdbcType=VARCHAR}, + + + search_value = #{searchValue,jdbcType=VARCHAR}, + + + operator_id_evcs = #{operatorIdEvcs,jdbcType=VARCHAR}, + + + charge_model_evcs = #{chargeModelEvcs,jdbcType=INTEGER}, + + + connector_power_evcs = #{connectorPowerEvcs,jdbcType=DOUBLE}, + + + meter_value_end_evcs = #{meterValueEndEvcs,jdbcType=DOUBLE}, + + + meter_value_start_evcs = #{meterValueStartEvcs,jdbcType=DOUBLE}, + + + operator_id3rdpty_evcs = #{operatorId3rdptyEvcs,jdbcType=VARCHAR}, + + + start_time = #{startTime,jdbcType=TIMESTAMP}, + + + stop_reason_evcs = #{stopReasonEvcs,jdbcType=INTEGER}, + + + total_power = #{totalPower,jdbcType=DOUBLE}, + + + user_name_evcs = #{userNameEvcs,jdbcType=VARCHAR}, + + + phone = #{phone,jdbcType=VARCHAR}, - start_soc = #{startSoc}, - end_soc = #{endSoc}, - reconciliation_status =#{reconciliationStatus}, - sorting_status = #{sortingStatus}, - type = #{type}, - status = #{status}, - del_flag = #{delFlag}, - create_time = #{createTime}, - create_by = #{createBy}, - update_time = #{updateTime}, - update_by = #{updateBy}, - remark = #{remark}, - state = #{state}, - power_price_total = #{powerPriceTotal}, - service_price_total = #{servicePriceTotal} - WHERE history_order_id = #{historyOrderId} + where history_order_id = #{historyOrderId,jdbcType=BIGINT} select - ho.history_order_id as historyOrderId, - ho.power_price_total as powerPriceTotal, - ho.service_price_total as servicePriceTotal, - ho.promotion_discount as promotionDiscount, - ho.total_price as totalPrice, - ho.act_price as actPrice, - ho.act_power_price as actPowerPrice, - ho.act_service_price as actServicePrice, - ho.internet_commission as internetCommission, - ho.internet_svc_commission as internetSvcCommission, - ho.platform_commission as platformCommission, - ho.platform_svc_commisssion as platformSvcCommisssion, - ho.operation_commission as operationCommission, - ho.operation_svc_commission as operationSvcCommission, - co.source as source, - co.charge_order_id as chargeOrderId, - co.charging_station_id as chargingStationId, - co.terminal_id as terminalId, - co.start_time as startTime, - co.end_time as endTime, - co.charging_time_number as chargingTimeNumber, - co.charging_degree as chargingDegree, - co.rate_model_id as rateModelId, - cs.operator_id as operatorId, - te.charging_pile_id as chargingPileId, - co.user_id as userId + ho.history_order_id as historyOrderId, + ho.power_price_total as powerPriceTotal, + ho.service_price_total as servicePriceTotal, + ho.promotion_discount as promotionDiscount, + ho.total_price as totalPrice, + ho.act_price as actPrice, + ho.act_power_price as actPowerPrice, + ho.act_service_price as actServicePrice, + ho.internet_commission as internetCommission, + ho.internet_svc_commission as internetSvcCommission, + ho.platform_commission as platformCommission, + ho.platform_svc_commisssion as platformSvcCommisssion, + ho.operation_commission as operationCommission, + ho.operation_svc_commission as operationSvcCommission, + co.source as source, + co.charge_order_id as chargeOrderId, + co.charging_station_id as chargingStationId, + co.terminal_id as terminalId, + co.start_time as startTime, + co.end_time as endTime, + co.charging_time_number as chargingTimeNumber, + co.charging_degree as chargingDegree, + co.rate_model_id as rateModelId, + cs.operator_id as operatorId, + te.charging_pile_id as chargingPileId, + co.user_id as userId from xhpc_history_order ho - left join xhpc_charge_order co on co.charge_order_id =ho.charge_order_id - left join xhpc_charging_station cs on cs.charging_station_id = co.charging_station_id - left join xhpc_terminal as te on te.terminal_id =ho.terminal_id - where state =#{state} limit 0,#{number} + left join xhpc_charge_order co on co.charge_order_id = ho.charge_order_id + left join xhpc_charging_station cs on cs.charging_station_id = co.charging_station_id + left join xhpc_terminal as te on te.terminal_id = ho.terminal_id + where state = #{state} + limit 0,#{number} - \ No newline at end of file +