|
@@ -41,6 +41,8 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.ByteArrayOutputStream;
|
|
|
import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.math.RoundingMode;
|
|
|
import java.net.URLDecoder;
|
|
|
import java.text.DecimalFormat;
|
|
|
import java.text.SimpleDateFormat;
|
|
@@ -1006,6 +1008,9 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
|
|
|
rownum++;
|
|
|
DecimalFormat decimalFormat=new DecimalFormat(".00");
|
|
|
String compName = commonCompanyService.selectById(AuthSecurityUtils.getCurrentUserInfo().getCompId()).getCompName();
|
|
|
+
|
|
|
+// BigDecimal bd = new BigDecimal(value);
|
|
|
+// bd = bd.setScale(2, RoundingMode.HALF_UP);
|
|
|
// 详情信息
|
|
|
if (org.apache.commons.collections.CollectionUtils.isNotEmpty(paymentManagement.getPaymentManagementList())) {
|
|
|
for (int i = 0; i < paymentManagement.getPaymentManagementList().size(); i++) {
|
|
@@ -1040,7 +1045,7 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
|
|
|
cell.setCellValue(editString(paymentManagement1.getCarNo()));
|
|
|
cell.setCellStyle(styleDetail);
|
|
|
cell = rowx.createCell(10);
|
|
|
- cell.setCellValue(editFloat(paymentManagement1.getTidalGrainPrice()));
|
|
|
+ cell.setCellValue(new Formatter().format("%.2f", editFloat(paymentManagement1.getTidalGrainPrice())).toString());
|
|
|
cell.setCellStyle(styleDetail);
|
|
|
cell = rowx.createCell(11);
|
|
|
cell.setCellValue(editFloat(paymentManagement1.getNetWeight()));
|
|
@@ -1052,7 +1057,7 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
|
|
|
cell.setCellValue(editFloat(paymentManagement1.getPureWeight()));
|
|
|
cell.setCellStyle(styleDetail);
|
|
|
cell = rowx.createCell(14);
|
|
|
- cell.setCellValue(editFloat(paymentManagement1.getAmountIngPayable()));
|
|
|
+ cell.setCellValue(new Formatter().format("%.1f", editFloat(paymentManagement1.getAmountIngPayable())).toString());
|
|
|
cell.setCellStyle(styleDetail);
|
|
|
cell = rowx.createCell(15);
|
|
|
cell.setCellValue(editFloat(paymentManagement1.getAmountEdPayable()));
|