提交 41343864 authored 作者: 吕本才's avatar 吕本才

1、修改保存自定义报表接口

上级 751376de
......@@ -38,7 +38,7 @@ public class CustomerGroupDaoImpl implements CustomerGroupDao {
CustomerGroupDto dto = new CustomerGroupDto();
dto.setGroupId(customerGroup.getId());
dto.setGroupName(customerGroup.getName());
dto.setCatalogName(customerGroup.getCategoryName());
dto.setCategoryName(customerGroup.getCategoryName());
result.add(dto);
}
return result;
......
......@@ -7,4 +7,11 @@ public class CustomerReportAddWq {
private String id;
private String name;
private String previewUrl;
private String categoryName;
private Long createUserId;
private Long updateUserId;
private String createBy;
private String updateBy;
}
......@@ -11,7 +11,10 @@ import lombok.Data;
public class CustomerReportAddVo {
private String groupId;
private String groupName;
private String previewUrl;
private String categoryName;
private Long createUserId;
private Long updateUserId;
private String createBy;
......
......@@ -6,5 +6,5 @@ import lombok.Data;
public class CustomerGroupDto {
private String groupId;
private String groupName;
private String catalogName;
private String categoryName;
}
......@@ -74,7 +74,7 @@ public class CustomerGroupServiceImpl implements CustomerGroupService {
if (ObjectUtil.isNotEmpty(customerGroupDto)) {
// 匹配到了
CustomerReportAddVo customerReportAddVo = new CustomerReportAddVo();
customerReportAddVo.setCategoryName(customerGroupDto.getCatalogName());
customerReportAddVo.setCategoryName(customerGroupDto.getCategoryName());
customerReportAddVo.setGroupName(customerGroupDto.getGroupName());
customerReportAddVo.setCreateBy(customerReportGroup.getCreateBy());
customerReportAddVo.setUpdateBy(customerReportGroup.getUpdateBy());
......
......@@ -9,6 +9,7 @@ import com.link.report.pojo.request.ReportShareListVo;
import com.link.report.pojo.response.CustomerReportListDto;
import com.link.report.service.CustomerReportService;
import com.sfa.common.core.utils.bean.BeanUtils;
import com.sfa.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -27,6 +28,13 @@ public class CustomerReportServiceImpl implements CustomerReportService {
public void save(CustomerReportAddVo customerReportAddVo) {
CustomerReportAddWq wq = new CustomerReportAddWq();
BeanUtils.copyProperties(customerReportAddVo, wq);
wq.setName(customerReportAddVo.getGroupName());
wq.setPreviewUrl(customerReportAddVo.getPreviewUrl());
wq.setCreateBy(SecurityUtils.getUsername());
wq.setUpdateBy(SecurityUtils.getUsername());
wq.setCreateUserId(SecurityUtils.getUserId());
wq.setUpdateUserId(SecurityUtils.getUserId());
if (ObjectUtil.isNotEmpty(wq.getId())) {
customerReportDao.update(wq);
} else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论