Browse Source

vxe-table界面改造部分功能 完成并提交

develop
ljlong_2630 12 months ago
parent
commit
814f68e47c
  1. 93
      lzbi-module/src/main/java/com/lzbi/asset/controller/DcBaseParamModelController.java
  2. 2
      lzbi-module/src/main/java/com/lzbi/asset/domain/DcBaseParamModel.java
  3. 2
      lzbi-module/src/main/java/com/lzbi/asset/domain/DcBusiParamSource.java
  4. 2
      lzbi-module/src/main/java/com/lzbi/asset/domain/DcBusiWorkReadConfig.java
  5. 2
      lzbi-module/src/main/java/com/lzbi/code/domain/DcBaseCoderuleDefine.java
  6. 2
      lzbi-module/src/main/java/com/lzbi/code/domain/DcBaseCoderuleDefineDao.java
  7. 2
      lzbi-module/src/main/java/com/lzbi/code/domain/DcBaseCoderuleSerialDao.java
  8. 2
      lzbi-module/src/main/java/com/lzbi/code/domain/DcBusiCoderuleConfig.java
  9. 2
      lzbi-module/src/main/java/com/lzbi/code/domain/DcBusiCoderuleConfigDao.java
  10. 2
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiParamBillSub.java
  11. 4
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiParamDraftDay.java
  12. 2
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetAdjustDayMasterDao.java
  13. 2
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetAdjustDaySubDao.java
  14. 2
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetDraftDay.java
  15. 2
      lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetDraftMonth.java
  16. 192
      lzbi-module/src/main/java/com/lzbi/module/base/BaseModuleEntity.java
  17. 120
      lzbi-module/src/main/java/com/lzbi/special/domain/DcBaseWorkSpecial.java
  18. 1
      lzbi-module/src/main/java/com/lzbi/targetFolder/controller/DcBaseAssetTargetController.java
  19. 125
      lzbi-module/src/main/java/com/lzbi/targetFolder/controller/DcBaseTargetModelController.java
  20. 2
      lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseAssetTargetDao.java
  21. 15
      lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseTargetModel.java
  22. 26
      lzbi-module/src/main/java/com/lzbi/targetFolder/mapper/DcBaseTargetModelMapper.java
  23. 46
      lzbi-module/src/main/java/com/lzbi/targetFolder/service/DcBaseTargetModelService.java
  24. 20
      lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xml
  25. 28
      lzbi-module/src/main/resources/mapper/targetFolder/DcBaseTargetModelMapper.xml

93
lzbi-module/src/main/java/com/lzbi/asset/controller/DcBaseParamModelController.java

