订单修改字段
This commit is contained in:
parent
6df99469cd
commit
1f581be355
@ -25,7 +25,7 @@ public class XhpcHistoryOrder extends BaseEntity {
|
|||||||
/**
|
/**
|
||||||
* 充电订单id
|
* 充电订单id
|
||||||
*/
|
*/
|
||||||
private Long chargingOrderId;
|
private Long chargeOrderId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户id
|
* 用户id
|
||||||
@ -153,12 +153,14 @@ public class XhpcHistoryOrder extends BaseEntity {
|
|||||||
this.chargingStationId = chargingStationId;
|
this.chargingStationId = chargingStationId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getChargingOrderId() {
|
public Long getChargeOrderId() {
|
||||||
return chargingOrderId;
|
|
||||||
|
return chargeOrderId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setChargingOrderId(Long chargingOrderId) {
|
public void setChargeOrderId(Long chargeOrderId) {
|
||||||
this.chargingOrderId = chargingOrderId;
|
|
||||||
|
this.chargeOrderId = chargeOrderId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getUserId() {
|
public Long getUserId() {
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<resultMap type="com.xhpc.order.domain.XhpcHistoryOrder" id="XhpcHistoryOrderResult">
|
<resultMap type="com.xhpc.order.domain.XhpcHistoryOrder" id="XhpcHistoryOrderResult">
|
||||||
<result column="history_order_id" property="historyOrderId"/>
|
<result column="history_order_id" property="historyOrderId"/>
|
||||||
<result column="charging_station_id" property="chargingStationId"/>
|
<result column="charging_station_id" property="chargingStationId"/>
|
||||||
<result column="charging_order_id" property="chargingOrderId"/>
|
<result column="charging_order_id" property="chargeOrderId"/>
|
||||||
<result column="user_id" property="userId"/>
|
<result column="user_id" property="userId"/>
|
||||||
<result column="terminal_id" property="terminalId"/>
|
<result column="terminal_id" property="terminalId"/>
|
||||||
<result column="serial_number" property="serialNumber"/>
|
<result column="serial_number" property="serialNumber"/>
|
||||||
@ -43,8 +43,8 @@
|
|||||||
<if test="null != chargingStationId and '' != chargingStationId">
|
<if test="null != chargingStationId and '' != chargingStationId">
|
||||||
charging_station_id,
|
charging_station_id,
|
||||||
</if>
|
</if>
|
||||||
<if test="null != chargingOrderId and '' != chargingOrderId">
|
<if test="null != chargeOrderId and '' != chargeOrderId">
|
||||||
charging_order_id,
|
charge_order_id,
|
||||||
</if>
|
</if>
|
||||||
<if test="null != userId and '' != userId">
|
<if test="null != userId and '' != userId">
|
||||||
user_id,
|
user_id,
|
||||||
@ -132,8 +132,8 @@
|
|||||||
<if test="null != chargingStationId and '' != chargingStationId">
|
<if test="null != chargingStationId and '' != chargingStationId">
|
||||||
#{chargingStationId},
|
#{chargingStationId},
|
||||||
</if>
|
</if>
|
||||||
<if test="null != chargingOrderId and '' != chargingOrderId">
|
<if test="null != chargeOrderId and '' != chargeOrderId">
|
||||||
#{chargingOrderId},
|
#{chargeOrderId},
|
||||||
</if>
|
</if>
|
||||||
<if test="null != userId and '' != userId">
|
<if test="null != userId and '' != userId">
|
||||||
#{userId},
|
#{userId},
|
||||||
@ -225,7 +225,7 @@
|
|||||||
<if test="null != chargingStationId and '' != chargingStationId">charging_station_id =
|
<if test="null != chargingStationId and '' != chargingStationId">charging_station_id =
|
||||||
#{chargingStationId},
|
#{chargingStationId},
|
||||||
</if>
|
</if>
|
||||||
<if test="null != chargingOrderId and '' != chargingOrderId">charging_order_id = #{chargingOrderId},</if>
|
<if test="null != chargeOrderId and '' != chargeOrderId">charge_order_id = #{chargeOrderId},</if>
|
||||||
<if test="null != userId and '' != userId">user_id = #{userId},</if>
|
<if test="null != userId and '' != userId">user_id = #{userId},</if>
|
||||||
<if test="null != terminalId and '' != terminalId">terminal_id = #{terminalId},</if>
|
<if test="null != terminalId and '' != terminalId">terminal_id = #{terminalId},</if>
|
||||||
<if test="null != serialNumber and '' != serialNumber">serial_number = #{serialNumber},</if>
|
<if test="null != serialNumber and '' != serialNumber">serial_number = #{serialNumber},</if>
|
||||||
@ -309,7 +309,7 @@
|
|||||||
FROM xhpc_history_order as ho
|
FROM xhpc_history_order as ho
|
||||||
LEFT JOIN xhpc_charging_station as cs on cs.charging_station_id = ho.charging_station_id
|
LEFT JOIN xhpc_charging_station as cs on cs.charging_station_id = ho.charging_station_id
|
||||||
LEFT JOIN xhpc_terminal as te on te.terminal_id = ho.terminal_id
|
LEFT JOIN xhpc_terminal as te on te.terminal_id = ho.terminal_id
|
||||||
left join xhpc_charge_order as co on co.charging_order_id =ho.charging_order_id
|
left join xhpc_charge_order as co on co.charge_order_id =ho.charge_order_id
|
||||||
where ho.status=0 and ho.del_flag=0 and ho.user_id =#{userId}
|
where ho.status=0 and ho.del_flag=0 and ho.user_id =#{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -332,7 +332,7 @@
|
|||||||
FROM xhpc_history_order as ho
|
FROM xhpc_history_order as ho
|
||||||
LEFT JOIN xhpc_charging_station as cs on cs.charging_station_id = ho.charging_station_id
|
LEFT JOIN xhpc_charging_station as cs on cs.charging_station_id = ho.charging_station_id
|
||||||
LEFT JOIN xhpc_terminal as te on te.terminal_id = ho.terminal_id
|
LEFT JOIN xhpc_terminal as te on te.terminal_id = ho.terminal_id
|
||||||
left join xhpc_charge_order as co on co.charging_order_id =ho.charging_order_id
|
left join xhpc_charge_order as co on co.charge_order_id =ho.charge_order_id
|
||||||
where ho.status=0 and ho.del_flag=0 and ho.history_order_id =#{historyOrderId}
|
where ho.status=0 and ho.del_flag=0 and ho.history_order_id =#{historyOrderId}
|
||||||
<if test="userId !=null">
|
<if test="userId !=null">
|
||||||
and ho.user_id =#{userId}
|
and ho.user_id =#{userId}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user