|
@@ -408,7 +408,22 @@ public class ExportUtil {
|
|
|
}else {
|
|
|
cell = row.getCell(7);
|
|
|
}
|
|
|
- cell.setCellValue(transferOfPower2.getPowerInstallFee());//设备价值
|
|
|
+ String powerInstallFee = transferOfPower2.getPowerInstallFee();
|
|
|
+ String powerValue = transferOfPower2.getPowerValue();
|
|
|
+ BigDecimal one = new BigDecimal("0.0");
|
|
|
+ BigDecimal two = new BigDecimal("0.0");
|
|
|
+ if (null == powerInstallFee || "".equals(powerInstallFee)) {
|
|
|
+ one = new BigDecimal("0.0");
|
|
|
+ }else {
|
|
|
+ one = new BigDecimal(powerInstallFee);
|
|
|
+ }
|
|
|
+ if (null == powerValue || "".equals(powerValue)) {
|
|
|
+ two = new BigDecimal("0.0");
|
|
|
+ }else {
|
|
|
+ two = new BigDecimal(powerValue);
|
|
|
+ }
|
|
|
+ BigDecimal bigDecimal = one.subtract(two).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
+ cell.setCellValue(bigDecimal.toString());//安装费
|
|
|
cell.setCellStyle(cellStyle);
|
|
|
if (i == transferOfPower2s.size() - 1){ cell.setCellStyle(style); }
|
|
|
//第9行
|