@ -1,5 +1,8 @@
package com.lzbi.asset.controller; package com.lzbi.asset.controller;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lzbi.common.annotation.Log; import com.lzbi.common.annotation.Log;
import com.lzbi.common.core.controller.BaseController; import com.lzbi.common.core.controller.BaseController;
@ -12,7 +15,11 @@ import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid; import javax.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -36,6 +43,7 @@ public class DcBaseParamModelController extends BaseController
* 分页列表查询 * 分页列表查询
* @return 分页数据 * @return 分页数据
*/ */
@PreAuthorize("@ss.hasPermi('asset:paramModel:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(DcBaseParamModel dcBaseParamModel) public TableDataInfo list(DcBaseParamModel dcBaseParamModel)
{ startPage(); { startPage();
@ -47,6 +55,7 @@ public class DcBaseParamModelController extends BaseController
*@param id *@param id
@return DcBaseParamModel 没有反馈空 @return DcBaseParamModel 没有反馈空
*/ */
@PreAuthorize("@ss.hasPermi('asset:paramModel:query')")
@ApiOperation("根据ID获取参数模版表详细信息") @ApiOperation("根据ID获取参数模版表详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) { public AjaxResult getInfo(@PathVariable("id") Long id) {
@ -57,6 +66,7 @@ public class DcBaseParamModelController extends BaseController
*@param *@param
*@return DcBaseParamModel *@return DcBaseParamModel
*/ */
@PreAuthorize("@ss.hasPermi('asset:paramModel:add')")
@ApiOperation("新增参数模版表一条数据") @ApiOperation("新增参数模版表一条数据")
@Log(title = "", businessType = BusinessType.INSERT) @Log(title = "", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
@ -74,6 +84,7 @@ public class DcBaseParamModelController extends BaseController
*@param *@param
*@return DcBaseParamModel *@return DcBaseParamModel
*/ */
@PreAuthorize("@ss.hasPermi('asset:paramModel:edit')")
@ApiOperation("参数模版表修改") @ApiOperation("参数模版表修改")
@Log(title = "", businessType = BusinessType.UPDATE) @Log(title = "", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
@ -83,27 +94,16 @@ public class DcBaseParamModelController extends BaseController
dcBaseParamModel.setUpdatedTime(DateUtils.getNowDate()); dcBaseParamModel.setUpdatedTime(DateUtils.getNowDate());
return toAjax(dcBaseParamModelService.updateById(dcBaseParamModel)); return toAjax(dcBaseParamModelService.updateById(dcBaseParamModel));
} }
/**
* 通过ID删除参数模版表
* @param id
* @return 成功1 失败0
*/
@ApiOperation("根据ID删除参数模版表")
@Log(title = "单一参数模版表", businessType = BusinessType.DELETE)
@DeleteMapping("/id/{id}")
public AjaxResult batchRemove(@PathVariable Long id) {
DcBaseParamModel dcBaseParamModel=new DcBaseParamModel();
dcBaseParamModel.setId(id);
return toAjax(dcBaseParamModelService.removeById( dcBaseParamModel));
}
/** /**
* 批量删除参数模版表 * 批量删除参数模版表
* @param ids 数组 * @param ids 数组
* @return 删除的条数 * @return 删除的条数
*/ */
@PreAuthorize("@ss.hasPermi('asset:paramModel:remove')")
@ApiOperation("批量删除参数模版表") @ApiOperation("批量删除参数模版表")
@Log(title = "批量删除参数模版表", businessType = BusinessType.DELETE) @Log(title = "批量删除参数模版表", businessType = BusinessType.DELETE)
@DeleteMapping("/ids/{ids}") @DeleteMapping("/{ids}")
public AjaxResult batchRemove(@PathVariable Long[] ids) { public AjaxResult batchRemove(@PathVariable Long[] ids) {
List<Long> collect = Arrays.stream(ids).collect(Collectors.toList()); List<Long> collect = Arrays.stream(ids).collect(Collectors.toList());
return toAjax(dcBaseParamModelService.removeBatchByIds(collect)); return toAjax(dcBaseParamModelService.removeBatchByIds(collect));
@ -121,6 +121,7 @@ public class DcBaseParamModelController extends BaseController
/** /**
* "参数模版表数据导出功能 * "参数模版表数据导出功能
*/ */
@PreAuthorize("@ss.hasPermi('asset:paramModel:export')")
@ApiOperation("导出参数模版表数据") @ApiOperation("导出参数模版表数据")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, DcBaseParamModel dcBaseParamModel) { public void export(HttpServletResponse response, DcBaseParamModel dcBaseParamModel) {
@ -129,4 +130,68 @@ public class DcBaseParamModelController extends BaseController
ExcelUtil<DcBaseParamModel> util = new ExcelUtil<>(DcBaseParamModel.class); ExcelUtil<DcBaseParamModel> util = new ExcelUtil<>(DcBaseParamModel.class);
util.exportExcel(response, list, "导出的参数模版表数据"); util.exportExcel(response, list, "导出的参数模版表数据");
} }
/**
* 新增参数模版
*/
@PreAuthorize("@ss.hasPermi('asset:paramModel:add')")
@Log(title = "参数模版", businessType = BusinessType.INSERT)
@PostMapping("/addBatch")
public AjaxResult addBatch(@RequestBody JSONArray jsonArray)
{
if (jsonArray == null) {
throw new IllegalArgumentException("未能接收任何参数!");
}
List<DcBaseParamModel> dcBaseParamModelList = new ArrayList<>();
try {
for (int i = 0; i < jsonArray.size(); i++) {
JSONObject beanObject = jsonArray.getJSONObject(i);
// 移除ID属性
beanObject.remove("id");
DcBaseParamModel dcBaseParamModel = JSON.toJavaObject(beanObject, DcBaseParamModel.class);
dcBaseParamModel.setCreatedTime(DateUtils.getNowDate());
dcBaseParamModel.setDeptId(getDeptId());
dcBaseParamModel.setUserId(getUserId());
dcBaseParamModel.setCreatedBy(String.valueOf(getUserId()));
dcBaseParamModel.setCreatedTime(DateUtils.getNowDate());
dcBaseParamModelList.add(dcBaseParamModel);
}
} catch (Exception e) {
throw new IllegalArgumentException("解析list对象异常!");
}
return toAjax(dcBaseParamModelService.saveBatch(dcBaseParamModelList));
}
/**
* 修改指标模版配置
*/
@PreAuthorize("@ss.hasPermi('asset:paramModel:edit')")
@Log(title = "指标模版配置", businessType = BusinessType.UPDATE)
@PutMapping("/editBatch")
public AjaxResult editBatch(@RequestBody JSONArray jsonArray)
{
if (jsonArray == null) {
throw new IllegalArgumentException("未能接收任何参数!");
}
List<DcBaseParamModel> dcBaseParamModelList = new ArrayList<>();
try {
for (int i = 0; i < jsonArray.size(); i++) {
JSONObject beanObject = jsonArray.getJSONObject(i);
DcBaseParamModel dcBaseParamModel = JSON.toJavaObject(beanObject, DcBaseParamModel.class);
dcBaseParamModel.setUpdatedBy(String.valueOf(getUserId()));
dcBaseParamModel.setUpdatedTime(DateUtils.getNowDate());
dcBaseParamModelList.add(dcBaseParamModel);
}
} catch (Exception e) {
throw new IllegalArgumentException("解析list对象异常!");
}
return toAjax(dcBaseParamModelService.updateBatchById(dcBaseParamModelList));
}
} }

2
lzbi-module/src/main/java/com/lzbi/asset/domain/DcBaseParamModel.java

@ -24,7 +24,7 @@ public class DcBaseParamModel extends BaseModuleEntity{
/** 主键 */ /** 主键 */
@ApiModelProperty(name = "主键",notes = "") @ApiModelProperty(name = "主键",notes = "")
private long id ; private Long id ;
/** 参数模型编码 */ /** 参数模型编码 */
@ApiModelProperty(name = "参数模型编码",notes = "") @ApiModelProperty(name = "参数模型编码",notes = "")
private String paramModelCode ; private String paramModelCode ;

2
lzbi-module/src/main/java/com/lzbi/asset/domain/DcBusiParamSource.java

@ -49,7 +49,7 @@ public class DcBusiParamSource extends BaseModuleEntity{
/** 主键 */ /** 主键 */
@ApiModelProperty(name = "主键",notes = "") @ApiModelProperty(name = "主键",notes = "")
@TableId(type= IdType.AUTO) @TableId(type= IdType.AUTO)
private Integer id ; private Long id ;
/** 所属专业 */ /** 所属专业 */
@ApiModelProperty(name = "所属专业",notes = "") @ApiModelProperty(name = "所属专业",notes = "")
private String fieldCode ; private String fieldCode ;

2
lzbi-module/src/main/java/com/lzbi/asset/domain/DcBusiWorkReadConfig.java

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data; import lombok.Data;
import com.lzbi.common.annotation.Excel; import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity; import com.lzbi.module.base.BaseModuleEntity;
import lombok.experimental.Accessors;
/** /**
* 互联参数读取数据对照对象 dc_busi_work_read_config * 互联参数读取数据对照对象 dc_busi_work_read_config
@ -13,6 +14,7 @@ import com.lzbi.module.base.BaseModuleEntity;
* @date 2023-12-04 * @date 2023-12-04
*/ */
@Data @Data
@Accessors(chain = true)
public class DcBusiWorkReadConfig extends BaseModuleEntity public class DcBusiWorkReadConfig extends BaseModuleEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

2
lzbi-module/src/main/java/com/lzbi/code/domain/DcBaseCoderuleDefine.java

@ -2,6 +2,7 @@ package com.lzbi.code.domain;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import lombok.Data; import lombok.Data;
@ -15,6 +16,7 @@ import com.lzbi.module.base.BaseModuleEntity;
* @date 2023-12-06 * @date 2023-12-06
*/ */
@Data @Data
@Accessors(chain = true)
public class DcBaseCoderuleDefine extends BaseModuleEntity public class DcBaseCoderuleDefine extends BaseModuleEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

2
lzbi-module/src/main/java/com/lzbi/code/domain/DcBaseCoderuleDefineDao.java

@ -2,6 +2,7 @@ package com.lzbi.code.domain;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import lombok.Data; import lombok.Data;
@ -15,6 +16,7 @@ import com.lzbi.module.base.BaseModuleEntity;
* @date 2023-11-29 * @date 2023-11-29
*/ */
@Data @Data
@Accessors(chain = true)
public class DcBaseCoderuleDefineDao extends BaseModuleEntity public class DcBaseCoderuleDefineDao extends BaseModuleEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

2
lzbi-module/src/main/java/com/lzbi/code/domain/DcBaseCoderuleSerialDao.java

@ -27,7 +27,7 @@ public class DcBaseCoderuleSerialDao extends BaseModuleEntity{
/** 主键 */ /** 主键 */
@ApiModelProperty(name = "主键",notes = "") @ApiModelProperty(name = "主键",notes = "")
@TableId @TableId
private Integer id ; private Long id ;
/** 规则定义的ID */ /** 规则定义的ID */
@ApiModelProperty(name = "规则定义的ID",notes = "") @ApiModelProperty(name = "规则定义的ID",notes = "")
private Long codeRuleId ; private Long codeRuleId ;

2
lzbi-module/src/main/java/com/lzbi/code/domain/DcBusiCoderuleConfig.java

@ -2,6 +2,7 @@ package com.lzbi.code.domain;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import lombok.Data; import lombok.Data;
@ -15,6 +16,7 @@ import com.lzbi.module.base.BaseModuleEntity;
* @date 2023-12-06 * @date 2023-12-06
*/ */
@Data @Data
@Accessors(chain = true)
public class DcBusiCoderuleConfig extends BaseModuleEntity public class DcBusiCoderuleConfig extends BaseModuleEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

2
lzbi-module/src/main/java/com/lzbi/code/domain/DcBusiCoderuleConfigDao.java

@ -27,7 +27,7 @@ public class DcBusiCoderuleConfigDao extends BaseModuleEntity{
/** 主键 */ /** 主键 */
@ApiModelProperty(name = "主键",notes = "") @ApiModelProperty(name = "主键",notes = "")
@TableId @TableId
private Integer id ; private Long id ;
/** 规则名称 */ /** 规则名称 */
@ApiModelProperty(name = "规则名称",notes = "") @ApiModelProperty(name = "规则名称",notes = "")
private String configName ; private String configName ;

2
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiParamBillSub.java

@ -30,7 +30,7 @@ public class DcBusiParamBillSub extends BaseModuleEntity{
/** 主键 */ /** 主键 */
@ApiModelProperty(name = "主键",notes = "") @ApiModelProperty(name = "主键",notes = "")
@TableId(type = IdType.AUTO) @TableId(type = IdType.AUTO)
private Integer id ; private Long id ;
/** 单据编码 */ /** 单据编码 */
@ApiModelProperty(name = "单据编码",notes = "") @ApiModelProperty(name = "单据编码",notes = "")
private String billNo ; private String billNo ;

4
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiParamDraftDay.java

@ -5,6 +5,7 @@ import java.util.Date;
import lombok.Data; import lombok.Data;
import com.lzbi.common.annotation.Excel; import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity; import com.lzbi.module.base.BaseModuleEntity;
import lombok.experimental.Accessors;
/** /**
* 参数数据底稿对象 dc_busi_param_draft_day * 参数数据底稿对象 dc_busi_param_draft_day
@ -13,6 +14,7 @@ import com.lzbi.module.base.BaseModuleEntity;
* @date 2023-12-06 * @date 2023-12-06
*/ */
@Data @Data
@Accessors(chain = true)
public class DcBusiParamDraftDay extends BaseModuleEntity public class DcBusiParamDraftDay extends BaseModuleEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -31,7 +33,7 @@ public class DcBusiParamDraftDay extends BaseModuleEntity
/** 主键 */ /** 主键 */
@Excel(name = "主键") @Excel(name = "主键")
private String id; private Long id;
/** 公司编码 */ /** 公司编码 */
private Integer companyId; private Integer companyId;

2
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetAdjustDayMasterDao.java

@ -6,6 +6,7 @@ import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import lombok.Data; import lombok.Data;
@ -21,6 +22,7 @@ import springfox.documentation.annotations.ApiIgnore;
*/ */
@ApiModel(value = "DcBusiTargetAdjustDayMasterDao对象", description = "资产指标调整单主表对象") @ApiModel(value = "DcBusiTargetAdjustDayMasterDao对象", description = "资产指标调整单主表对象")
@Data @Data
@Accessors(chain = true)
public class DcBusiTargetAdjustDayMasterDao<T> extends BaseModuleEntity { public class DcBusiTargetAdjustDayMasterDao<T> extends BaseModuleEntity {
/** /**
* 待审核状态 * 待审核状态

2
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetAdjustDaySubDao.java

@ -6,6 +6,7 @@ import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import lombok.Data; import lombok.Data;
@ -20,6 +21,7 @@ import com.lzbi.module.base.BaseModuleEntity;
*/ */
@ApiModel(value = "DcBusiTargetAdjustDaySubDao对象", description = "资产指标调整单子表对象") @ApiModel(value = "DcBusiTargetAdjustDaySubDao对象", description = "资产指标调整单子表对象")
@Data @Data
@Accessors(chain = true)
public class DcBusiTargetAdjustDaySubDao extends BaseModuleEntity { public class DcBusiTargetAdjustDaySubDao extends BaseModuleEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

2
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetDraftDay.java

@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import com.lzbi.common.annotation.Excel; import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity; import com.lzbi.module.base.BaseModuleEntity;
import lombok.experimental.Accessors;
/** /**
* 指标数据底稿()对象 dc_busi_target_draft_day * 指标数据底稿()对象 dc_busi_target_draft_day
@ -14,6 +15,7 @@ import com.lzbi.module.base.BaseModuleEntity;
* @date 2023-11-28 * @date 2023-11-28
*/ */
@Data @Data
@Accessors(chain = true)
public class DcBusiTargetDraftDay extends BaseModuleEntity public class DcBusiTargetDraftDay extends BaseModuleEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

2
lzbi-module/src/main/java/com/lzbi/draft/domain/DcBusiTargetDraftMonth.java

@ -6,6 +6,7 @@ import java.util.Date;
import lombok.Data; import lombok.Data;
import com.lzbi.common.annotation.Excel; import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity; import com.lzbi.module.base.BaseModuleEntity;
import lombok.experimental.Accessors;
/** /**
* 指标数据底稿()对象 dc_busi_target_draft_month * 指标数据底稿()对象 dc_busi_target_draft_month
@ -14,6 +15,7 @@ import com.lzbi.module.base.BaseModuleEntity;
* @date 2023-12-06 * @date 2023-12-06
*/ */
@Data @Data
@Accessors(chain = true)
public class DcBusiTargetDraftMonth extends BaseModuleEntity public class DcBusiTargetDraftMonth extends BaseModuleEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

192
lzbi-module/src/main/java/com/lzbi/module/base/BaseModuleEntity.java

@ -1,6 +1,10 @@
package com.lzbi.module.base; package com.lzbi.module.base;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
@ -11,134 +15,70 @@ import java.util.Date;
* @date 2023/11/16 * @date 2023/11/16
* BaseModuleEntity * BaseModuleEntity
*/ */
public class BaseModuleEntity implements Serializable,Cloneable{ @Data
/** 租户号 */ @Accessors(chain = true)
@ApiModelProperty(name = "租户号",notes = "") public class BaseModuleEntity implements Serializable, Cloneable {
private String tenantId ;
/** 乐观锁 */ /**
@ApiModelProperty(name = "乐观锁",notes = "") * 主键
private Integer revision ; */
/** 创建人 */ @ApiModelProperty(name = "主键", notes = "")
@ApiModelProperty(name = "创建人",notes = "") @TableId(value = "id", type = IdType.AUTO)
private String createdBy ; private Long id;
/** 创建时间 */ /**
@ApiModelProperty(name = "创建时间",notes = "") * 租户号
private Date createdTime ; */
/** 更新人 */ @ApiModelProperty(name = "租户号", notes = "")
@ApiModelProperty(name = "更新人",notes = "") private String tenantId;
private String updatedBy ; /**
/** 更新时间 */ * 乐观锁
@ApiModelProperty(name = "更新时间",notes = "") */
private Date updatedTime ; @ApiModelProperty(name = "乐观锁", notes = "")
/** 删除人 */ private Integer revision;
@ApiModelProperty(name = "删除人",notes = "") /**
private String deleteBy ; * 创建人
/** 删除时间 */ */
@ApiModelProperty(name = "删除时间",notes = "") @ApiModelProperty(name = "创建人", notes = "")
private Date deleteTime ; private String createdBy;
/**
* 创建时间
*/
@ApiModelProperty(name = "创建时间", notes = "")
private Date createdTime;
/**
* 更新人
*/
@ApiModelProperty(name = "更新人", notes = "")
private String updatedBy;
/**
* 更新时间
*/
@ApiModelProperty(name = "更新时间", notes = "")
private Date updatedTime;
/**
* 删除人
*/
@ApiModelProperty(name = "删除人", notes = "")
private String deleteBy;
/**
* 删除时间
*/
@ApiModelProperty(name = "删除时间", notes = "")
private Date deleteTime;
@ApiModelProperty("分页") @ApiModelProperty("分页")
private Integer pageNum ; private Integer pageNum;
@ApiModelProperty("分页大小") @ApiModelProperty("分页大小")
private Integer pageSize ; private Integer pageSize;
/** 部门id */ /**
@ApiModelProperty(name = "部门id",notes = "") * 部门id
private Long deptId ; */
/** 用户id */ @ApiModelProperty(name = "部门id", notes = "")
@ApiModelProperty(name = "用户id",notes = "") private Long deptId;
private Long userId ; /**
public String getTenantId() { * 用户id
return tenantId; */
} @ApiModelProperty(name = "用户id", notes = "")
private Long userId;
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public Integer getRevision() {
return revision;
}
public void setRevision(Integer revision) {
this.revision = revision;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public Date getCreatedTime() {
return createdTime;
}
public void setCreatedTime(Date createdTime) {
this.createdTime = createdTime;
}
public String getUpdatedBy() {
return updatedBy;
}
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
public Date getUpdatedTime() {
return updatedTime;
}
public void setUpdatedTime(Date updatedTime) {
this.updatedTime = updatedTime;
}
public String getDeleteBy() {
return deleteBy;
}
public void setDeleteBy(String deleteBy) {
this.deleteBy = deleteBy;
}
public Date getDeleteTime() {
return deleteTime;
}
public void setDeleteTime(Date deleteTime) {
this.deleteTime = deleteTime;
}
public Integer getPageNum() {
return pageNum;
}
public void setPageNum(Integer pageNum) {
this.pageNum = pageNum;
}
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public Long getDeptId() {
return deptId;
}
public void setDeptId(Long deptId) {
this.deptId = deptId;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
} }

120
lzbi-module/src/main/java/com/lzbi/special/domain/DcBaseWorkSpecial.java

@ -4,6 +4,8 @@ import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.lzbi.common.annotation.Excel; import com.lzbi.common.annotation.Excel;
@ -15,6 +17,8 @@ import com.lzbi.module.base.BaseModuleEntity;
* @author win * @author win
* @date 2023-11-28 * @date 2023-11-28
*/ */
@Data
@Accessors(chain = true)
public class DcBaseWorkSpecial extends BaseModuleEntity public class DcBaseWorkSpecial extends BaseModuleEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ -55,120 +59,4 @@ public class DcBaseWorkSpecial extends BaseModuleEntity
@Excel(name = "专业名称") @Excel(name = "专业名称")
private String specialName; private String specialName;
public void setTenantId(String tenantId)
{
this.tenantId = tenantId;
}
public String getTenantId()
{
return tenantId;
}
public void setREVISION(Long REVISION)
{
this.REVISION = REVISION;
}
public Long getREVISION()
{
return REVISION;
}
public void setCreatedBy(String createdBy)
{
this.createdBy = createdBy;
}
public String getCreatedBy()
{
return createdBy;
}
public void setCreatedTime(Date createdTime)
{
this.createdTime = createdTime;
}
public Date getCreatedTime()
{
return createdTime;
}
public void setUpdatedBy(String updatedBy)
{
this.updatedBy = updatedBy;
}
public String getUpdatedBy()
{
return updatedBy;
}
public void setUpdatedTime(Date updatedTime)
{
this.updatedTime = updatedTime;
}
public Date getUpdatedTime()
{
return updatedTime;
}
public void setDeleteBy(String deleteBy)
{
this.deleteBy = deleteBy;
}
public String getDeleteBy()
{
return deleteBy;
}
public void setDeleteTime(Date deleteTime)
{
this.deleteTime = deleteTime;
}
public Date getDeleteTime()
{
return deleteTime;
}
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setSpecialCode(String specialCode)
{
this.specialCode = specialCode;
}
public String getSpecialCode()
{
return specialCode;
}
public void setSpecialName(String specialName)
{
this.specialName = specialName;
}
public String getSpecialName()
{
return specialName;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("tenantId", getTenantId())
.append("REVISION", getREVISION())
.append("createdBy", getCreatedBy())
.append("createdTime", getCreatedTime())
.append("updatedBy", getUpdatedBy())
.append("updatedTime", getUpdatedTime())
.append("deleteBy", getDeleteBy())
.append("deleteTime", getDeleteTime())
.append("id", getId())
.append("specialCode", getSpecialCode())
.append("specialName", getSpecialName())
.toString();
}
} }

1
lzbi-module/src/main/java/com/lzbi/targetFolder/controller/DcBaseAssetTargetController.java

@ -2,6 +2,7 @@ package com.lzbi.targetFolder.controller;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;

125
lzbi-module/src/main/java/com/lzbi/targetFolder/controller/DcBaseTargetModelController.java

@ -1,7 +1,18 @@
package com.lzbi.targetFolder.controller; package com.lzbi.targetFolder.controller;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.lzbi.common.utils.DateUtils;
import com.lzbi.targetFolder.domain.DcBaseTargetModel;
import com.lzbi.targetFolder.service.DcBaseTargetModelService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -16,16 +27,15 @@ import com.lzbi.common.annotation.Log;
import com.lzbi.common.core.controller.BaseController; import com.lzbi.common.core.controller.BaseController;
import com.lzbi.common.core.domain.AjaxResult; import com.lzbi.common.core.domain.AjaxResult;
import com.lzbi.common.enums.BusinessType; import com.lzbi.common.enums.BusinessType;
import com.lzbi.targetFolder.domain.DcBaseTargetModelDao;
import com.lzbi.targetFolder.service.DcBaseTargetModelService;
import com.lzbi.common.utils.poi.ExcelUtil; import com.lzbi.common.utils.poi.ExcelUtil;
import com.lzbi.common.core.page.TableDataInfo; import com.lzbi.common.core.page.TableDataInfo;
/** /**
* 指标模版配置Controller * 指标模版配置Controller
* *
* @author Lu.JL * @author Lu.JL
* @date 2023-11-29 * @date 2023-12-07
*/ */
@RestController @RestController
@RequestMapping("/target/targetModel") @RequestMapping("/target/targetModel")
@ -37,81 +47,156 @@ public class DcBaseTargetModelController extends BaseController
/** /**
* 查询指标模版配置列表 * 查询指标模版配置列表
*/ */
@ApiOperation("查询指标模版配置列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBaseTargetModel", value = "", dataType = "DcBaseTargetModel", dataTypeClass = DcBaseTargetModel.class),
})
@PreAuthorize("@ss.hasPermi('target:targetModel:list')") @PreAuthorize("@ss.hasPermi('target:targetModel:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(DcBaseTargetModelDao dcBaseTargetModelDao) public TableDataInfo list(DcBaseTargetModel DcBaseTargetModel)
{ {
startPage(); startPage();
List<DcBaseTargetModelDao> list = dcBaseTargetModelService.selectDcBaseTargetModelDaoList(dcBaseTargetModelDao); List< DcBaseTargetModel> list = dcBaseTargetModelService.selectDcBaseTargetModelList(DcBaseTargetModel);
return getDataTable(list); return getDataTable(list);
} }
/** /**
* 导出指标模版配置列表 * 导出指标模版配置列表
*/ */
@ApiOperation("导出指标模版配置列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBaseTargetModel", value = "", dataType = "DcBaseTargetModel", dataTypeClass = DcBaseTargetModel.class),
})
@PreAuthorize("@ss.hasPermi('target:targetModel:export')") @PreAuthorize("@ss.hasPermi('target:targetModel:export')")
@Log(title = "指标模版配置", businessType = BusinessType.EXPORT) @Log(title = "指标模版配置", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, DcBaseTargetModelDao dcBaseTargetModelDao) public void export(HttpServletResponse response,DcBaseTargetModel DcBaseTargetModel)
{ {
List<DcBaseTargetModelDao> list = dcBaseTargetModelService.selectDcBaseTargetModelDaoList(dcBaseTargetModelDao); List<DcBaseTargetModel> list = dcBaseTargetModelService.selectDcBaseTargetModelList(DcBaseTargetModel);
ExcelUtil<DcBaseTargetModelDao> util = new ExcelUtil<DcBaseTargetModelDao>(DcBaseTargetModelDao.class); ExcelUtil<DcBaseTargetModel> util = new ExcelUtil<DcBaseTargetModel>(DcBaseTargetModel.class);
util.exportExcel(response, list, "指标模版配置数据"); util.exportExcel(response, list, "指标模版配置数据");
} }
/** /**
* 获取指标模版配置详细信息 * 获取指标模版配置详细信息
*/ */
@ApiOperation("获取指标模版配置详细信息")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "", dataType = "Long", dataTypeClass = Long.class),
})
@PreAuthorize("@ss.hasPermi('target:targetModel:query')") @PreAuthorize("@ss.hasPermi('target:targetModel:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
return success(dcBaseTargetModelService.selectDcBaseTargetModelDaoById(id)); return success(dcBaseTargetModelService.selectDcBaseTargetModelById(id));
} }
/** /**
* 新增指标模版配置 * 新增指标模版配置
*/ */
@ApiOperation("新增指标模版配置")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBaseTargetModel", value = "", dataType = "DcBaseTargetModel", dataTypeClass = DcBaseTargetModel.class),
})
@PreAuthorize("@ss.hasPermi('target:targetModel:add')") @PreAuthorize("@ss.hasPermi('target:targetModel:add')")
@Log(title = "指标模版配置", businessType = BusinessType.INSERT) @Log(title = "指标模版配置", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody DcBaseTargetModelDao dcBaseTargetModelDao) public AjaxResult add(@RequestBody DcBaseTargetModel DcBaseTargetModel)
{ {
return toAjax(dcBaseTargetModelService.insertDcBaseTargetModelDao(dcBaseTargetModelDao)); return toAjax(dcBaseTargetModelService.insertDcBaseTargetModel(DcBaseTargetModel));
} }
/** /**
* 修改指标模版配置 * 修改指标模版配置
*/ */
@ApiOperation("修改指标模版配置")
@ApiImplicitParams({
@ApiImplicitParam(name = "DcBaseTargetModel", value = "", dataType = "DcBaseTargetModel", dataTypeClass = DcBaseTargetModel.class),
})
@PreAuthorize("@ss.hasPermi('target:targetModel:edit')") @PreAuthorize("@ss.hasPermi('target:targetModel:edit')")
@Log(title = "指标模版配置", businessType = BusinessType.UPDATE) @Log(title = "指标模版配置", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody DcBaseTargetModelDao dcBaseTargetModelDao) public AjaxResult edit(@RequestBody DcBaseTargetModel DcBaseTargetModel)
{ {
return toAjax(dcBaseTargetModelService.updateDcBaseTargetModelDao(dcBaseTargetModelDao)); return toAjax(dcBaseTargetModelService.updateDcBaseTargetModel(DcBaseTargetModel));
} }
/** /**
* 删除指标模版配置 * 删除指标模版配置
*/ */
@ApiOperation("删除指标模版配置")
@ApiImplicitParams({
@ApiImplicitParam(name = "ids", value = "", dataType = "Long", dataTypeClass =Long.class),
})
@PreAuthorize("@ss.hasPermi('target:targetModel:remove')") @PreAuthorize("@ss.hasPermi('target:targetModel:remove')")
@Log(title = "指标模版配置", businessType = BusinessType.DELETE) @Log(title = "指标模版配置", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids)
{ {
return toAjax(dcBaseTargetModelService.deleteDcBaseTargetModelDaoByIds(ids)); return toAjax(dcBaseTargetModelService.deleteDcBaseTargetModelByIds(ids));
} }
/** /**
* 查询指标模版配置列表 * 新增指标模版配置
*/ */
@PreAuthorize("@ss.hasPermi('target:targetModel:list')") @PreAuthorize("@ss.hasPermi('target:targetModel:add')")
@GetMapping("/listNoPage") @Log(title = "指标模版配置", businessType = BusinessType.INSERT)
public AjaxResult listNoPage(DcBaseTargetModelDao dcBaseTargetModelDao) @PostMapping("/addBatch")
public AjaxResult addBatch(@RequestBody JSONArray jsonArray)
{
if (jsonArray == null) {
throw new IllegalArgumentException("未能接收任何参数!");
}
List<DcBaseTargetModel> beanList = new ArrayList<>();
try {
for (int i = 0; i < jsonArray.size(); i++) {
JSONObject beanObject = jsonArray.getJSONObject(i);
// 移除ID属性
beanObject.remove("id");
DcBaseTargetModel dcBaseTargetModel = JSON.toJavaObject(beanObject, DcBaseTargetModel.class);
dcBaseTargetModel.setCreatedTime(DateUtils.getNowDate());
dcBaseTargetModel.setDeptId(getDeptId());
dcBaseTargetModel.setUserId(getUserId());
dcBaseTargetModel.setCreatedBy(String.valueOf(getUserId()));
dcBaseTargetModel.setCreatedTime(DateUtils.getNowDate());
beanList.add(dcBaseTargetModel);
}
} catch (Exception e) {
throw new IllegalArgumentException("解析list对象异常!");
}
return toAjax(dcBaseTargetModelService.saveBatch(beanList));
}
/**
* 修改指标模版配置
*/
@PreAuthorize("@ss.hasPermi('target:targetModel:edit')")
@Log(title = "指标模版配置", businessType = BusinessType.UPDATE)
@PutMapping("editBatch")
public AjaxResult editBatch(@RequestBody JSONArray jsonArray)
{ {
List<DcBaseTargetModelDao> list = dcBaseTargetModelService.selectDcBaseTargetModelDaoList(dcBaseTargetModelDao); if (jsonArray == null) {
return AjaxResult.success(list); throw new IllegalArgumentException("未能接收任何参数!");
}
List<DcBaseTargetModel> dcBaseWorkSpecialList = new ArrayList<>();
try {
for (int i = 0; i < jsonArray.size(); i++) {
JSONObject beanObject = jsonArray.getJSONObject(i);
DcBaseTargetModel dcBaseTargetModel = JSON.toJavaObject(beanObject, DcBaseTargetModel.class);
dcBaseTargetModel.setUpdatedBy(String.valueOf(getUserId()));
dcBaseTargetModel.setUpdatedTime(DateUtils.getNowDate());
dcBaseWorkSpecialList.add(dcBaseTargetModel);
}
} catch (Exception e) {
throw new IllegalArgumentException("解析list对象异常!");
} }
return toAjax(dcBaseTargetModelService.updateBatchById(dcBaseWorkSpecialList));
}
} }

