Compare commits
No commits in common. "555a6dd856e52e16071ca9ea636cdad017d8e5e1" and "a5eb7a4ea715b4df4b61ea25e7c423cedcae3730" have entirely different histories.
555a6dd856
...
a5eb7a4ea7
|
@ -2,7 +2,6 @@ package org.jeecg.common.util;
|
||||||
|
|
||||||
import cn.hutool.core.io.FileUtil;
|
import cn.hutool.core.io.FileUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.StringPool;
|
import com.baomidou.mybatisplus.core.toolkit.StringPool;
|
||||||
|
@ -2814,28 +2813,16 @@ public class GammaFileUtil extends AbstractLogOrReport {
|
||||||
strBuffer.append(System.lineSeparator());
|
strBuffer.append(System.lineSeparator());
|
||||||
List<CalMDCInfo> mdcInfos = middleData.mdcInfos;
|
List<CalMDCInfo> mdcInfos = middleData.mdcInfos;
|
||||||
String mdcTitle = "%-15s%-18s%-15s%-15s";
|
String mdcTitle = "%-15s%-18s%-15s%-15s";
|
||||||
|
String[] mdcData = new String[]{" Nuclide", "Halflife", "MDC", "MDA(Bq)"};
|
||||||
StringBuffer mdcSB = new StringBuffer();
|
|
||||||
boolean isMda = false;
|
|
||||||
for (CalMDCInfo mdcDto : mdcInfos) {
|
|
||||||
mdcDto.format();
|
|
||||||
mdcSB.append(rowFormat(mdcTitle, StringPool.SPACE + mdcDto.getNuclideName(),
|
|
||||||
mdcDto.getHalfLifeStr(), mdcDto.getMdcStr(), mdcDto.getMdaStr()));
|
|
||||||
//换行
|
|
||||||
mdcSB.append(System.lineSeparator());
|
|
||||||
if (!isMda && StrUtil.isNotBlank(mdcDto.getMdaStr())) {
|
|
||||||
isMda = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
String[] mdcData = new String[]{" Nuclide", "Halflife", "MDC(uBq/m3)", ""};
|
|
||||||
// 如果有 MDA 就显示标题
|
|
||||||
if (isMda) {
|
|
||||||
mdcData = new String[]{" Nuclide", "Halflife", "MDC(uBq/m3)", "MDA(uBq)"};
|
|
||||||
}
|
|
||||||
strBuffer.append(rowFormat(mdcTitle, mdcData));
|
strBuffer.append(rowFormat(mdcTitle, mdcData));
|
||||||
strBuffer.append(System.lineSeparator());
|
strBuffer.append(System.lineSeparator());
|
||||||
strBuffer.append(mdcSB);
|
for (CalMDCInfo mdcDto : mdcInfos) {
|
||||||
|
mdcDto.format();
|
||||||
|
strBuffer.append(rowFormat(mdcTitle, StringPool.SPACE + mdcDto.getNuclideName(),
|
||||||
|
mdcDto.getHalfLifeStr(), mdcDto.getMdcStr(), mdcDto.getMdaStr()));
|
||||||
|
//换行
|
||||||
|
strBuffer.append(System.lineSeparator());
|
||||||
|
}
|
||||||
//换行
|
//换行
|
||||||
strBuffer.append(System.lineSeparator());
|
strBuffer.append(System.lineSeparator());
|
||||||
//换行
|
//换行
|
||||||
|
|
Loading…
Reference in New Issue
Block a user