|
@@ -211,20 +211,24 @@ public class ImportInformation {
|
|
|
}
|
|
|
if (projectType.equals("配网建设改造项目")||projectType.equals("配网专项成本")){
|
|
|
Information inforById = informationService.findListById(projectId.toString());
|
|
|
- if (inforById.getFirstFinish() != null || inforById.getFirstFinish()!="") {
|
|
|
- information.setFirstFinish(inforById.getFirstFinish());
|
|
|
- }else{
|
|
|
+ if (inforById != null) {
|
|
|
+ if (inforById.getFirstFinish() != null || inforById.getFirstFinish() != "") {
|
|
|
+ information.setFirstFinish(inforById.getFirstFinish());
|
|
|
+ } else {
|
|
|
+ information.setFirstFinish(firstFinish);
|
|
|
+ }
|
|
|
+ if (inforById.getFirstFinishDate() != null) {
|
|
|
+ information.setFirstFinishDate(inforById.getFirstFinishDate());
|
|
|
+ }
|
|
|
+ if (inforById.getSecondFinish() != null || inforById.getSecondFinish() != "") {
|
|
|
+ information.setSecondFinish(inforById.getSecondFinish());
|
|
|
+ }
|
|
|
+ if (inforById.getSecondFinishDate() != null) {
|
|
|
+ information.setSecondFinishDate(inforById.getSecondFinishDate());
|
|
|
+ }
|
|
|
+ } else {
|
|
|
information.setFirstFinish(firstFinish);
|
|
|
}
|
|
|
- if (inforById.getFirstFinishDate() != null) {
|
|
|
- information.setFirstFinishDate(inforById.getFirstFinishDate());
|
|
|
- }
|
|
|
- if (inforById.getSecondFinish() != null || inforById.getSecondFinish()!="") {
|
|
|
- information.setSecondFinish(inforById.getSecondFinish());
|
|
|
- }
|
|
|
- if (inforById.getSecondFinishDate() != null) {
|
|
|
- information.setSecondFinishDate(inforById.getSecondFinishDate());
|
|
|
- }
|
|
|
Object projectGrade = ei.getCellValue(row, 4);
|
|
|
Object projectYear = ei.getCellValue(row, 6);
|
|
|
Object projectTotal = ei.getCellValue(row, 7);
|