Program: 39935
Project: 39935
Buggy source:
@Override public List<DeclarationEtcBO> declarationEtcBO(Long materialId,String textBookids,String realname,String position,String title,String orgName,String unitName,Integer positionType,Integer onlineProgress,Integer offlineProgress) throws CheckedServiceException, IllegalArgumentException, IllegalAccessException {
  List<DeclarationEtcBO> declarationEtcBOs=new ArrayList<>();
  Gson gson=new Gson();
  List<Long> bookIds=gson.fromJson(textBookids,new TypeToken<ArrayList<Long>>(){
  }
.getType());
  List<DeclarationOrDisplayVO> declarationOrDisplayVOs=declarationDao.getDeclarationOrDisplayVOByMaterialId(materialId,bookIds,realname,position,title,orgName,unitName,positionType,onlineProgress,offlineProgress);
  List<Long> decIds=new ArrayList<>();
  for (  DeclarationOrDisplayVO declarationOrDisplayVO : declarationOrDisplayVOs) {
    decIds.add(declarationOrDisplayVO.getId());
  }
  ArrayList<DecEduExp> decEduExps=(ArrayList<DecEduExp>)decEduExpDao.getListDecEduExpByDeclarationIds(decIds);
  ArrayList<DecWorkExp> decWorkExps=(ArrayList<DecWorkExp>)decWorkExpDao.getListDecWorkExpByDeclarationIds(decIds);
  ArrayList<DecTeachExp> decTeachExps=(ArrayList<DecTeachExp>)decTeachExpDao.getListDecTeachExpByDeclarationIds(decIds);
  ArrayList<DecAcade> decAcades=(ArrayList<DecAcade>)decAcadeDao.getListDecAcadeByDeclarationIds(decIds);
  ArrayList<DecAchievement> decAchievements=(ArrayList<DecAchievement>)decAchievementDao.getDecAchievementByDeclarationIds(decIds);
  ArrayList<DecLastPosition> decLastPositions=(ArrayList<DecLastPosition>)decLastPositionDao.getListDecLastPositionByDeclarationIds(decIds);
  ArrayList<DecCourseConstruction> decCourseConstructions=(ArrayList<DecCourseConstruction>)decCourseConstructionDao.getDecCourseConstructionByDeclarationIds(decIds);
  ArrayList<DecNationalPlan> decNationalPlans=(ArrayList<DecNationalPlan>)decNationalPlanDao.getListDecNationalPlanByDeclarationIds(decIds);
  ArrayList<DecTextbookPmph> decTextbookPmphs=(ArrayList<DecTextbookPmph>)decTextbookPmphDao.getListDecTextbookPmphByDeclarationIds(decIds);
  ArrayList<DecTextbook> decTextbooks=(ArrayList<DecTextbook>)decTextbookDao.getListDecTextbookByDeclarationIds(decIds);
  ArrayList<DecMoocDigital> decMoocDigitals=(ArrayList<DecMoocDigital>)decMoocDigitalDao.getDecMoocDigitalByDeclarationIds(decIds);
  ArrayList<DecResearch> decResearchs=(ArrayList<DecResearch>)decResearchDao.getListDecResearchByDeclarationIds(decIds);
  ArrayList<DecMonograph> decMonographList=(ArrayList<DecMonograph>)decMonographDao.getListDecMonographByDeclarationIds(decIds);
  ArrayList<DecPublishReward> decPublishRewardList=(ArrayList<DecPublishReward>)decPublishRewardDao.getListDecPublishRewardByDeclarationIds(decIds);
  ArrayList<DecSci> decSciList=(ArrayList<DecSci>)decSciDao.getListDecSciByDeclarationIds(decIds);
  ArrayList<DecClinicalReward> decClinicalRewardList=(ArrayList<DecClinicalReward>)decClinicalRewardDao.getListDecClinicalRewardByDeclarationIds(decIds);
  ArrayList<DecAcadeReward> decAcadeRewardList=(ArrayList<DecAcadeReward>)decAcadeRewardDao.getListDecAcadeRewardByDeclarationIds(decIds);
  ArrayList<DecExtensionVO> decExtensionVOs=(ArrayList<DecExtensionVO>)decExtensionDao.getListDecExtensionVOByDeclarationIds(decIds);
  ArrayList<DecIntention> decIntentions=(ArrayList<DecIntention>)decIntentionDao.getDecIntentionByDeclarationIds(decIds);
  for (  DeclarationOrDisplayVO declarationOrDisplayVO : declarationOrDisplayVOs) {
    String strOnlineProgress="String_Node_Str";
    String strOfflineProgress="String_Node_Str";
    String sex="String_Node_Str";
    String idtype="String_Node_Str";
    String degree="String_Node_Str";
switch (declarationOrDisplayVO.getIdtype()) {
case 0:
      idtype="String_Node_Str";
    break;
case 1:
  idtype="String_Node_Str";
break;
case 2:
idtype="String_Node_Str";
break;
default :
idtype="String_Node_Str";
break;
}
switch (declarationOrDisplayVO.getDegree()) {
case 0:
degree="String_Node_Str";
break;
case 1:
degree="String_Node_Str";
break;
case 2:
degree="String_Node_Str";
break;
case 3:
degree="String_Node_Str";
break;
case 4:
degree="String_Node_Str";
break;
default :
degree="String_Node_Str";
break;
}
switch (declarationOrDisplayVO.getOnlineProgress()) {
case 0:
strOnlineProgress="String_Node_Str";
break;
case 1:
strOnlineProgress="String_Node_Str";
break;
case 2:
strOnlineProgress="String_Node_Str";
break;
case 3:
strOnlineProgress="String_Node_Str";
break;
default :
strOnlineProgress="String_Node_Str";
break;
}
switch (declarationOrDisplayVO.getSex()) {
case 0:
sex="String_Node_Str";
break;
case 1:
sex="String_Node_Str";
break;
case 2:
sex="String_Node_Str";
break;
default :
sex="String_Node_Str";
break;
}
switch (declarationOrDisplayVO.getOfflineProgress()) {
case 0:
strOfflineProgress="String_Node_Str";
break;
case 1:
strOfflineProgress="String_Node_Str";
break;
case 2:
strOfflineProgress="String_Node_Str";
break;
default :
strOfflineProgress="String_Node_Str";
break;
}
String birthday="String_Node_Str";
if (null != declarationOrDisplayVO.getBirthday()) {
birthday=DateUtil.date2Str(declarationOrDisplayVO.getBirthday(),"String_Node_Str");
}
if (null == declarationOrDisplayVO.getPosition() || "String_Node_Str".equals(declarationOrDisplayVO.getPosition())) {
declarationOrDisplayVO.setPosition("String_Node_Str");
}
if (StringUtil.isEmpty(declarationOrDisplayVO.getTextbookName())) {
declarationOrDisplayVO.setTextbookName("String_Node_Str");
}
if (StringUtil.isEmpty(declarationOrDisplayVO.getPresetPosition())) {
declarationOrDisplayVO.setPresetPosition("String_Node_Str");
}
List<DecEduExp> decEduExp=new ArrayList<>();
for (DecEduExp exp : decEduExps) {
if (exp.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decEduExp.add(exp);
}
}
List<DecWorkExp> decWorkExp=new ArrayList<>();
for (DecWorkExp workExp : decWorkExps) {
if (workExp.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decWorkExp.add(workExp);
}
}
List<DecTeachExp> decTeachExp=new ArrayList<>();
for (DecTeachExp teachExp : decTeachExps) {
if (teachExp.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decTeachExp.add(teachExp);
}
}
List<DecAcade> decAcade=new ArrayList<>();
for (DecAcade acade : decAcades) {
if (acade.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decAcade.add(acade);
}
}
DecAchievement decAchievement=new DecAchievement();
for (DecAchievement achievement : decAchievements) {
if (achievement.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decAchievement=achievement;
}
}
List<DecLastPosition> decLastPosition=new ArrayList<>();
for (DecLastPosition lastPosition : decLastPositions) {
if (lastPosition.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decLastPosition.add(lastPosition);
}
}
List<DecCourseConstruction> decCourseConstruction=new ArrayList<>();
for (DecCourseConstruction construction : decCourseConstructions) {
if (construction.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decCourseConstruction.add(construction);
}
}
List<DecNationalPlan> decNationalPlan=new ArrayList<>();
for (DecNationalPlan plan : decNationalPlans) {
if (plan.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decNationalPlan.add(plan);
}
}
List<DecTextbookPmph> decTextbookPmph=new ArrayList<>();
for (DecTextbookPmph textbookPmph : decTextbookPmphs) {
if (textbookPmph.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decTextbookPmph.add(textbookPmph);
}
}
List<DecTextbook> decTextbook=new ArrayList<>();
for (DecTextbook textbook : decTextbooks) {
if (textbook.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decTextbook.add(textbook);
}
}
DecMoocDigital decMoocDigital=new DecMoocDigital();
for (DecMoocDigital moocDigital : decMoocDigitals) {
if (moocDigital.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decMoocDigital=moocDigital;
}
}
List<DecResearch> decResearch=new ArrayList<>();
for (DecResearch research : decResearchs) {
if (research.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decResearch.add(research);
}
}
List<DecMonograph> monographs=new ArrayList<>();
for (DecMonograph monograph : decMonographList) {
if (monograph.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
monographs.add(monograph);
}
}
List<DecPublishReward> publishRewards=new ArrayList<>();
for (DecPublishReward publishReward : decPublishRewardList) {
if (publishReward.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
publishRewards.add(publishReward);
}
}
List<DecSci> scis=new ArrayList<>();
for (DecSci sci : decSciList) {
if (sci.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
scis.add(sci);
}
}
List<DecClinicalReward> clinicalRewards=new ArrayList<>();
for (DecClinicalReward clinicalReward : decClinicalRewardList) {
if (clinicalReward.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
clinicalRewards.add(clinicalReward);
}
}
List<DecAcadeReward> acadeRewards=new ArrayList<>();
for (DecAcadeReward acadeReward : decAcadeRewardList) {
if (acadeReward.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
acadeRewards.add(acadeReward);
}
}
List<DecExtensionVO> extensionVOs=new ArrayList<>();
for (DecExtensionVO extensionVO : decExtensionVOs) {
if (extensionVO.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
extensionVOs.add(extensionVO);
}
}
DecIntention decIntention=new DecIntention();
for (DecIntention intention : decIntentions) {
if (intention.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decIntention=intention;
}
}
DeclarationEtcBO declarationEtcBO=new DeclarationEtcBO(declarationOrDisplayVO.getTextbookName(),declarationOrDisplayVO.getPresetPosition(),declarationOrDisplayVO.getRealname(),declarationOrDisplayVO.getUsername(),sex,birthday,declarationOrDisplayVO.getExperience(),declarationOrDisplayVO.getOrgName(),declarationOrDisplayVO.getPosition(),declarationOrDisplayVO.getTitle(),declarationOrDisplayVO.getAddress(),declarationOrDisplayVO.getPostcode(),declarationOrDisplayVO.getTelephone(),declarationOrDisplayVO.getFax(),declarationOrDisplayVO.getHandphone(),degree,declarationOrDisplayVO.getEmail(),idtype,declarationOrDisplayVO.getIdcard(),declarationOrDisplayVO.getExpertise(),declarationOrDisplayVO.getIsDispensed(),declarationOrDisplayVO.getIsUtec(),strOnlineProgress,strOfflineProgress,declarationOrDisplayVO.getOrgNameOne(),(ArrayList<DecEduExp>)decEduExp,(ArrayList<DecWorkExp>)decWorkExp,(ArrayList<DecTeachExp>)decTeachExp,decAchievement,(ArrayList<DecAcade>)decAcade,(ArrayList<DecLastPosition>)decLastPosition,(ArrayList<DecCourseConstruction>)decCourseConstruction,(ArrayList<DecNationalPlan>)decNationalPlan,(ArrayList<DecTextbookPmph>)decTextbookPmph,decMoocDigital,(ArrayList<DecTextbook>)decTextbook,(ArrayList<DecResearch>)decResearch,(ArrayList<DecMonograph>)monographs,(ArrayList<DecPublishReward>)publishRewards,(ArrayList<DecSci>)scis,(ArrayList<DecClinicalReward>)clinicalRewards,(ArrayList<DecAcadeReward>)acadeRewards,(ArrayList<DecExtensionVO>)extensionVOs,decIntention);
declarationEtcBOs.add(declarationEtcBO);
}
return declarationEtcBOs;
}

