203 lines
7.3 KiB
XML
203 lines
7.3 KiB
XML
<?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="com.xhpc.order.mapper.XhpcRealTimeOrderMapper">
|
|
|
|
<resultMap type="com.xhpc.order.domain.XhpcRealTimeOrder" id="XhpcRealTimeOrderMap">
|
|
<result column="real_time_order_id" property="realTimeOrderId"/>
|
|
<result column="charging_order_id" property="chargingOrderId"/>
|
|
<result column="transaction_number" property="transactionNumber"/>
|
|
<result column="pile_number" property="pileNumber"/>
|
|
<result column="gun_number" property="gunNumber"/>
|
|
<result column="pile_gun_status" property="pileGunStatus"/>
|
|
<result column="vehicle_gun_status" property="vehicleGunStatus"/>
|
|
<result column="voltage" property="voltage"/>
|
|
<result column="electric_current" property="electricCurrent"/>
|
|
<result column="gun_line_temperature" property="gunLineTemperature"/>
|
|
<result column="gun_line_number" property="gunLineNumber"/>
|
|
<result column="soc" property="soc"/>
|
|
<result column="max_temperature" property="maxTemperature"/>
|
|
<result column="charging_time" property="chargingTime"/>
|
|
<result column="remaining_time" property="remainingTime"/>
|
|
<result column="charging_degree" property="chargingDegree"/>
|
|
<result column="loss_charging_degree" property="lossChargingDegree"/>
|
|
<result column="amount_charged" property="amountCharged"/>
|
|
<result column="hardware_fault" property="hardwareFault"/>
|
|
<result column="status" property="status"/>
|
|
<result column="create_time" property="createTime"/>
|
|
<result column="create_by" property="createBy"/>
|
|
<result column="update_time" property="updateTime"/>
|
|
<result column="update_by" property="updateBy"/>
|
|
<result column="remark" property="remark"/>
|
|
<result column="user_id" property="userId"/>
|
|
<result column="charging_station_id" property="chargingStationId"/>
|
|
</resultMap>
|
|
|
|
<insert id="addXhpcRealTimeOrder" parameterType="com.xhpc.order.domain.XhpcRealTimeOrder" useGeneratedKeys="true"
|
|
keyProperty="realTimeOrderId">
|
|
insert into xhpc_real_time_order
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="null != chargingOrderId ">
|
|
charging_order_id,
|
|
</if>
|
|
<if test="null != transactionNumber ">
|
|
transaction_number,
|
|
</if>
|
|
<if test="null != pileNumber ">
|
|
pile_number,
|
|
</if>
|
|
<if test="null != gunNumber ">
|
|
gun_number,
|
|
</if>
|
|
<if test="null != pileGunStatus ">
|
|
pile_gun_status,
|
|
</if>
|
|
<if test="null != vehicleGunStatus ">
|
|
vehicle_gun_status,
|
|
</if>
|
|
<if test="null != voltage ">
|
|
voltage,
|
|
</if>
|
|
<if test="null != electricCurrent ">
|
|
electric_current,
|
|
</if>
|
|
<if test="null != gunLineTemperature ">
|
|
gun_line_temperature,
|
|
</if>
|
|
<if test="null != gunLineNumber ">
|
|
gun_line_number,
|
|
</if>
|
|
<if test="null != soc ">
|
|
soc,
|
|
</if>
|
|
<if test="null != maxTemperature ">
|
|
max_temperature,
|
|
</if>
|
|
<if test="null != chargingTime ">
|
|
charging_time,
|
|
</if>
|
|
<if test="null != remainingTime ">
|
|
remaining_time,
|
|
</if>
|
|
<if test="null != chargingDegree ">
|
|
charging_degree,
|
|
</if>
|
|
<if test="null != lossChargingDegree ">
|
|
loss_charging_degree,
|
|
</if>
|
|
<if test="null != amountCharged ">
|
|
amount_charged,
|
|
</if>
|
|
<if test="null != hardwareFault ">
|
|
hardware_fault,
|
|
</if>
|
|
<if test="null != status ">
|
|
status,
|
|
</if>
|
|
<if test="null != createTime ">
|
|
create_time,
|
|
</if>
|
|
<if test="null != createBy ">
|
|
create_by,
|
|
</if>
|
|
<if test="null != updateTime ">
|
|
update_time,
|
|
</if>
|
|
<if test="null != updateBy ">
|
|
update_by,
|
|
</if>
|
|
<if test="null != remark ">
|
|
remark,
|
|
</if>
|
|
<if test="null != userId ">
|
|
user_id,
|
|
</if>
|
|
<if test="null != chargingStationId ">
|
|
charging_station_id
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="null != chargingOrderId ">
|
|
#{chargingOrderId},
|
|
</if>
|
|
<if test="null != transactionNumber ">
|
|
#{transactionNumber},
|
|
</if>
|
|
<if test="null != pileNumber ">
|
|
#{pileNumber},
|
|
</if>
|
|
<if test="null != gunNumber ">
|
|
#{gunNumber},
|
|
</if>
|
|
<if test="null != pileGunStatus ">
|
|
#{pileGunStatus},
|
|
</if>
|
|
<if test="null != vehicleGunStatus ">
|
|
#{vehicleGunStatus},
|
|
</if>
|
|
<if test="null != voltage ">
|
|
#{voltage},
|
|
</if>
|
|
<if test="null != electricCurrent ">
|
|
#{electricCurrent},
|
|
</if>
|
|
<if test="null != gunLineTemperature ">
|
|
#{gunLineTemperature},
|
|
</if>
|
|
<if test="null != gunLineNumber ">
|
|
#{gunLineNumber},
|
|
</if>
|
|
<if test="null != soc ">
|
|
#{soc},
|
|
</if>
|
|
<if test="null != maxTemperature ">
|
|
#{maxTemperature},
|
|
</if>
|
|
<if test="null != chargingTime ">
|
|
#{chargingTime},
|
|
</if>
|
|
<if test="null != remainingTime ">
|
|
#{remainingTime},
|
|
</if>
|
|
<if test="null != chargingDegree ">
|
|
#{chargingDegree},
|
|
</if>
|
|
<if test="null != lossChargingDegree ">
|
|
#{lossChargingDegree},
|
|
</if>
|
|
<if test="null != amountCharged ">
|
|
#{amountCharged},
|
|
</if>
|
|
<if test="null != hardwareFault ">
|
|
#{hardwareFault},
|
|
</if>
|
|
<if test="null != status ">
|
|
#{status},
|
|
</if>
|
|
<if test="null != createTime ">
|
|
#{createTime},
|
|
</if>
|
|
<if test="null != createBy ">
|
|
#{createBy},
|
|
</if>
|
|
<if test="null != updateTime ">
|
|
#{updateTime},
|
|
</if>
|
|
<if test="null != updateBy ">
|
|
#{updateBy},
|
|
</if>
|
|
<if test="null != remark ">
|
|
#{remark},
|
|
</if>
|
|
<if test="null != userId ">
|
|
#{userId},
|
|
</if>
|
|
<if test="null != chargingStationId ">
|
|
#{chargingStationId}
|
|
</if>
|
|
</trim>
|
|
|
|
|
|
</insert>
|
|
</mapper> |