ChargingOrderDetailMapper.xml 4.08 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.evbusiness.modules.mapper.ChargingOrderDetailMapper">
    <resultMap id="BaseResultMap" type="cn.com.glsx.evbusiness.modules.entity.ChargingOrderDetail">
        <!--
          WARNING - @mbg.generated
        -->
        <id column="id" jdbcType="INTEGER" property="id"/>
        <result column="order_code" jdbcType="VARCHAR" property="orderCode"/>
        <result column="pile_id" jdbcType="VARCHAR" property="pileId"/>
        <result column="gun_number" jdbcType="VARCHAR" property="gunNumber"/>
        <result column="start_time" jdbcType="TIMESTAMP" property="startTime"/>
        <result column="end_time" jdbcType="TIMESTAMP" property="endTime"/>
        <result column="peak_unit_price" jdbcType="DECIMAL" property="peakUnitPrice"/>
        <result column="peak_electricity" jdbcType="DECIMAL" property="peakElectricity"/>
        <result column="peak_electricity_loss" jdbcType="DECIMAL" property="peakElectricityLoss"/>
        <result column="peak_amount" jdbcType="DECIMAL" property="peakAmount"/>
        <result column="top_unit_price" jdbcType="DECIMAL" property="topUnitPrice"/>
        <result column="top_electricity" jdbcType="DECIMAL" property="topElectricity"/>
        <result column="top_electricity_loss" jdbcType="DECIMAL" property="topElectricityLoss"/>
        <result column="top_amount" jdbcType="DECIMAL" property="topAmount"/>
        <result column="flat_unit_price" jdbcType="DECIMAL" property="flatUnitPrice"/>
        <result column="flat_electricity" jdbcType="DECIMAL" property="flatElectricity"/>
        <result column="flat_electricity_loss" jdbcType="DECIMAL" property="flatElectricityLoss"/>
        <result column="flat_amount" jdbcType="DECIMAL" property="flatAmount"/>
        <result column="valley_unit_price" jdbcType="DECIMAL" property="valleyUnitPrice"/>
        <result column="valley_electricity" jdbcType="DECIMAL" property="valleyElectricity"/>
        <result column="valley_electricity_loss" jdbcType="DECIMAL" property="valleyElectricityLoss"/>
        <result column="valley_amount" jdbcType="DECIMAL" property="valleyAmount"/>
        <result column="total_start_value" jdbcType="DECIMAL" property="totalStartValue"/>
        <result column="total_end_value" jdbcType="DECIMAL" property="totalEndValue"/>
        <result column="total_electricity" jdbcType="DECIMAL" property="totalElectricity"/>
        <result column="total_electricity_loss" jdbcType="DECIMAL" property="totalElectricityLoss"/>
        <result column="total_amount" jdbcType="DECIMAL" property="totalAmount"/>
        <result column="vehicle_identifier" jdbcType="VARCHAR" property="vehicleIdentifier"/>
        <result column="transaction_identifier" jdbcType="TINYINT" property="transactionIdentifier"/>
        <result column="transaction_datetime" jdbcType="TIMESTAMP" property="transactionDateTime"/>
        <result column="stop_reason" jdbcType="TINYINT" property="stopReason"/>
        <result column="physical_card_number" jdbcType="VARCHAR" property="physicalCardNumber"/>
        <result column="created_time" jdbcType="TIMESTAMP" property="createdTime"/>
    </resultMap>
    <sql id="Base_Column_List">
        <!--
          WARNING - @mbg.generated
        -->
        id, order_code, pile_id, gun_number, start_time, end_time, peak_unit_price, peak_electricity,
        peak_electricity_loss, peak_amount, top_unit_price, top_electricity, top_electricity_loss, top_amount,
        flat_unit_price, flat_electricity, flat_electricity_loss, flat_amount, valley_unit_price, valley_electricity,
        valley_electricity_loss, valley_amount, total_start_value, total_end_value, total_electricity,
        total_electricity_loss, total_amount, vehicle_identifier, transaction_identifier, transaction_datetime,
        stop_reason, physical_card_number, created_time
    </sql>

    <select id="findByOrderCode" resultMap="BaseResultMap">
        select *
        from charging_order_detail
        where order_code = #{orderCode}
    </select>
</mapper>