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
}
//更新并网信息
HygfOnGrid hygfOnGrid = surveyInfoAllDto.getHygfOnGrid();
if(Objects.nonNull(hygfOnGrid)){
hygfOnGrid.setPeasantHouseholdId( peasantHousehold.getSequenceNbr());
// 避免生成多份数据
hygfOnGridService.saveOrUpdate(hygfOnGrid, new LambdaQueryWrapper<HygfOnGrid>()
.eq(HygfOnGrid::getPeasantHouseholdId, peasantHousehold.getSequenceNbr()));
hygfOnGridService.saveOrUpdate(hygfOnGrid);
}
//更新设计信息
DesignInformationDto designInformationDto = surveyInfoAllDto.getDesignInformation();
if(Objects.nonNull(designInformationDto)){
DesignInformation designInformation = BeanDtoUtils.convert(designInformationDto,
DesignInformation.class);
designInformation.setPeasantHouseholdId(String.valueOf(peasantHousehold.getSequenceNbr()));
......@@ -1358,6 +1355,4 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
}
}
}
\ 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