Commit 13047edc authored by chenzhao's avatar chenzhao

存量合同新增

parent 4ca91033
......@@ -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()));
......@@ -1357,7 +1354,5 @@ public class PeasantHouseholdServiceImpl extends BaseService<PeasantHouseholdDto
.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