2
lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseAssetTargetDao.java

@ -5,6 +5,7 @@ import java.util.Date;
import lombok.Data; import lombok.Data;
import com.lzbi.common.annotation.Excel; import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity; import com.lzbi.module.base.BaseModuleEntity;
import lombok.experimental.Accessors;
/** /**
* 资产指标配置对象 dc_base_asset_target * 资产指标配置对象 dc_base_asset_target
@ -13,6 +14,7 @@ import com.lzbi.module.base.BaseModuleEntity;
* @date 2023-11-30 * @date 2023-11-30
*/ */
@Data @Data
@Accessors(chain = true)
public class DcBaseAssetTargetDao extends BaseModuleEntity public class DcBaseAssetTargetDao extends BaseModuleEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

15
lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseTargetModelDao.java → lzbi-module/src/main/java/com/lzbi/targetFolder/domain/DcBaseTargetModel.java

@ -1,5 +1,9 @@
package com.lzbi.targetFolder.domain; package com.lzbi.targetFolder.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import lombok.Data; import lombok.Data;
import com.lzbi.common.annotation.Excel; import com.lzbi.common.annotation.Excel;
import com.lzbi.module.base.BaseModuleEntity; import com.lzbi.module.base.BaseModuleEntity;
@ -8,16 +12,13 @@ import com.lzbi.module.base.BaseModuleEntity;
* 指标模版配置对象 dc_base_target_model * 指标模版配置对象 dc_base_target_model
* *
* @author Lu.JL * @author Lu.JL
* @date 2023-11-29 * @date 2023-12-07
*/ */
@Data @Data
public class DcBaseTargetModelDao extends BaseModuleEntity public class DcBaseTargetModel extends BaseModuleEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 指标模版编码 */ /** 指标模版编码 */
@Excel(name = "指标模版编码") @Excel(name = "指标模版编码")
private String targetModelCode; private String targetModelCode;
@ -38,6 +39,4 @@ public class DcBaseTargetModelDao extends BaseModuleEntity
@Excel(name = "指标等级") @Excel(name = "指标等级")
private Long targetModelLevel; private Long targetModelLevel;
} }

