From 478033bf1d454a8ee99b88e46014ac8ea1e4c9b0 Mon Sep 17 00:00:00 2001 From: zhousq Date: Fri, 22 Dec 2023 16:06:47 +0800 Subject: [PATCH] =?UTF-8?q?2023-12-22=20=E6=97=A5=E5=BA=95=E7=A8=BF?= =?UTF-8?q?=E8=A1=A8=E7=94=9F=E6=88=90=E5=A2=9E=E5=8A=A0=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lzbi/draft/domain/DcBusiParamDraftDay.java | 3 ++- .../com/lzbi/draft/service/DcBusiParamDraftDayService.java | 1 + .../resources/mapper/asset/DcBusiParamDraftDayMapper.xml | 7 ++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiParamDraftDay.java b/lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiParamDraftDay.java index ab2585e..0035333 100644 --- a/lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiParamDraftDay.java +++ b/lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiParamDraftDay.java @@ -188,7 +188,8 @@ public class DcBusiParamDraftDay extends BaseModuleEntity /** 统计单元名称 */ @Excel(name = "统计单元名称") private String assetName; - + /**最后值 */ + private Double valLast; public void setValForSeq(int key,Double value){ switch (key){ case 0: diff --git a/lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiParamDraftDayService.java b/lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiParamDraftDayService.java index 2628019..e84594c 100644 --- a/lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiParamDraftDayService.java +++ b/lzbi-module/src/main/java/com/lzbi/draft/service/DcBusiParamDraftDayService.java @@ -158,6 +158,7 @@ public class DcBusiParamDraftDayService extends ServiceImpl0){ min=value; } + target.setValLast(value); } } target.setValTotal(totalCount); diff --git a/lzbi-module/src/main/resources/mapper/asset/DcBusiParamDraftDayMapper.xml b/lzbi-module/src/main/resources/mapper/asset/DcBusiParamDraftDayMapper.xml index b417d65..3ca9201 100644 --- a/lzbi-module/src/main/resources/mapper/asset/DcBusiParamDraftDayMapper.xml +++ b/lzbi-module/src/main/resources/mapper/asset/DcBusiParamDraftDayMapper.xml @@ -58,11 +58,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, id, company_id, organize_name, organize_id, company_name, asset_code, param_code, param_name, param_field_code,param_field_name, target_uint, count_date, val_avg, val_max, val_sum, val_min, val_integrating, val_limit_up, val_limit_down, val01, val02, val03, val04, val05, val06, val07, val08, val09, val10, val11, val12, val13, val14, val15, val16, val17, val18, val19, val20, val21, val22, val23, val24, asset_name,val_total from dc_busi_param_draft_day + select tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, id, company_id, organize_name, organize_id, company_name, asset_code, param_code, param_name, param_field_code,param_field_name, target_uint, count_date, val_avg, val_max, val_sum, val_min, val_integrating, val_limit_up, val_limit_down, val01, val02, val03, val04, val05, val06, val07, val08, val09, val10, val11, val12, val13, val14, val15, val16, val17, val18, val19, val20, val21, val22, val23, val24, asset_name,val_total,val_last from dc_busi_param_draft_day