fix: 保存默认仪表板时创建人不对问题

This commit is contained in:
wangjiahao 2021-06-24 15:06:27 +08:00
parent 9bd75d6a41
commit cce1ac4ba2

View File

@ -92,6 +92,7 @@ public class PanelGroupService {
newDefaultPanel.setPid(PanelConstants.PANEL_GATHER_DEFAULT_PANEL);
newDefaultPanel.setLevel(0);
newDefaultPanel.setSource(request.getId());
newDefaultPanel.setCreateBy(AuthUtils.getUser().getUsername());
checkPanelName(newDefaultPanel.getName(), newDefaultPanel.getPid(), PanelConstants.OPT_TYPE_INSERT, newDefaultPanel.getId());
panelGroupMapper.insertSelective(newDefaultPanel);
} else {