26
lzbi-module/src/main/java/com/lzbi/targetFolder/mapper/DcBaseTargetModelMapper.java

@ -1,17 +1,19 @@
package com.lzbi.targetFolder.mapper; package com.lzbi.targetFolder.mapper;
import java.util.List;
import com.lzbi.targetFolder.domain.DcBaseTargetModelDao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzbi.targetFolder.domain.DcBaseTargetModel;
import java.util.List;
/** /**
* 指标模版配置Mapper接口 * 指标模版配置Mapper接口
* *
* @author Lu.JL * @author Lu.JL
* @date 2023-11-29 * @date 2023-12-07
*/ */
public interface DcBaseTargetModelMapper extends BaseMapper<DcBaseTargetModelDao> public interface DcBaseTargetModelMapper extends BaseMapper<DcBaseTargetModel>
{ {
/** /**
* 查询指标模版配置 * 查询指标模版配置
@ -19,23 +21,23 @@ public interface DcBaseTargetModelMapper extends BaseMapper<DcBaseTargetModelDao
* @param id 指标模版配置主键 * @param id 指标模版配置主键
* @return 指标模版配置 * @return 指标模版配置
*/ */
public DcBaseTargetModelDao selectDcBaseTargetModelDaoById(Long id); public DcBaseTargetModel selectDcBaseTargetModelById(Long id);
/** /**
* 查询指标模版配置列表 * 查询指标模版配置列表
* *
* @param dcBaseTargetModelDao 指标模版配置 * @param dcBaseTargetModel 指标模版配置
* @return 指标模版配置集合 * @return 指标模版配置集合
*/ */
public List<DcBaseTargetModelDao> selectDcBaseTargetModelDaoList(DcBaseTargetModelDao dcBaseTargetModelDao); public List<DcBaseTargetModel> selectDcBaseTargetModelList(DcBaseTargetModel dcBaseTargetModel);
/** /**
* 新增指标模版配置 * 新增指标模版配置
* *
* @param dcBaseTargetModelDao 指标模版配置 * @param dcBaseTargetModel 指标模版配置
* @return 结果 * @return 结果
*/ */
public int insertDcBaseTargetModelDao(DcBaseTargetModelDao dcBaseTargetModelDao); public int insertDcBaseTargetModel(DcBaseTargetModel dcBaseTargetModel);
/** /**
* 修改指标模版配置 * 修改指标模版配置
@ -43,7 +45,7 @@ public interface DcBaseTargetModelMapper extends BaseMapper<DcBaseTargetModelDao
* @param dcBaseTargetModel 指标模版配置 * @param dcBaseTargetModel 指标模版配置
* @return 结果 * @return 结果
*/ */
public int updateDcBaseTargetModelDao(DcBaseTargetModelDao dcBaseTargetModelDao); public int updateDcBaseTargetModel(DcBaseTargetModel dcBaseTargetModel);
/** /**
* 删除指标模版配置 * 删除指标模版配置
@ -51,7 +53,7 @@ public interface DcBaseTargetModelMapper extends BaseMapper<DcBaseTargetModelDao
* @param id 指标模版配置主键 * @param id 指标模版配置主键
* @return 结果 * @return 结果
*/ */
public int deleteDcBaseTargetModelDaoById(Long id); public int deleteDcBaseTargetModelById(Long id);
/** /**
* 批量删除指标模版配置 * 批量删除指标模版配置
@ -59,5 +61,5 @@ public interface DcBaseTargetModelMapper extends BaseMapper<DcBaseTargetModelDao
* @param ids 需要删除的数据主键集合 * @param ids 需要删除的数据主键集合
* @return 结果 * @return 结果
*/ */
public int deleteDcBaseTargetModelDaoByIds(Long[] ids); public int deleteDcBaseTargetModelByIds(Long[] ids);
} }

