Perfecting the query_start_charge.
This commit is contained in:
parent
720af17789
commit
24a1d74cf2
@ -176,7 +176,8 @@ public interface XhpcChargeOrderMapper {
|
||||
@Param(value = "driverId") String driverId,
|
||||
@Param(value = "chargingAmt") Integer chargingAmt,
|
||||
@Param(value = "plateNum") String plateNum,
|
||||
@Param(value = "status") Integer status);
|
||||
@Param(value = "status") Integer status,
|
||||
@Param(value = "createTime") Date createTime);
|
||||
|
||||
/**
|
||||
* 标记异常大于创建4小时,标记为异常
|
||||
|
||||
@ -471,7 +471,7 @@ public class XhpcChargeOrderServiceImpl implements IXhpcChargeOrderService {
|
||||
return r;
|
||||
}
|
||||
String startTime = DateUtil.format(date, "yyyy-MM-dd HH: mm: ss");
|
||||
int res = xhpcChargeOrderMapper.addBy3rd(internetSerialNumber, orderNo, driverId, chargingAmt, plateNum, status);
|
||||
int res = xhpcChargeOrderMapper.addBy3rd(internetSerialNumber, orderNo, driverId, chargingAmt, plateNum, status, date);
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
System.out.println(res);
|
||||
if (res != 0) {
|
||||
|
||||
@ -495,21 +495,29 @@
|
||||
insert into xhpc_charge_order
|
||||
(internet_serial_number,
|
||||
serial_number,
|
||||
driver_id,
|
||||
charging_amt,
|
||||
<if test=" driverId != null and driverId != ''">
|
||||
driver_id,
|
||||
</if>
|
||||
<if test="chargingAmt != null and chargingAmt != ''">
|
||||
charging_amt,
|
||||
</if>
|
||||
<if test="plateNum != null and plateNum != ''">
|
||||
Plate_num,
|
||||
</if>
|
||||
status,source)
|
||||
status,source,create_time)
|
||||
values
|
||||
(#{internetSerialNumber},
|
||||
#{serialNum},
|
||||
#{driverId},
|
||||
#{chargingAmt},
|
||||
<if test="driverId != null and driverId != ''">
|
||||
#{driverId},
|
||||
</if>
|
||||
<if test="chargingAmt != null and chargingAmt != ''">
|
||||
#{chargingAmt},
|
||||
</if>
|
||||
<if test="plateNum != null and plateNum != ''">
|
||||
#{plateNum},
|
||||
</if>
|
||||
#{status},1)
|
||||
#{status},1,#{createTime})
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user