From a15a8cfd7b01ce4bba6fe9fd876f6704ca23a12d Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期二, 07 一月 2025 16:40:32 +0800 Subject: [PATCH] 1、取水口用水日统计表中增加金额、次数字段; 2、优化或重写“累计流量超过指定值的取水口”、“累计流量低于指定值的取水口”、“指定时间段内用水量超过指定值的取水口”、“指定时间段内消费金额超过指定值的取水口”几个统计查询; 3、改“指定时间段内用水时长超过指定值的取水口”为“指定时间段内用水次数超过指定值的取水口” --- pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoRm/RmTimingReportLast.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoRm/RmTimingReportLast.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoRm/RmTimingReportLast.java index de43043..98c0d3a 100644 --- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoRm/RmTimingReportLast.java +++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/pojoRm/RmTimingReportLast.java @@ -9,6 +9,7 @@ import com.dy.common.mw.protocol.p206V202404.upVos.DataCd83Vo; import com.dy.common.po.BaseEntity; import com.dy.common.util.DateTime; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; @@ -61,56 +62,67 @@ /** * 鏁版嵁鎺ユ敹鏃ユ湡鏃堕棿 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") public Date dt; /** * 鎺у埗鍣ㄦ椂閽� */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") public Date rtuDt; /** * 鏁版嵁鏃堕棿 */ + @JsonFormat(pattern = "yyyy-MM-dd") public Date dataDt; /** * 鏈勾绱娴侀噺 */ + @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) public Double waterTotalAmountYear; /** * 姘磋〃绱娴侀噺 */ + @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) public Double waterTotalAmountMeter; /** * 鏈勾绱鐢甸噺 */ + @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) public Double eleTotalAmountYear; /** * 鐢佃〃绱鐢甸噺 */ + @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) public Double eleTotalAmountMeter; /** * 褰撴棩姘磋〃鍑�娴侀噺 */ + @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) public Double waterTotalAmountDay; /** * 褰撴棩鐢ㄦ埛鐢ㄦ按閲� */ + @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) public Double waterUserTotalAmountDay; /** * 婕忔崯姘撮噺 */ + @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) public Double lossTotalAmountDay; /** * 鍚庡鐢垫睜鐢靛帇 */ + @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) public Double batteryVolt; public void valueFrom(DataV202404 dataV202404, DataCd83Vo cdData) throws Exception{ @@ -126,4 +138,5 @@ this.lossTotalAmountDay = cdData.lossTotalAmountDay ;// 婕忔崯姘撮噺 this.batteryVolt = cdData.batteryVolt ;// 鍚庡鐢垫睜鐢靛帇 } + } \ No newline at end of file -- Gitblit v1.8.0