46
lzbi-module/src/main/java/com/lzbi/targetFolder/service/DcBaseTargetModelService.java

@ -2,20 +2,20 @@ package com.lzbi.targetFolder.service;
import java.util.List; import java.util.List;
import com.lzbi.common.utils.DateUtils;
import org.springframework.stereotype.Service;
import com.lzbi.targetFolder.domain.DcBaseTargetModelDao;
import com.lzbi.targetFolder.mapper.DcBaseTargetModelMapper;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lzbi.common.utils.DateUtils;
import com.lzbi.targetFolder.domain.DcBaseTargetModel;
import com.lzbi.targetFolder.mapper.DcBaseTargetModelMapper;
import org.springframework.stereotype.Service;
/** /**
* 指标模版配置Service业务层处理 * 指标模版配置Service业务层处理
* *
* @author Lu.JL * @author Lu.JL
* @date 2023-11-29 * @date 2023-12-07
*/ */
@Service @Service
public class DcBaseTargetModelService extends ServiceImpl<DcBaseTargetModelMapper, DcBaseTargetModelDao> implements IService<DcBaseTargetModelDao> public class DcBaseTargetModelService extends ServiceImpl<DcBaseTargetModelMapper, DcBaseTargetModel> implements IService<DcBaseTargetModel>
{ {
/** /**
@ -24,46 +24,46 @@ public class DcBaseTargetModelService extends ServiceImpl<DcBaseTargetModelMappe
* @param id 指标模版配置主键 * @param id 指标模版配置主键
* @return 指标模版配置 * @return 指标模版配置
*/ */
public DcBaseTargetModelDao selectDcBaseTargetModelDaoById(Long id) public DcBaseTargetModel selectDcBaseTargetModelById(Long id)
{ {
return baseMapper.selectDcBaseTargetModelDaoById(id); return baseMapper.selectDcBaseTargetModelById(id);
} }
/** /**
* 查询指标模版配置列表 * 查询指标模版配置列表
* *
* @param dcBaseTargetModelDao 指标模版配置 * @param dcBaseTargetModel 指标模版配置
* @return 指标模版配置 * @return 指标模版配置
*/ */
public List<DcBaseTargetModelDao> selectDcBaseTargetModelDaoList(DcBaseTargetModelDao dcBaseTargetModelDao) public List<DcBaseTargetModel> selectDcBaseTargetModelList(DcBaseTargetModel dcBaseTargetModel)
{ {
return baseMapper.selectDcBaseTargetModelDaoList(dcBaseTargetModelDao); return baseMapper.selectDcBaseTargetModelList(dcBaseTargetModel);
} }
/** /**
* 新增指标模版配置 * 新增指标模版配置
* *
* @param dcBaseTargetModelDao 指标模版配置 * @param dcBaseTargetModel 指标模版配置
* @return 结果 * @return 结果
*/ */
public int insertDcBaseTargetModelDao(DcBaseTargetModelDao dcBaseTargetModelDao) public int insertDcBaseTargetModel(DcBaseTargetModel dcBaseTargetModel)
{ {
dcBaseTargetModelDao.setCreatedTime(DateUtils.getNowDate()); dcBaseTargetModel.setCreatedTime(DateUtils.getNowDate());
return baseMapper.insertDcBaseTargetModelDao(dcBaseTargetModelDao); return baseMapper.insertDcBaseTargetModel(dcBaseTargetModel);
} }
/** /**
* 修改指标模版配置 * 修改指标模版配置
* *
* @param dcBaseTargetModelDao 指标模版配置 * @param dcBaseTargetModel 指标模版配置
* @return 结果 * @return 结果
*/ */
public int updateDcBaseTargetModelDao(DcBaseTargetModelDao dcBaseTargetModelDao) public int updateDcBaseTargetModel(DcBaseTargetModel dcBaseTargetModel)
{ {
dcBaseTargetModelDao.setUpdatedTime(DateUtils.getNowDate()); dcBaseTargetModel.setUpdatedTime(DateUtils.getNowDate());
return baseMapper.updateDcBaseTargetModelDao(dcBaseTargetModelDao); return baseMapper.updateDcBaseTargetModel(dcBaseTargetModel);
} }
/** /**
@ -73,9 +73,9 @@ public class DcBaseTargetModelService extends ServiceImpl<DcBaseTargetModelMappe
* @return 结果 * @return 结果
*/ */
public int deleteDcBaseTargetModelDaoByIds(Long[] ids) public int deleteDcBaseTargetModelByIds(Long[] ids)
{ {
return baseMapper.deleteDcBaseTargetModelDaoByIds(ids); return baseMapper.deleteDcBaseTargetModelByIds(ids);
} }
/** /**
@ -85,8 +85,8 @@ public class DcBaseTargetModelService extends ServiceImpl<DcBaseTargetModelMappe
* @return 结果 * @return 结果
*/ */
public int deleteDcBaseTargetModelDaoById(Long id) public int deleteDcBaseTargetModelById(Long id)
{ {
return baseMapper.deleteDcBaseTargetModelDaoById(id); return baseMapper.deleteDcBaseTargetModelById(id);
} }
} }

