Commit 354fadce authored by TIANZHI.HU's avatar TIANZHI.HU

对账单打印更新 add by 39135 HuTianzhi

parent 94ddf1b9
...@@ -334,10 +334,12 @@ public class ConExportServiceImpl implements ConExportService { ...@@ -334,10 +334,12 @@ public class ConExportServiceImpl implements ConExportService {
if(x.compareTo((BigDecimal) map1.get("CF_ITEM")) ==0){ if(x.compareTo((BigDecimal) map1.get("CF_ITEM")) ==0){
cell.setCellValue(""); cell.setCellValue("");
}else { }else {
// 系统时间大于应收日的才set值
DateFormat dft = new SimpleDateFormat("yyyy-MM-dd"); DateFormat dft = new SimpleDateFormat("yyyy-MM-dd");
Date dueDate = dft.parse((String) map1.get("DUE_DATE")); Date dueDate = dft.parse((String) map1.get("DUE_DATE"));
Date now = new Date(); // 去除时分秒
if(now.after(dueDate)){ Date now = dft.parse(dft.format(new Date()));
if(Objects.nonNull(dueDate) && now.compareTo(dueDate) == 1){
DataFormat df = wb.createDataFormat(); // 此处设置数据格式 DataFormat df = wb.createDataFormat(); // 此处设置数据格式
contentTable.setDataFormat(df.getFormat("#,##0.00"));//保留两位小数点 contentTable.setDataFormat(df.getFormat("#,##0.00"));//保留两位小数点
cell.setCellStyle(contentTable); cell.setCellStyle(contentTable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment