diff --git a/lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseAssetTargetDao.java b/lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseAssetTargetDao.java index c87ca87..d094645 100644 --- a/lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseAssetTargetDao.java +++ b/lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseAssetTargetDao.java @@ -68,16 +68,10 @@ public class DcBaseAssetTargetDao extends BaseModuleEntity @Excel(name = "排序") private String sort; - /** 创建人 */ - private String createdBy; + /** 统计单元编码 */ + @Excel(name = "统计单元编码") + private String assetCode; - /** 创建时间 */ - private Date createdTime; - /** 更新人 */ - private String updatedBy; - - /** 更新时间 */ - private Date updatedTime; } diff --git a/lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xml b/lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xml new file mode 100644 index 0000000..59d4f33 --- /dev/null +++ b/lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, asset_id, target_model_code, target_name, target_code, target_field, limit_up, limit_down, value_base, flag_avg, flag_sum, flag_compute, sort, tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time from dc_base_asset_target + + + + + + + + insert into dc_base_asset_target + + asset_id, + target_model_code, + target_name, + target_code, + target_field, + limit_up, + limit_down, + value_base, + flag_avg, + flag_sum, + flag_compute, + sort, + tenant_id, + revision, + created_by, + created_time, + updated_by, + updated_time, + delete_by, + delete_time, + + + #{assetId}, + #{targetModelCode}, + #{targetName}, + #{targetCode}, + #{targetField}, + #{limitUp}, + #{limitDown}, + #{valueBase}, + #{flagAvg}, + #{flagSum}, + #{flagCompute}, + #{sort}, + #{tenantId}, + #{revision}, + #{createdBy}, + #{createdTime}, + #{updatedBy}, + #{updatedTime}, + #{deleteBy}, + #{deleteTime}, + + + + + update dc_base_asset_target + + asset_id = #{assetId}, + target_model_code = #{targetModelCode}, + target_name = #{targetName}, + target_code = #{targetCode}, + target_field = #{targetField}, + limit_up = #{limitUp}, + limit_down = #{limitDown}, + value_base = #{valueBase}, + flag_avg = #{flagAvg}, + flag_sum = #{flagSum}, + flag_compute = #{flagCompute}, + sort = #{sort}, + tenant_id = #{tenantId}, + revision = #{revision}, + created_by = #{createdBy}, + created_time = #{createdTime}, + updated_by = #{updatedBy}, + updated_time = #{updatedTime}, + delete_by = #{deleteBy}, + delete_time = #{deleteTime}, + + where id = #{id} + + + + delete from dc_base_asset_target where id = #{id} + + + + delete from dc_base_asset_target where id in + + #{id} + + + \ No newline at end of file diff --git a/lzbi-module/src/main/resources/mapper/targetFolder/DcBaseTargetModelMapper.xml b/lzbi-module/src/main/resources/mapper/targetFolder/DcBaseTargetModelMapper.xml new file mode 100644 index 0000000..ec3eef2 --- /dev/null +++ b/lzbi-module/src/main/resources/mapper/targetFolder/DcBaseTargetModelMapper.xml @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + select id, target_model_code, target_model_name, target_model_type, target_model_field, target_model_level, tenant_id, revision, created_by, created_time, updated_by, updated_time, delete_by, delete_time from dc_base_target_model + + + + + + + + insert into dc_base_target_model + + target_model_code, + target_model_name, + target_model_type, + target_model_field, + target_model_level, + tenant_id, + revision, + created_by, + created_time, + updated_by, + updated_time, + delete_by, + delete_time, + + + #{targetModelCode}, + #{targetModelName}, + #{targetModelType}, + #{targetModelField}, + #{targetModelLevel}, + #{tenantId}, + #{revision}, + #{createdBy}, + #{createdTime}, + #{updatedBy}, + #{updatedTime}, + #{deleteBy}, + #{deleteTime}, + + + + + update dc_base_target_model + + target_model_code = #{targetModelCode}, + target_model_name = #{targetModelName}, + target_model_type = #{targetModelType}, + target_model_field = #{targetModelField}, + target_model_level = #{targetModelLevel}, + tenant_id = #{tenantId}, + revision = #{revision}, + created_by = #{createdBy}, + created_time = #{createdTime}, + updated_by = #{updatedBy}, + updated_time = #{updatedTime}, + delete_by = #{deleteBy}, + delete_time = #{deleteTime}, + + where id = #{id} + + + + delete from dc_base_target_model where id = #{id} + + + + delete from dc_base_target_model where id in + + #{id} + + + \ No newline at end of file