20
lzbi-module/src/main/resources/mapper/targetFolder/DcBaseAssetTargetMapper.xml

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.lzbi.targetFolder.mapper.DcBaseAssetTargetMapper"> <mapper namespace="com.lzbi.targetFolder.mapper.DcBaseAssetTargetMapper">
<resultMap type="com.lzbi.targetFolder.domain.DcBaseAssetTargetDao" id="DcBaseAssetTargetResult"> <resultMap type="com.lzbi.targetFolder.domain.DcBaseAssetTargetDao" id="DcBaseAssetTargetResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="assetCode" column="asset_code" />
<result property="assetId" column="asset_id" /> <result property="assetId" column="asset_id" />
<result property="assetCode" column="asset_code" /> <result property="assetCode" column="asset_code" />
<result property="targetModelCode" column="target_model_code" /> <result property="targetModelCode" column="target_model_code" />
@ -18,7 +19,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="flagAvg" column="flag_avg" /> <result property="flagAvg" column="flag_avg" />
<result property="flagSum" column="flag_sum" /> <result property="flagSum" column="flag_sum" />
<result property="flagCompute" column="flag_compute" /> <result property="flagCompute" column="flag_compute" />
<result property="sort" column="sort" />
<result property="tenantId" column="tenant_id" /> <result property="tenantId" column="tenant_id" />
<result property="revision" column="revision" /> <result property="revision" column="revision" />
<result property="createdBy" column="created_by" /> <result property="createdBy" column="created_by" />
@ -36,13 +36,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectDcBaseAssetTargetDaoList" parameterType="DcBaseAssetTargetDao" resultMap="DcBaseAssetTargetResult"> <select id="selectDcBaseAssetTargetDaoList" parameterType="DcBaseAssetTargetDao" resultMap="DcBaseAssetTargetResult">
<include refid="selectDcBaseAssetTargetVo"/> <include refid="selectDcBaseAssetTargetVo"/>
<where> <where>
<if test="assetCode != null and assetCode != ''"> and asset_code = #{assetCode}</if>
<if test="assetId != null "> and asset_id = #{assetId}</if> <if test="assetId != null "> and asset_id = #{assetId}</if>
<if test="targetModelCode != null and targetModelCode != ''"> and target_model_code = #{targetModelCode}</if> <if test="targetModelCode != null and targetModelCode != ''"> and target_model_code = #{targetModelCode}</if>
<if test="targetName != null and targetName != ''"> and target_name like concat('%', #{targetName}, '%')</if> <if test="targetName != null and targetName != ''"> and target_name like concat('%', #{targetName}, '%')</if>
<if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if> <if test="targetCode != null and targetCode != ''"> and target_code = #{targetCode}</if>
<if test="targetField != null and targetField != ''"> and target_field = #{targetField}</if> <if test="targetField != null and targetField != ''"> and target_field = #{targetField}</if>
<if test="assetCode != null "> and asset_code = #{assetCode}</if> <if test="assetCode != null "> and asset_code = #{assetCode}</if>
<if test="limitUp != null "> and limit_up = #{limitUp}</if>
<if test="limitDown != null "> and limit_down = #{limitDown}</if>
<if test="valueBase != null "> and value_base = #{valueBase}</if>
<if test="flagAvg != null and flagAvg != ''"> and flag_avg = #{flagAvg}</if>
<if test="flagSum != null and flagSum != ''"> and flag_sum = #{flagSum}</if>
<if test="flagCompute != null and flagCompute != ''"> and flag_compute = #{flagCompute}</if>
</where> </where>
</select> </select>
@ -59,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="insertDcBaseAssetTargetDao" parameterType="DcBaseAssetTargetDao" useGeneratedKeys="true" keyProperty="id"> <insert id="insertDcBaseAssetTargetDao" parameterType="DcBaseAssetTargetDao" useGeneratedKeys="true" keyProperty="id">
insert into dc_base_asset_target insert into dc_base_asset_target
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="assetCode != null">asset_code,</if>
<if test="assetId != null">asset_id,</if> <if test="assetId != null">asset_id,</if>
<if test="targetModelCode != null">target_model_code,</if> <if test="targetModelCode != null">target_model_code,</if>
<if test="targetName != null">target_name,</if> <if test="targetName != null">target_name,</if>
@ -70,7 +77,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="flagAvg != null">flag_avg,</if> <if test="flagAvg != null">flag_avg,</if>
<if test="flagSum != null">flag_sum,</if> <if test="flagSum != null">flag_sum,</if>
<if test="flagCompute != null">flag_compute,</if> <if test="flagCompute != null">flag_compute,</if>
<if test="sort != null">sort,</if>
<if test="tenantId != null">tenant_id,</if> <if test="tenantId != null">tenant_id,</if>
<if test="revision != null">revision,</if> <if test="revision != null">revision,</if>
<if test="createdBy != null">created_by,</if> <if test="createdBy != null">created_by,</if>
@ -81,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deleteTime != null">delete_time,</if> <if test="deleteTime != null">delete_time,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="assetCode != null">#{assetCode},</if>
<if test="assetId != null">#{assetId},</if> <if test="assetId != null">#{assetId},</if>
<if test="targetModelCode != null">#{targetModelCode},</if> <if test="targetModelCode != null">#{targetModelCode},</if>
<if test="targetName != null">#{targetName},</if> <if test="targetName != null">#{targetName},</if>
@ -92,7 +99,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="flagAvg != null">#{flagAvg},</if> <if test="flagAvg != null">#{flagAvg},</if>
<if test="flagSum != null">#{flagSum},</if> <if test="flagSum != null">#{flagSum},</if>
<if test="flagCompute != null">#{flagCompute},</if> <if test="flagCompute != null">#{flagCompute},</if>
<if test="sort != null">#{sort},</if>
<if test="tenantId != null">#{tenantId},</if> <if test="tenantId != null">#{tenantId},</if>
<if test="revision != null">#{revision},</if> <if test="revision != null">#{revision},</if>
<if test="createdBy != null">#{createdBy},</if> <if test="createdBy != null">#{createdBy},</if>
@ -107,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateDcBaseAssetTargetDao" parameterType="DcBaseAssetTargetDao"> <update id="updateDcBaseAssetTargetDao" parameterType="DcBaseAssetTargetDao">
update dc_base_asset_target update dc_base_asset_target
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="assetCode != null">asset_code = #{assetCode},</if>
<if test="assetId != null">asset_id = #{assetId},</if> <if test="assetId != null">asset_id = #{assetId},</if>
<if test="targetModelCode != null">target_model_code = #{targetModelCode},</if> <if test="targetModelCode != null">target_model_code = #{targetModelCode},</if>
<if test="targetName != null">target_name = #{targetName},</if> <if test="targetName != null">target_name = #{targetName},</if>
@ -118,7 +125,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="flagAvg != null">flag_avg = #{flagAvg},</if> <if test="flagAvg != null">flag_avg = #{flagAvg},</if>
<if test="flagSum != null">flag_sum = #{flagSum},</if> <if test="flagSum != null">flag_sum = #{flagSum},</if>
<if test="flagCompute != null">flag_compute = #{flagCompute},</if> <if test="flagCompute != null">flag_compute = #{flagCompute},</if>
<if test="sort != null">sort = #{sort},</if>
<if test="tenantId != null">tenant_id = #{tenantId},</if> <if test="tenantId != null">tenant_id = #{tenantId},</if>
<if test="revision != null">revision = #{revision},</if> <if test="revision != null">revision = #{revision},</if>
<if test="createdBy != null">created_by = #{createdBy},</if> <if test="createdBy != null">created_by = #{createdBy},</if>

28
lzbi-module/src/main/resources/mapper/targetFolder/DcBaseTargetModelMapper.xml

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.lzbi.targetFolder.mapper.DcBaseTargetModelMapper"> <mapper namespace="com.lzbi.targetFolder.mapper.DcBaseTargetModelMapper">
<resultMap type="com.lzbi.targetFolder.domain.DcBaseTargetModelDao" id="DcBaseTargetModelResult"> <resultMap type="com.lzbi.targetFolder.domain.DcBaseTargetModel" id="DcBaseTargetModelResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="targetModelCode" column="target_model_code" /> <result property="targetModelCode" column="target_model_code" />
<result property="targetModelName" column="target_model_name" /> <result property="targetModelName" column="target_model_name" />
@ -19,13 +19,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updatedTime" column="updated_time" /> <result property="updatedTime" column="updated_time" />
<result property="deleteBy" column="delete_by" /> <result property="deleteBy" column="delete_by" />
<result property="deleteTime" column="delete_time" /> <result property="deleteTime" column="delete_time" />
<result property="deptId" column="dept_id" />
<result property="userId" column="user_id" />
</resultMap> </resultMap>
<sql id="selectDcBaseTargetModelVo"> <sql id="selectDcBaseTargetModelVo">
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 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, dept_id, user_id from dc_base_target_model
</sql> </sql>
<select id="selectDcBaseTargetModelDaoList" parameterType="DcBaseTargetModelDao" resultMap="DcBaseTargetModelResult"> <select id="selectDcBaseTargetModelList" parameterType="DcBaseTargetModel" resultMap="DcBaseTargetModelResult">
<include refid="selectDcBaseTargetModelVo"/> <include refid="selectDcBaseTargetModelVo"/>
<where> <where>
<if test="targetModelCode != null and targetModelCode != ''"> and target_model_code = #{targetModelCode}</if> <if test="targetModelCode != null and targetModelCode != ''"> and target_model_code = #{targetModelCode}</if>
@ -36,12 +38,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where> </where>
</select> </select>
<select id="selectDcBaseTargetModelDaoById" parameterType="Long" resultMap="DcBaseTargetModelResult"> <select id="selectDcBaseTargetModelById" parameterType="Long" resultMap="DcBaseTargetModelResult">
<include refid="selectDcBaseTargetModelVo"/> <include refid="selectDcBaseTargetModelVo"/>
where id = #{id} where id = #{id}
</select> </select>
<insert id="insertDcBaseTargetModelDao" parameterType="DcBaseTargetModelDao" useGeneratedKeys="true" keyProperty="id"> <insert id="insertDcBaseTargetModel" parameterType="DcBaseTargetModel" useGeneratedKeys="true" keyProperty="id">
insert into dc_base_target_model insert into dc_base_target_model
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="targetModelCode != null">target_model_code,</if> <if test="targetModelCode != null">target_model_code,</if>
@ -57,6 +59,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updatedTime != null">updated_time,</if> <if test="updatedTime != null">updated_time,</if>
<if test="deleteBy != null">delete_by,</if> <if test="deleteBy != null">delete_by,</if>
<if test="deleteTime != null">delete_time,</if> <if test="deleteTime != null">delete_time,</if>
<if test="deptId != null">dept_id,</if>
<if test="userId != null">user_id,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="targetModelCode != null">#{targetModelCode},</if> <if test="targetModelCode != null">#{targetModelCode},</if>
@ -72,10 +76,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updatedTime != null">#{updatedTime},</if> <if test="updatedTime != null">#{updatedTime},</if>
<if test="deleteBy != null">#{deleteBy},</if> <if test="deleteBy != null">#{deleteBy},</if>
<if test="deleteTime != null">#{deleteTime},</if> <if test="deleteTime != null">#{deleteTime},</if>
<if test="deptId != null">#{deptId},</if>
<if test="userId != null">#{userId},</if>
</trim> </trim>
</insert> </insert>
<update id="updateDcBaseTargetModelDao" parameterType="DcBaseTargetModelDao"> <update id="updateDcBaseTargetModel" parameterType="DcBaseTargetModel">
update dc_base_target_model update dc_base_target_model
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="targetModelCode != null">target_model_code = #{targetModelCode},</if> <if test="targetModelCode != null">target_model_code = #{targetModelCode},</if>
@ -91,15 +97,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updatedTime != null">updated_time = #{updatedTime},</if> <if test="updatedTime != null">updated_time = #{updatedTime},</if>
<if test="deleteBy != null">delete_by = #{deleteBy},</if> <if test="deleteBy != null">delete_by = #{deleteBy},</if>
<if test="deleteTime != null">delete_time = #{deleteTime},</if> <if test="deleteTime != null">delete_time = #{deleteTime},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="userId != null">user_id = #{userId},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
<delete id="deleteDcBaseTargetModelDaoById" parameterType="Long"> <delete id="deleteDcBaseTargetModelById" parameterType="Long">
delete from dc_base_target_model where id = #{id} delete from dc_base_target_model where id = #{id}
</delete> </delete>
<delete id="deleteDcBaseTargetModelDaoByIds" parameterType="String"> <delete id="deleteDcBaseTargetModelByIds" parameterType="String">
delete from dc_base_target_model where id in delete from dc_base_target_model where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}

Loading…
Cancel
Save