From b5d19e17427472419fca45f4a03a107124d638d9 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Tue, 19 Dec 2023 10:24:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=87=E6=A0=87=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lzbi/common/SelectOptionsControl.java | 4 +- .../domain/DcBaseAssetTarget.java | 40 +++++++++++--- .../targetFolder/DcBaseAssetTargetMapper.xml | 53 +++++++++++++------ 3 files changed, 72 insertions(+), 25 deletions(-) diff --git a/lzbi-module/src/main/java/com/lzbi/common/SelectOptionsControl.java b/lzbi-module/src/main/java/com/lzbi/common/SelectOptionsControl.java index 077f92f..33a6049 100644 --- a/lzbi-module/src/main/java/com/lzbi/common/SelectOptionsControl.java +++ b/lzbi-module/src/main/java/com/lzbi/common/SelectOptionsControl.java @@ -116,7 +116,7 @@ public class SelectOptionsControl extends BaseController { { DcBaseAssetTarget dcBaseAssetTarget=new DcBaseAssetTarget(); dcBaseAssetTarget.setAssetCode(assetQueryParams.getAssetCode()); - dcBaseAssetTarget.setTargetField(assetQueryParams.getFieldCode()); + dcBaseAssetTarget.setFieldCode(assetQueryParams.getFieldCode()); dcBaseAssetTarget.setColumnType("T"); //dcBaseAssetTargetDao.setAssetId(assetQueryParams.getAssetId()); return AjaxResult.success(dcBaseAssetTargetService.selectDcBaseAssetTargetList(dcBaseAssetTarget)); @@ -126,7 +126,7 @@ public class SelectOptionsControl extends BaseController { { DcBaseAssetTarget dcBaseAssetTarget=new DcBaseAssetTarget(); dcBaseAssetTarget.setAssetCode(assetQueryParams.getAssetCode()); - dcBaseAssetTarget.setTargetField(assetQueryParams.getFieldCode()); + dcBaseAssetTarget.setFieldCode(assetQueryParams.getFieldCode()); dcBaseAssetTarget.setColumnType("P"); //dcBaseAssetTargetDao.setAssetId(assetQueryParams.getAssetId()); return AjaxResult.success(dcBaseAssetTargetService.selectDcBaseAssetTargetList(dcBaseAssetTarget)); diff --git a/lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseAssetTarget.java b/lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseAssetTarget.java index 427f0e9..ed42093 100644 --- a/lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseAssetTarget.java +++ b/lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseAssetTarget.java @@ -2,8 +2,9 @@ package com.lzbi.targetFolder.domain; import java.math.BigDecimal; import java.util.Date; -import lombok.experimental.Accessors; import lombok.Data; +import io.swagger.annotations.ApiModelProperty; +import lombok.experimental.Accessors; import com.lzbi.common.annotation.Excel; import com.lzbi.module.base.BaseModuleEntity; @@ -11,7 +12,7 @@ import com.lzbi.module.base.BaseModuleEntity; * 资产指标配置对象 dc_base_asset_target * * @author Lu.JL - * @date 2023-12-14 + * @date 2023-12-19 */ @Data @Accessors(chain = true) @@ -21,70 +22,97 @@ public class DcBaseAssetTarget extends BaseModuleEntity /** 统计单元编码 */ @Excel(name = "统计单元编码") + @ApiModelProperty(name = "统计单元编码",notes = "assetCode") private String assetCode; /** 统计单元ID */ @Excel(name = "统计单元ID") + @ApiModelProperty(name = "统计单元ID",notes = "assetId") private Long assetId; /** 指标模型编码 */ @Excel(name = "指标模型编码") + @ApiModelProperty(name = "指标模型编码",notes = "targetModelCode") private String targetModelCode; /** 指标名称 */ @Excel(name = "指标名称") + @ApiModelProperty(name = "指标名称",notes = "targetName") private String targetName; /** 指标别名 */ @Excel(name = "指标别名") + @ApiModelProperty(name = "指标别名",notes = "targetNameAlias") private String targetNameAlias; /** 指标编码 */ @Excel(name = "指标编码") + @ApiModelProperty(name = "指标编码",notes = "targetCode") private String targetCode; /** 所属专业 */ @Excel(name = "所属专业") - private String targetField; + @ApiModelProperty(name = "所属专业",notes = "fieldCode") + private String fieldCode; /** 上限 */ @Excel(name = "上限") + @ApiModelProperty(name = "上限",notes = "limitUp") private BigDecimal limitUp; /** 下限 */ @Excel(name = "下限") + @ApiModelProperty(name = "下限",notes = "limitDown") private BigDecimal limitDown; /** 值 */ @Excel(name = "值") + @ApiModelProperty(name = "值",notes = "valueBase") private BigDecimal valueBase; /** 是否均值 */ @Excel(name = "是否均值") + @ApiModelProperty(name = "是否均值",notes = "flagAvg") private String flagAvg; /** 是否汇总 */ @Excel(name = "是否汇总") + @ApiModelProperty(name = "是否汇总",notes = "flagSum") private String flagSum; /** 是否积算 */ @Excel(name = "是否积算") + @ApiModelProperty(name = "是否积算",notes = "flagCompute") private String flagCompute; - /** $column.columnComment */ - @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + /** */ + @Excel(name = "") + @ApiModelProperty(name = "",notes = "sort") private String sort; /** 所属专业名称 */ @Excel(name = "所属专业名称") - private String targetFieldName; + @ApiModelProperty(name = "所属专业名称",notes = "fieldName") + private String fieldName; /** T指标P参数 */ @Excel(name = "T指标P参数") + @ApiModelProperty(name = "T指标P参数",notes = "columnType") private String columnType; /** 单位 */ @Excel(name = "单位") + @ApiModelProperty(name = "单位",notes = "fieldUnit") private String fieldUnit; + /** 部门id */ + @Excel(name = "部门id") + @ApiModelProperty(name = "部门id",notes = "deptId") + private Long deptId; + + /** 用户id */ + @Excel(name = "用户id") + @ApiModelProperty(name = "用户id",notes = "userId") + private Long userId; + } diff --git a/lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xml b/lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xml index cfc5b45..3a80772 100644 --- a/lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xml +++ b/lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xml @@ -1,7 +1,7 @@ + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> @@ -12,7 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + @@ -28,29 +28,42 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + + + - select id, asset_code, asset_id, target_model_code, target_name, target_name_alias, target_code, target_field, limit_up, limit_down, value_base, flag_avg, flag_sum, flag_compute, tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, sort, target_field_name, column_type, field_unit from dc_base_asset_target + select id, asset_code, asset_id, target_model_code, target_name, target_name_alias, target_code, field_code, limit_up, limit_down, value_base, flag_avg, flag_sum, flag_compute, tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time, sort, field_name, column_type, field_unit, dept_id, user_id from dc_base_asset_target -