fix: 修复只修改仪表板名称后,移动端列表不显示仪表板问题

This commit is contained in:
wangjiahao 2022-02-22 11:22:02 +08:00
parent cd5fb46d0d
commit 7c67717b3c

View File

@ -74,11 +74,12 @@ public class PanelViewService {
@Transactional(propagation=Propagation.REQUIRES_NEW)
public Boolean syncPanelViews(PanelGroupWithBLOBs panelGroup){
Boolean mobileLayout = false;
Boolean mobileLayout = null;
String panelId = panelGroup.getId();
Assert.notNull(panelId, "panelId cannot be null");
String panelData = panelGroup.getPanelData();
if(StringUtils.isNotEmpty(panelData)){
mobileLayout = false;
JSONArray dataArray = JSON.parseArray(panelData);
List<PanelViewInsertDTO> panelViewInsertDTOList = new ArrayList<>();
for(int i=0;i<dataArray.size();i++){