开发OTA备案工具-导入导出
This commit is contained in:
+2
@@ -239,6 +239,7 @@ public class OtaBaCxAqcsServiceImpl extends ServiceImpl<OtaBaCxAqcsMapper, OtaBa
|
|||||||
@Override
|
@Override
|
||||||
public void exportData(File file, File attFile, String otaId, String cut) throws Exception {
|
public void exportData(File file, File attFile, String otaId, String cut) throws Exception {
|
||||||
OtaBaCxAqcs aqcs = getByOtaId(otaId);
|
OtaBaCxAqcs aqcs = getByOtaId(otaId);
|
||||||
|
if (ObjectUtils.isNotEmpty(aqcs)) {
|
||||||
Workbook wb = ImportFileUtil.readExcel(file);
|
Workbook wb = ImportFileUtil.readExcel(file);
|
||||||
Sheet s = wb.getSheetAt(0);
|
Sheet s = wb.getSheetAt(0);
|
||||||
|
|
||||||
@@ -280,4 +281,5 @@ public class OtaBaCxAqcsServiceImpl extends ServiceImpl<OtaBaCxAqcsMapper, OtaBa
|
|||||||
}
|
}
|
||||||
cell.setCellValue(sb.toString());
|
cell.setCellValue(sb.toString());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -239,6 +239,7 @@ public class OtaBaCxJbxxServiceImpl extends ServiceImpl<OtaBaCxJbxxMapper, OtaBa
|
|||||||
@Override
|
@Override
|
||||||
public void exportData(File file, String otaId, String cut) throws Exception {
|
public void exportData(File file, String otaId, String cut) throws Exception {
|
||||||
OtaBaCxJbxx jbxx = this.getByOtaId(otaId);
|
OtaBaCxJbxx jbxx = this.getByOtaId(otaId);
|
||||||
|
if (ObjectUtils.isNotEmpty(jbxx)) {
|
||||||
Workbook wb = ImportFileUtil.readExcel(file);
|
Workbook wb = ImportFileUtil.readExcel(file);
|
||||||
Sheet s = wb.getSheetAt(0);
|
Sheet s = wb.getSheetAt(0);
|
||||||
|
|
||||||
@@ -280,4 +281,5 @@ public class OtaBaCxJbxxServiceImpl extends ServiceImpl<OtaBaCxJbxxMapper, OtaBa
|
|||||||
wb.write(new FileOutputStream(file));
|
wb.write(new FileOutputStream(file));
|
||||||
wb.close();
|
wb.close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -583,6 +583,7 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
@Override
|
@Override
|
||||||
public void exportData(File file, String otaId, String cut) throws Exception {
|
public void exportData(File file, String otaId, String cut) throws Exception {
|
||||||
OtaBaCxJsfzbacs bass = getByOtaId(otaId);
|
OtaBaCxJsfzbacs bass = getByOtaId(otaId);
|
||||||
|
if (ObjectUtils.isNotEmpty(bass)) {
|
||||||
Workbook wb = ImportFileUtil.readExcel(file);
|
Workbook wb = ImportFileUtil.readExcel(file);
|
||||||
Sheet s = wb.getSheetAt(0);
|
Sheet s = wb.getSheetAt(0);
|
||||||
bass.setOtaId(otaId);
|
bass.setOtaId(otaId);
|
||||||
@@ -859,6 +860,6 @@ public class OtaBaCxJsfzbacsServiceImpl extends ServiceImpl<OtaBaCxJsfzbacsMappe
|
|||||||
cell.setCellValue(sjmk.getBzwz());
|
cell.setCellValue(sjmk.getBzwz());
|
||||||
startRow++;
|
startRow++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
@@ -365,6 +365,9 @@ public class OtaBaCxKsjxtmccsServiceImpl extends ServiceImpl<OtaBaCxKsjxtmccsMap
|
|||||||
startRow++;
|
startRow++;
|
||||||
}
|
}
|
||||||
Row row = s.getRow(startRow);
|
Row row = s.getRow(startRow);
|
||||||
|
if(null == row){
|
||||||
|
row = s.createRow(startRow);
|
||||||
|
}
|
||||||
Cell cell = row.createCell(0);
|
Cell cell = row.createCell(0);
|
||||||
cell.setCellValue("证明材料");
|
cell.setCellValue("证明材料");
|
||||||
cell = row.getCell(1);
|
cell = row.getCell(1);
|
||||||
|
|||||||
+2
@@ -258,6 +258,7 @@ public class OtaBaCxZxsjyqServiceImpl extends ServiceImpl<OtaBaCxZxsjyqMapper, O
|
|||||||
@Override
|
@Override
|
||||||
public void exportData(File file, File attFile, String otaId, String cut) throws Exception {
|
public void exportData(File file, File attFile, String otaId, String cut) throws Exception {
|
||||||
OtaBaCxZxsjyq otaBaCxZxsjyq = this.getByOtaId(otaId);
|
OtaBaCxZxsjyq otaBaCxZxsjyq = this.getByOtaId(otaId);
|
||||||
|
if (ObjectUtils.isNotEmpty(otaBaCxZxsjyq)) {
|
||||||
Workbook wb = ImportFileUtil.readExcel(file);
|
Workbook wb = ImportFileUtil.readExcel(file);
|
||||||
Sheet s = wb.getSheetAt(0);
|
Sheet s = wb.getSheetAt(0);
|
||||||
Row row = s.getRow(2);
|
Row row = s.getRow(2);
|
||||||
@@ -312,4 +313,5 @@ public class OtaBaCxZxsjyqServiceImpl extends ServiceImpl<OtaBaCxZxsjyqMapper, O
|
|||||||
}
|
}
|
||||||
cell.setCellValue(sb.toString());
|
cell.setCellValue(sb.toString());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user