|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|