| | |
| | | @SuperBuilder |
| | | public abstract class ReportDataBase { |
| | | |
| | | private static final String DAIGUAN_REMARK = "岱观科技"; |
| | | private static final String DEFAULT_COMPANY_NAME = "四川信立隆第三方评估咨询有限公司"; |
| | | private static final String DAIGUAN_COMPANY_NAME = "四川岱观科技有限公司"; |
| | | |
| | | ReportTemplate template; |
| | | |
| | | List<Device> devices; |
| | |
| | | result.put("报告年份", reportDate.getYear()); |
| | | result.put("报告月份", reportDate.getMonthValue()); |
| | | result.put("报告日期日", reportDate.getDayOfMonth()); |
| | | result.put("公司名称", "四川信立隆第三方评估咨询有限公司"); |
| | | result.put("公司名称", buildCompanyName()); |
| | | return result; |
| | | } |
| | | |
| | | private String buildCompanyName() { |
| | | if (template != null && DAIGUAN_REMARK.equals(template.getRemark())) { |
| | | return DAIGUAN_COMPANY_NAME; |
| | | } |
| | | return DEFAULT_COMPANY_NAME; |
| | | } |
| | | |
| | | /** |
| | | * 构建设备信息 |
| | | * @return 设备信息 |