Fixed version (ground truth):
@Override public List<DeclarationEtcBO> declarationEtcBO(Long materialId,String textBookids,String realname,String position,String title,String orgName,String unitName,Integer positionType,Integer onlineProgress,Integer offlineProgress) throws CheckedServiceException, IllegalArgumentException, IllegalAccessException {
  List<DeclarationEtcBO> declarationEtcBOs=new ArrayList<>();
  Gson gson=new Gson();
  List<Long> bookIds=gson.fromJson(textBookids,new TypeToken<ArrayList<Long>>(){
  }
.getType());
  List<DeclarationOrDisplayVO> declarationOrDisplayVOs=declarationDao.getDeclarationOrDisplayVOByMaterialId(materialId,bookIds,realname,position,title,orgName,unitName,positionType,onlineProgress,offlineProgress);
  List<Long> decIds=new ArrayList<>();
  for (  DeclarationOrDisplayVO declarationOrDisplayVO : declarationOrDisplayVOs) {
    decIds.add(declarationOrDisplayVO.getId());
  }
  ArrayList<DecEduExp> decEduExps=(ArrayList<DecEduExp>)decEduExpDao.getListDecEduExpByDeclarationIds(decIds);
  ArrayList<DecWorkExp> decWorkExps=(ArrayList<DecWorkExp>)decWorkExpDao.getListDecWorkExpByDeclarationIds(decIds);
  ArrayList<DecTeachExp> decTeachExps=(ArrayList<DecTeachExp>)decTeachExpDao.getListDecTeachExpByDeclarationIds(decIds);
  ArrayList<DecAcade> decAcades=(ArrayList<DecAcade>)decAcadeDao.getListDecAcadeByDeclarationIds(decIds);
  ArrayList<DecAchievement> decAchievements=(ArrayList<DecAchievement>)decAchievementDao.getDecAchievementByDeclarationIds(decIds);
  ArrayList<DecLastPosition> decLastPositions=(ArrayList<DecLastPosition>)decLastPositionDao.getListDecLastPositionByDeclarationIds(decIds);
  ArrayList<DecCourseConstruction> decCourseConstructions=(ArrayList<DecCourseConstruction>)decCourseConstructionDao.getDecCourseConstructionByDeclarationIds(decIds);
  ArrayList<DecNationalPlan> decNationalPlans=(ArrayList<DecNationalPlan>)decNationalPlanDao.getListDecNationalPlanByDeclarationIds(decIds);
  ArrayList<DecTextbookPmph> decTextbookPmphs=(ArrayList<DecTextbookPmph>)decTextbookPmphDao.getListDecTextbookPmphByDeclarationIds(decIds);
  ArrayList<DecTextbook> decTextbooks=(ArrayList<DecTextbook>)decTextbookDao.getListDecTextbookByDeclarationIds(decIds);
  ArrayList<DecMoocDigital> decMoocDigitals=(ArrayList<DecMoocDigital>)decMoocDigitalDao.getDecMoocDigitalByDeclarationIds(decIds);
  ArrayList<DecResearch> decResearchs=(ArrayList<DecResearch>)decResearchDao.getListDecResearchByDeclarationIds(decIds);
  ArrayList<DecMonograph> decMonographList=(ArrayList<DecMonograph>)decMonographDao.getListDecMonographByDeclarationIds(decIds);
  ArrayList<DecPublishReward> decPublishRewardList=(ArrayList<DecPublishReward>)decPublishRewardDao.getListDecPublishRewardByDeclarationIds(decIds);
  ArrayList<DecSci> decSciList=(ArrayList<DecSci>)decSciDao.getListDecSciByDeclarationIds(decIds);
  ArrayList<DecClinicalReward> decClinicalRewardList=(ArrayList<DecClinicalReward>)decClinicalRewardDao.getListDecClinicalRewardByDeclarationIds(decIds);
  ArrayList<DecAcadeReward> decAcadeRewardList=(ArrayList<DecAcadeReward>)decAcadeRewardDao.getListDecAcadeRewardByDeclarationIds(decIds);
  ArrayList<DecExtensionVO> decExtensionVOs=(ArrayList<DecExtensionVO>)decExtensionDao.getListDecExtensionVOByDeclarationIds(decIds);
  ArrayList<DecIntention> decIntentions=(ArrayList<DecIntention>)decIntentionDao.getDecIntentionByDeclarationIds(decIds);
  for (  DeclarationOrDisplayVO declarationOrDisplayVO : declarationOrDisplayVOs) {
    String strOnlineProgress="String_Node_Str";
    String strOfflineProgress="String_Node_Str";
    String sex="String_Node_Str";
    String idtype="String_Node_Str";
    String degree="String_Node_Str";
switch (declarationOrDisplayVO.getIdtype()) {
case 0:
      idtype="String_Node_Str";
    break;
case 1:
  idtype="String_Node_Str";
break;
case 2:
idtype="String_Node_Str";
break;
default :
idtype="String_Node_Str";
break;
}
switch (declarationOrDisplayVO.getDegree()) {
case 0:
degree="String_Node_Str";
break;
case 1:
degree="String_Node_Str";
break;
case 2:
degree="String_Node_Str";
break;
case 3:
degree="String_Node_Str";
break;
case 4:
degree="String_Node_Str";
break;
default :
degree="String_Node_Str";
break;
}
switch (declarationOrDisplayVO.getOnlineProgress()) {
case 0:
strOnlineProgress="String_Node_Str";
break;
case 1:
strOnlineProgress="String_Node_Str";
break;
case 2:
strOnlineProgress="String_Node_Str";
break;
case 3:
strOnlineProgress="String_Node_Str";
break;
default :
strOnlineProgress="String_Node_Str";
break;
}
switch (declarationOrDisplayVO.getSex()) {
case 0:
sex="String_Node_Str";
break;
case 1:
sex="String_Node_Str";
break;
case 2:
sex="String_Node_Str";
break;
default :
sex="String_Node_Str";
break;
}
switch (declarationOrDisplayVO.getOfflineProgress()) {
case 0:
strOfflineProgress="String_Node_Str";
break;
case 1:
strOfflineProgress="String_Node_Str";
break;
case 2:
strOfflineProgress="String_Node_Str";
break;
default :
strOfflineProgress="String_Node_Str";
break;
}
String birthday="String_Node_Str";
if (null != declarationOrDisplayVO.getBirthday()) {
birthday=DateUtil.date2Str(declarationOrDisplayVO.getBirthday(),"String_Node_Str");
}
if (null == declarationOrDisplayVO.getPosition() || "String_Node_Str".equals(declarationOrDisplayVO.getPosition())) {
declarationOrDisplayVO.setPosition("String_Node_Str");
}
if (StringUtil.isEmpty(declarationOrDisplayVO.getTextbookName())) {
declarationOrDisplayVO.setTextbookName("String_Node_Str");
}
if (StringUtil.isEmpty(declarationOrDisplayVO.getPresetPosition())) {
declarationOrDisplayVO.setPresetPosition("String_Node_Str");
}
List<DecEduExp> decEduExp=new ArrayList<>();
for (DecEduExp exp : decEduExps) {
if (exp.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decEduExp.add(exp);
}
}
List<DecWorkExp> decWorkExp=new ArrayList<>();
for (DecWorkExp workExp : decWorkExps) {
if (workExp.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decWorkExp.add(workExp);
}
}
List<DecTeachExp> decTeachExp=new ArrayList<>();
for (DecTeachExp teachExp : decTeachExps) {
if (teachExp.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decTeachExp.add(teachExp);
}
}
List<DecAcade> decAcade=new ArrayList<>();
for (DecAcade acade : decAcades) {
if (acade.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decAcade.add(acade);
}
}
DecAchievement decAchievement=new DecAchievement();
for (DecAchievement achievement : decAchievements) {
if (achievement.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decAchievement=achievement;
break;
}
}
List<DecLastPosition> decLastPosition=new ArrayList<>();
for (DecLastPosition lastPosition : decLastPositions) {
if (lastPosition.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decLastPosition.add(lastPosition);
}
}
List<DecCourseConstruction> decCourseConstruction=new ArrayList<>();
for (DecCourseConstruction construction : decCourseConstructions) {
if (construction.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decCourseConstruction.add(construction);
}
}
List<DecNationalPlan> decNationalPlan=new ArrayList<>();
for (DecNationalPlan plan : decNationalPlans) {
if (plan.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decNationalPlan.add(plan);
}
}
List<DecTextbookPmph> decTextbookPmph=new ArrayList<>();
for (DecTextbookPmph textbookPmph : decTextbookPmphs) {
if (textbookPmph.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decTextbookPmph.add(textbookPmph);
}
}
List<DecTextbook> decTextbook=new ArrayList<>();
for (DecTextbook textbook : decTextbooks) {
if (textbook.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decTextbook.add(textbook);
}
}
DecMoocDigital decMoocDigital=new DecMoocDigital();
for (DecMoocDigital moocDigital : decMoocDigitals) {
if (moocDigital.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decMoocDigital=moocDigital;
break;
}
}
List<DecResearch> decResearch=new ArrayList<>();
for (DecResearch research : decResearchs) {
if (research.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decResearch.add(research);
}
}
List<DecMonograph> monographs=new ArrayList<>();
for (DecMonograph monograph : decMonographList) {
if (monograph.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
monographs.add(monograph);
}
}
List<DecPublishReward> publishRewards=new ArrayList<>();
for (DecPublishReward publishReward : decPublishRewardList) {
if (publishReward.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
publishRewards.add(publishReward);
}
}
List<DecSci> scis=new ArrayList<>();
for (DecSci sci : decSciList) {
if (sci.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
scis.add(sci);
}
}
List<DecClinicalReward> clinicalRewards=new ArrayList<>();
for (DecClinicalReward clinicalReward : decClinicalRewardList) {
if (clinicalReward.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
clinicalRewards.add(clinicalReward);
}
}
List<DecAcadeReward> acadeRewards=new ArrayList<>();
for (DecAcadeReward acadeReward : decAcadeRewardList) {
if (acadeReward.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
acadeRewards.add(acadeReward);
}
}
DecIntention decIntention=new DecIntention();
for (DecIntention intention : decIntentions) {
if (intention.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
decIntention=intention;
break;
}
}
List<DecExtensionVO> extensionVOs=new ArrayList<>();
for (DecExtensionVO extensionVO : decExtensionVOs) {
if (extensionVO.getDeclarationId().equals(declarationOrDisplayVO.getId())) {
extensionVOs.add(extensionVO);
}
}
DeclarationEtcBO declarationEtcBO=new DeclarationEtcBO(declarationOrDisplayVO.getTextbookName(),declarationOrDisplayVO.getPresetPosition(),declarationOrDisplayVO.getRealname(),declarationOrDisplayVO.getUsername(),sex,birthday,declarationOrDisplayVO.getExperience(),declarationOrDisplayVO.getOrgName(),declarationOrDisplayVO.getPosition(),declarationOrDisplayVO.getTitle(),declarationOrDisplayVO.getAddress(),declarationOrDisplayVO.getPostcode(),declarationOrDisplayVO.getTelephone(),declarationOrDisplayVO.getFax(),declarationOrDisplayVO.getHandphone(),degree,declarationOrDisplayVO.getEmail(),idtype,declarationOrDisplayVO.getIdcard(),declarationOrDisplayVO.getExpertise(),declarationOrDisplayVO.getIsDispensed(),declarationOrDisplayVO.getIsUtec(),strOnlineProgress,strOfflineProgress,declarationOrDisplayVO.getOrgNameOne(),(ArrayList<DecEduExp>)decEduExp,(ArrayList<DecWorkExp>)decWorkExp,(ArrayList<DecTeachExp>)decTeachExp,decAchievement,(ArrayList<DecAcade>)decAcade,(ArrayList<DecLastPosition>)decLastPosition,(ArrayList<DecCourseConstruction>)decCourseConstruction,(ArrayList<DecNationalPlan>)decNationalPlan,(ArrayList<DecTextbookPmph>)decTextbookPmph,decMoocDigital,(ArrayList<DecTextbook>)decTextbook,(ArrayList<DecResearch>)decResearch,(ArrayList<DecMonograph>)monographs,(ArrayList<DecPublishReward>)publishRewards,(ArrayList<DecSci>)scis,(ArrayList<DecClinicalReward>)clinicalRewards,(ArrayList<DecAcadeReward>)acadeRewards,(ArrayList<DecExtensionVO>)extensionVOs,decIntention);
declarationEtcBOs.add(declarationEtcBO);
}
return declarationEtcBOs;
}