| | |
| | | Long companyId = LoginUserUtil.getCompanyId(); |
| | | QueryWrapper<CmsTemplateEntity> objectQueryWrapper = new QueryWrapper<>(); |
| | | objectQueryWrapper.eq("company_id",companyId); |
| | | objectQueryWrapper.eq("company_id",companyId); |
| | | List<CmsTemplateEntity> cmsTemplateEntities = this.baseMapper.selectList(objectQueryWrapper); |
| | | return Result.ok(cmsTemplateEntities); |
| | | } |
| | |
| | | String baseUrl = cmsProperties.getBaseUrl(); |
| | | String templatePath = cmsProperties.getTemplatePath(); |
| | | String htmlUrl = baseUrl + templatePath; |
| | | String pathName = htmlUrl + "\\" + cmsTemplateEntity.getPath(); |
| | | String pathName = htmlUrl + "/" + cmsTemplateEntity.getPath(); |
| | | |
| | | byte[] bytes = new byte[0]; |
| | | try { |