order_detail表中新增 各时段单价和总金额 字段(共8个)

This commit is contained in:
DESKTOP-D9QDT1P\JS-ZZA
2023-03-08 11:02:57 +08:00
parent e51ac37c00
commit 4d9e81a2df
2 changed files with 101 additions and 14 deletions

View File

@@ -59,6 +59,12 @@ public class OrderDetail extends BaseEntity {
@Excel(name = "服务费总金额", readConverterExp = "各=时段服务费总金额") @Excel(name = "服务费总金额", readConverterExp = "各=时段服务费总金额")
private BigDecimal totalServiceAmount; private BigDecimal totalServiceAmount;
/**
* 尖单价
*/
@Excel(name = "尖单价")
private BigDecimal sharpPrice;
/** /**
* 尖时段用电量 * 尖时段用电量
*/ */
@@ -77,6 +83,18 @@ public class OrderDetail extends BaseEntity {
@Excel(name = "尖时段服务费单价") @Excel(name = "尖时段服务费单价")
private BigDecimal sharpServicePrice; private BigDecimal sharpServicePrice;
/**
* 尖金额
*/
@Excel(name = "尖金额")
private BigDecimal sharpAmount;
/**
* 峰单价
*/
@Excel(name = "峰单价")
private BigDecimal peakPrice;
/** /**
* 峰时段用电量 * 峰时段用电量
*/ */
@@ -95,6 +113,18 @@ public class OrderDetail extends BaseEntity {
@Excel(name = "峰时段服务费单价") @Excel(name = "峰时段服务费单价")
private BigDecimal peakServicePrice; private BigDecimal peakServicePrice;
/**
* 峰金额
*/
@Excel(name = "峰金额")
private BigDecimal peakAmount;
/***
* 平单价
*/
@Excel(name = "平单价")
private BigDecimal flatPrice;
/** /**
* 平时段用电量 * 平时段用电量
*/ */
@@ -113,6 +143,18 @@ public class OrderDetail extends BaseEntity {
@Excel(name = "平时段服务费单价") @Excel(name = "平时段服务费单价")
private BigDecimal flatServicePrice; private BigDecimal flatServicePrice;
/**
* 平金额
*/
@Excel(name = "平金额")
private BigDecimal flatAmount;
/**
* 谷单价
*/
@Excel(name = "谷单价")
private BigDecimal valleyPrice;
/** /**
* 谷时段用电量 * 谷时段用电量
*/ */
@@ -131,6 +173,12 @@ public class OrderDetail extends BaseEntity {
@Excel(name = "谷时段服务费单价") @Excel(name = "谷时段服务费单价")
private BigDecimal valleyServicePrice; private BigDecimal valleyServicePrice;
/**
* 谷金额
*/
@Excel(name = "谷金额")
private BigDecimal valleyAmount;
/** /**
* 删除标识0-正常1-删除) * 删除标识0-正常1-删除)
*/ */

View File

@@ -44,18 +44,26 @@
<result property="totalOrderAmount" column="total_order_amount"/> <result property="totalOrderAmount" column="total_order_amount"/>
<result property="totalElectricityAmount" column="total_electricity_amount"/> <result property="totalElectricityAmount" column="total_electricity_amount"/>
<result property="totalServiceAmount" column="total_service_amount"/> <result property="totalServiceAmount" column="total_service_amount"/>
<result property="sharpPrice" column="sharp_price"/>
<result property="sharpUsedElectricity" column="sharp_used_electricity"/> <result property="sharpUsedElectricity" column="sharp_used_electricity"/>
<result property="sharpElectricityPrice" column="sharp_electricity_price"/> <result property="sharpElectricityPrice" column="sharp_electricity_price"/>
<result property="sharpServicePrice" column="sharp_service_price"/> <result property="sharpServicePrice" column="sharp_service_price"/>
<result property="sharpAmount" column="sharp_amount"/>
<result property="peakPrice" column="peak_price"/>
<result property="peakUsedElectricity" column="peak_used_electricity"/> <result property="peakUsedElectricity" column="peak_used_electricity"/>
<result property="peakElectricityPrice" column="peak_electricity_price"/> <result property="peakElectricityPrice" column="peak_electricity_price"/>
<result property="peakServicePrice" column="peak_service_price"/> <result property="peakServicePrice" column="peak_service_price"/>
<result property="peakAmount" column="peak_amount"/>
<result property="flatPrice" column="flat_price"/>
<result property="flatUsedElectricity" column="flat_used_electricity"/> <result property="flatUsedElectricity" column="flat_used_electricity"/>
<result property="flatElectricityPrice" column="flat_electricity_price"/> <result property="flatElectricityPrice" column="flat_electricity_price"/>
<result property="flatServicePrice" column="flat_service_price"/> <result property="flatServicePrice" column="flat_service_price"/>
<result property="flatAmount" column="flat_amount"/>
<result property="valleyPrice" column="valley_price"/>
<result property="valleyUsedElectricity" column="valley_used_electricity"/> <result property="valleyUsedElectricity" column="valley_used_electricity"/>
<result property="valleyElectricityPrice" column="valley_electricity_price"/> <result property="valleyElectricityPrice" column="valley_electricity_price"/>
<result property="valleyServicePrice" column="valley_service_price"/> <result property="valleyServicePrice" column="valley_service_price"/>
<result property="valleyAmount" column="valley_amount"/>
<result property="createBy" column="create_by"/> <result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/> <result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/> <result property="updateBy" column="update_by"/>
@@ -105,18 +113,26 @@
total_order_amount, total_order_amount,
total_electricity_amount, total_electricity_amount,
total_service_amount, total_service_amount,
sharp_price,
sharp_used_electricity, sharp_used_electricity,
sharp_electricity_price, sharp_electricity_price,
sharp_service_price, sharp_service_price,
sharp_amount,
peak_price,
peak_used_electricity, peak_used_electricity,
peak_electricity_price, peak_electricity_price,
peak_service_price, peak_service_price,
peak_amount,
flat_price,
flat_used_electricity, flat_used_electricity,
flat_electricity_price, flat_electricity_price,
flat_service_price, flat_service_price,
flat_amount,
valley_price,
valley_used_electricity, valley_used_electricity,
valley_electricity_price, valley_electricity_price,
valley_service_price, valley_service_price,
valley_amount,
create_by, create_by,
create_time, create_time,
update_by, update_by,
@@ -495,21 +511,20 @@
</delete> </delete>
<insert id="batchOrderDetail"> <insert id="batchOrderDetail">
insert into order_detail(id, order_code, total_used_electricity, total_order_amount, total_electricity_amount, insert into order_detail(id, order_code, total_used_electricity, total_order_amount, total_electricity_amount,total_service_amount,
total_service_amount, sharp_used_electricity, sharp_electricity_price, sharp_price, sharp_used_electricity, sharp_electricity_price, sharp_service_price, sharp_amount,
sharp_service_price, peak_price, peak_used_electricity, peak_electricity_price, peak_service_price, peak_amount,
peak_used_electricity, peak_electricity_price, peak_service_price, flat_price, flat_used_electricity, flat_electricity_price, flat_service_price, flat_amount,
flat_used_electricity, flat_electricity_price, valley_price, valley_used_electricity, valley_electricity_price, valley_service_price, valley_amount
flat_service_price, valley_used_electricity, valley_electricity_price, create_by,update_by)
valley_service_price, create_by, values
update_by) values
<foreach item="item" index="index" collection="list" separator=","> <foreach item="item" index="index" collection="list" separator=",">
(#{item.id}, #{item.orderCode}, #{item.totalUsedElectricity}, #{item.totalOrderAmount}, (#{item.id}, #{item.orderCode}, #{item.totalUsedElectricity}, #{item.totalOrderAmount}, #{item.totalElectricityAmount}, #{item.totalServiceAmount},
#{item.totalElectricityAmount}, #{item.totalServiceAmount}, #{item.sharpUsedElectricity}, #{item.sharpPrice}, #{item.sharpUsedElectricity}, #{item.sharpElectricityPrice}, #{item.sharpServicePrice}, #{item.sharpAmount},
#{item.sharpElectricityPrice}, #{item.sharpServicePrice}, #{item.peakUsedElectricity}, #{item.peakPrice}, #{item.peakUsedElectricity}, #{item.peakElectricityPrice}, #{item.peakServicePrice}, #{item.peakAmount},
#{item.peakElectricityPrice}, #{item.peakServicePrice}, #{item.flatUsedElectricity}, #{item.flatPrice}, #{item.flatUsedElectricity}, #{item.flatElectricityPrice}, #{item.flatServicePrice}, #{item.flatAmount},
#{item.flatElectricityPrice}, #{item.flatServicePrice}, #{item.valleyUsedElectricity}, #{item.valleyPrice}, #{item.valleyUsedElectricity}, #{item.valleyElectricityPrice}, #{item.valleyServicePrice}, #{item.valleyAmount},
#{item.valleyElectricityPrice}, #{item.valleyServicePrice}, #{item.createBy}, #{item.updateBy}) #{item.createBy}, #{item.updateBy})
</foreach> </foreach>
</insert> </insert>
@@ -531,6 +546,9 @@
<if test="totalServiceAmount != null"> <if test="totalServiceAmount != null">
total_service_amount = #{totalServiceAmount}, total_service_amount = #{totalServiceAmount},
</if> </if>
<if test="sharpPrice != null">
sharp_price = #{sharpPrice},
</if>
<if test="sharpUsedElectricity != null"> <if test="sharpUsedElectricity != null">
sharp_used_electricity = #{sharpUsedElectricity}, sharp_used_electricity = #{sharpUsedElectricity},
</if> </if>
@@ -540,6 +558,12 @@
<if test="sharpServicePrice != null"> <if test="sharpServicePrice != null">
sharp_service_price = #{sharpServicePrice}, sharp_service_price = #{sharpServicePrice},
</if> </if>
<if test="sharpAmount != null">
sharp_amount = #{sharpAmount},
</if>
<if test="peakPrice != null">
peak_price = #{peakPrice},
</if>
<if test="peakUsedElectricity != null"> <if test="peakUsedElectricity != null">
peak_used_electricity = #{peakUsedElectricity}, peak_used_electricity = #{peakUsedElectricity},
</if> </if>
@@ -549,6 +573,12 @@
<if test="peakServicePrice != null"> <if test="peakServicePrice != null">
peak_service_price = #{peakServicePrice}, peak_service_price = #{peakServicePrice},
</if> </if>
<if test="peakAmount != null">
peak_amount = #{peakAmount},
</if>
<if test="flatPrice != null">
flat_price = #{flatPrice},
</if>
<if test="flatUsedElectricity != null"> <if test="flatUsedElectricity != null">
flat_used_electricity = #{flatUsedElectricity}, flat_used_electricity = #{flatUsedElectricity},
</if> </if>
@@ -558,6 +588,12 @@
<if test="flatServicePrice != null"> <if test="flatServicePrice != null">
flat_service_price = #{flatServicePrice}, flat_service_price = #{flatServicePrice},
</if> </if>
<if test="flatAmount != null">
flat_amount = #{flatAmount},
</if>
<if test="valleyPrice != null">
valley_price = #{valleyPrice},
</if>
<if test="valleyUsedElectricity != null"> <if test="valleyUsedElectricity != null">
valley_used_electricity = #{valleyUsedElectricity}, valley_used_electricity = #{valleyUsedElectricity},
</if> </if>
@@ -567,6 +603,9 @@
<if test="valleyServicePrice != null"> <if test="valleyServicePrice != null">
valley_service_price = #{valleyServicePrice}, valley_service_price = #{valleyServicePrice},
</if> </if>
<if test="valleyAmount != null">
valley_amount = #{valleyAmount},
</if>
<if test="createBy != null"> <if test="createBy != null">
create_by = #{createBy}, create_by = #{createBy},
</if> </if>