| | |
| | | package com.product.server.report.entity; |
| | | |
| | | import cn.hutool.core.util.NumberUtil; |
| | | import com.product.common.lang.StringUtils; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | /** |
| | | * @Author cheng |
| | |
| | | Map<String, String> otherParams = this.otherParams; |
| | | this.otherParams = new HashMap<>(); |
| | | otherParams.forEach((k, v) -> { |
| | | if ("rowspan".equals(v) && NumberUtil.isNumber(value) && k.equals(key)) { |
| | | this.rowspan = NumberUtil.parseInt(value); |
| | | } |
| | | this.otherParams.put(k.replace(key, value), v.replace(key, value)); |
| | | }); |
| | | } |
| | | if(!StringUtils.isEmpty(subReportProperty)){ |
| | | subReportProperty=subReportProperty.replace(key,value); |
| | | if (!StringUtils.isEmpty(subReportProperty)) { |
| | | subReportProperty = subReportProperty.replace(key, value); |
| | | } |
| | | if(!StringUtils.isEmpty(penetrateProperty)){ |
| | | penetrateProperty=penetrateProperty.replace(key,value); |
| | | if (!StringUtils.isEmpty(penetrateProperty)) { |
| | | penetrateProperty = penetrateProperty.replace(key, value); |
| | | } |
| | | if(!StringUtils.isEmpty(content)){ |
| | | content=content.replace(key,value); |
| | | if (!StringUtils.isEmpty(content)) { |
| | | content = content.replace(key, value); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | public String getContent() { |
| | | return content; |
| | | return getContent(false); |
| | | } |
| | | |
| | | public String getContent(boolean emptyChar) { |
| | | if (emptyChar) { |
| | | return this.content == null ? "" : this.content; |
| | | } |
| | | return this.content; |
| | | } |
| | | |
| | | public void setContent(String content) { |