Commit 52b15b31 authored by chenzhao's avatar chenzhao

Merge remote-tracking branch 'origin/developer_bw' into developer_bw

parents 4bbf8e5d 13047edc
...@@ -1339,17 +1339,14 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto ...@@ -1339,17 +1339,14 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
} }
//更新并网信息 //更新并网信息
HygfOnGrid hygfOnGrid = surveyInfoAllDto.getHygfOnGrid(); HygfOnGrid hygfOnGrid = surveyInfoAllDto.getHygfOnGrid();
if(Objects.nonNull(hygfOnGrid)){
hygfOnGrid.setPeasantHouseholdId( peasantHousehold.getSequenceNbr()); hygfOnGrid.setPeasantHouseholdId( peasantHousehold.getSequenceNbr());
// 避免生成多份数据 // 避免生成多份数据
hygfOnGridService.saveOrUpdate(hygfOnGrid, new LambdaQueryWrapper<HygfOnGrid>() hygfOnGridService.saveOrUpdate(hygfOnGrid, new LambdaQueryWrapper<HygfOnGrid>()
.eq(HygfOnGrid::getPeasantHouseholdId, peasantHousehold.getSequenceNbr())); .eq(HygfOnGrid::getPeasantHouseholdId, peasantHousehold.getSequenceNbr()));
hygfOnGridService.saveOrUpdate(hygfOnGrid); hygfOnGridService.saveOrUpdate(hygfOnGrid);
}
//更新设计信息 //更新设计信息
DesignInformationDto designInformationDto = surveyInfoAllDto.getDesignInformation(); DesignInformationDto designInformationDto = surveyInfoAllDto.getDesignInformation();
if(Objects.nonNull(designInformationDto)){
DesignInformation designInformation = BeanDtoUtils.convert(designInformationDto, DesignInformation designInformation = BeanDtoUtils.convert(designInformationDto,
DesignInformation.class); DesignInformation.class);
designInformation.setPeasantHouseholdId(String.valueOf(peasantHousehold.getSequenceNbr())); designInformation.setPeasantHouseholdId(String.valueOf(peasantHousehold.getSequenceNbr()));
...@@ -1357,7 +1354,5 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto ...@@ -1357,7 +1354,5 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
.eq(DesignInformation::getPeasantHouseholdId, peasantHousehold.getSequenceNbr())); .eq(DesignInformation::getPeasantHouseholdId, peasantHousehold.getSequenceNbr()));
}
} }
} }
\ No newline at end of file
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