mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 可疑订单
This commit is contained in:
@@ -7,6 +7,8 @@ import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 交易记录数据对象
|
||||
*
|
||||
@@ -119,6 +121,8 @@ public class TransactionRecordsData {
|
||||
// 物理卡号 不足 8 位补 0
|
||||
private String logicCard;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
|
||||
@@ -153,6 +157,7 @@ public class TransactionRecordsData {
|
||||
.append("transactionTime", transactionTime)
|
||||
.append("stopReasonMsg", stopReasonMsg)
|
||||
.append("logicCard", logicCard)
|
||||
.append("createTime", createTime)
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -806,6 +806,11 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
||||
// 谷时段用电量
|
||||
orderDetail.setValleyUsedElectricity(new BigDecimal(data.getValleyUsedElectricity()));
|
||||
|
||||
if (data.getCreateTime() != null) {
|
||||
orderBasicInfo.setCreateTime(data.getCreateTime());
|
||||
orderDetail.setCreateTime(data.getCreateTime());
|
||||
}
|
||||
|
||||
OrderTransactionDTO createOrderTransactionDTO = OrderTransactionDTO.builder()
|
||||
.orderBasicInfo(orderBasicInfo)
|
||||
.orderDetail(orderDetail)
|
||||
|
||||
@@ -539,7 +539,7 @@
|
||||
peak_price, peak_used_electricity, peak_electricity_price, peak_service_price, peak_amount,
|
||||
flat_price, flat_used_electricity, flat_electricity_price, flat_service_price, flat_amount,
|
||||
valley_price, valley_used_electricity, valley_electricity_price, valley_service_price, valley_amount,
|
||||
create_by,update_by)
|
||||
create_by,update_by, createTime)
|
||||
values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(#{item.id}, #{item.orderCode}, #{item.totalUsedElectricity}, #{item.totalOrderAmount}, #{item.totalElectricityAmount}, #{item.totalServiceAmount},
|
||||
@@ -547,7 +547,7 @@
|
||||
#{item.peakPrice}, #{item.peakUsedElectricity}, #{item.peakElectricityPrice}, #{item.peakServicePrice}, #{item.peakAmount},
|
||||
#{item.flatPrice}, #{item.flatUsedElectricity}, #{item.flatElectricityPrice}, #{item.flatServicePrice}, #{item.flatAmount},
|
||||
#{item.valleyPrice}, #{item.valleyUsedElectricity}, #{item.valleyElectricityPrice}, #{item.valleyServicePrice}, #{item.valleyAmount},
|
||||
#{item.createBy}, #{item.updateBy})
|
||||
#{item.createBy}, #{item.updateBy}, #{item.createTime,jdbcType=TIMESTAMP})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user