|
|
|
@ -263,16 +263,13 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
|
|
|
|
|
lineCell9.setCellStyle(lineStyle);
|
|
|
|
|
String s = String.valueOf(map.get("settlement")).equals("null") ? "0" : String.valueOf(map.get("settlement"));
|
|
|
|
|
sum=sum.add(new BigDecimal(s));
|
|
|
|
|
// log.warn(sum.toPlainString());
|
|
|
|
|
// log.warn(s);
|
|
|
|
|
// log.warn(sum.toString());
|
|
|
|
|
|
|
|
|
|
if (i==list.size()-1){
|
|
|
|
|
//使用 createRow() 方法创建第 0 行
|
|
|
|
|
HSSFRow rowhead = sheet.createRow(( short ) 0 );
|
|
|
|
|
// 使用 createCell() 方法创建单元格,并使用 setCellValue() 方法为单元格设置值
|
|
|
|
|
|
|
|
|
|
HSSFCell cell = rowhead.createCell(0);
|
|
|
|
|
log.warn(map.toString());
|
|
|
|
|
String s1 = String.valueOf(map.get("supplierNm")).equals("null") ? "" : String.valueOf(map.get("supplierNm"));
|
|
|
|
|
if (s1.equals("")){
|
|
|
|
|
for (int i1 = 0; i1 < list.size(); i1++) {
|
|
|
|
@ -450,6 +447,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
|
|
|
|
|
//将上传的文件存储到指定位置
|
|
|
|
|
file.transferTo(f);
|
|
|
|
|
inputStream.close();
|
|
|
|
|
log.warn("pdf文件生成成功!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -526,6 +524,7 @@ public class PurchaseorderitemServiceImpl extends ServiceImpl<PurchaseorderitemM
|
|
|
|
|
//生成word文档
|
|
|
|
|
document.saveToFile(templateFilePath+"废钢收获榜单照片("+titleStr+")).docx", FileFormat.Docx_2013);
|
|
|
|
|
document.close();
|
|
|
|
|
log.warn("word文档生成成功!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -665,8 +664,6 @@ if (pMap!=null&&pMap.size()>0){
|
|
|
|
|
map.put("settlementSum",settlementSum.setScale(2,BigDecimal.ROUND_HALF_DOWN).toString());
|
|
|
|
|
map.put("amountSum",amountSum.setScale(2,BigDecimal.ROUND_HALF_DOWN).toString() );
|
|
|
|
|
map.put("reportList", list);
|
|
|
|
|
// System.out.println(map.toString());
|
|
|
|
|
// System.out.println("AAAAAAAAAAAAAAAAAAAAAA ");
|
|
|
|
|
//repotData自己加测试数据
|
|
|
|
|
|
|
|
|
|
out = exportPdf.createPdf(map, "test.ftl", "/templates/export");
|
|
|
|
@ -1581,8 +1578,7 @@ if (dataList.size()>0){
|
|
|
|
|
sum+= poundlistMapper.insert(model);
|
|
|
|
|
}
|
|
|
|
|
// 榜单逻辑
|
|
|
|
|
// System.out.println(JsonUtil.getListToJsonArray(dataList));
|
|
|
|
|
// System.out.println(JsonUtil.getListToJsonArray(entitys));
|
|
|
|
|
|
|
|
|
|
//进行数据添加
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|