Browse Source

REPORT-100954 【版本管理三期】版本中心弹窗交互问题

release/11.0
Destiny.Lin 11 months ago
parent
commit
7637d0d0ae
  1. 7
      designer-base/src/main/java/com/fr/design/mainframe/vcs/VcsTableEntity.java

7
designer-base/src/main/java/com/fr/design/mainframe/vcs/VcsTableEntity.java

@ -1,6 +1,7 @@
package com.fr.design.mainframe.vcs;
import com.fr.report.entity.VcsEntity;
import com.fr.stable.StringUtils;
/**
* 包装VcsEntity的用于表格展示与处理的类
@ -39,7 +40,11 @@ public class VcsTableEntity implements TableEntity{
* @return 版本大小
*/
public String getSize() {
return String.format("%.3f",entity.getSize()/MB_SIZE) + MB;
double size = entity.getSize()/MB_SIZE;
if (size == 0) {
return StringUtils.EMPTY;
}
return String.format("%.3f", size) + MB;
}
/**

Loading…
Cancel
Save