Commit f20676c9 by wangjian

2025-11-29 wj 修改

parent e65e133b
......@@ -596,27 +596,61 @@ public class SjFybpZbController extends BaseController
// 通过循环,逐行取出表中每行数据
for(int i=0;i<=lastRowNum;i++) {//跳过第一行和第二行
if(i==0 || i==1){
if(i <= 4){
continue;
}
// 获取行
XSSFRow row = sheet.getRow(i);
SjFybp cb = new SjFybp();
System.out.println(row);
SjFybp cb1 = new SjFybp();
cb1.setFylx("三基标杆打造");
//项目金额
String fylx = new DataFormatter().formatCellValue(row.getCell(0));
cb.setFylx(fylx);
String fyje1 = new DataFormatter().formatCellValue(row.getCell(3));
cb1.setFyje(new BigDecimal(fyje1));
//项目内容
String fyms1 = new DataFormatter().formatCellValue(row.getCell(4));
cb1.setFyms(fyms1);
list.add(cb1);
SjFybp cb2 = new SjFybp();
cb2.setFylx("“三个最强”全员练兵");
//项目金额
String fyje2 = new DataFormatter().formatCellValue(row.getCell(5));
cb2.setFyje(new BigDecimal(fyje2));
//项目内容
String fyms2 = new DataFormatter().formatCellValue(row.getCell(6));
cb2.setFyms(fyms2);
list.add(cb2);
SjFybp cb3 = new SjFybp();
cb3.setFylx("三标建设5S管理");
//项目金额
String fyje = new DataFormatter().formatCellValue(row.getCell(1));
cb.setFyje(new BigDecimal(fyje));
String fyje3 = new DataFormatter().formatCellValue(row.getCell(7));
cb3.setFyje(new BigDecimal(fyje3));
//项目内容
String fyms3 = new DataFormatter().formatCellValue(row.getCell(8));
cb3.setFyms(fyms3);
list.add(cb3);
SjFybp cb4 = new SjFybp();
cb4.setFylx("基层板站建设");
//项目金额
String fyje4 = new DataFormatter().formatCellValue(row.getCell(9));
cb4.setFyje(new BigDecimal(fyje4));
//项目内容
String fyms = new DataFormatter().formatCellValue(row.getCell(2));
cb.setFyms(fyms);
String fyms4 = new DataFormatter().formatCellValue(row.getCell(10));
cb4.setFyms(fyms4);
list.add(cb4);
list.add(cb);
SjFybp cb5 = new SjFybp();
cb5.setFylx("其他");
//项目金额
String fyje5 = new DataFormatter().formatCellValue(row.getCell(11));
cb5.setFyje(new BigDecimal(fyje5));
//项目内容
String fyms5 = new DataFormatter().formatCellValue(row.getCell(12));
cb5.setFyms(fyms5);
list.add(cb5);
}
// if(list.size()>0){
// sjGfjsZsdwkhpjService.pledit(list);
......
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