添加公司条件

This commit is contained in:
lvleigang 2024-10-23 15:01:18 +08:00
parent bdd278d786
commit 6be7091e2a
1 changed files with 6 additions and 4 deletions

View File

@ -148,6 +148,7 @@ public class AxServiceImpl extends BaseService<ArchivesEntity, String> implement
ArchivesEntity archivesEntity = new ArchivesEntity();
archivesEntity.setArchivesType(ass.getChecktypecode());
archivesEntity.setLeftCode(ass.getCheckvaluecode());
archivesEntity.setLeftOrg(voucher.getPk_corp());
List<ArchivesEntity> archivesEntities = axDao.queryArchivesData(archivesEntity);
if(archivesEntities != null && archivesEntities.size() > 0){
ass.setCheckvaluecode(archivesEntities.get(0).getRightCode());
@ -180,10 +181,11 @@ public class AxServiceImpl extends BaseService<ArchivesEntity, String> implement
ArchivesEntity archivesEntity = new ArchivesEntity();
archivesEntity.setArchivesType(ass.getChecktypecode());
archivesEntity.setLeftCode(ass.getCheckvaluecode());
//List<ArchivesEntity> archivesEntities = axDao.queryArchivesData(archivesEntity);
//if(archivesEntities != null && archivesEntities.size() > 0){
// ass.setCheckvaluecode(archivesEntities.get(0).getRightCode());
//}
archivesEntity.setLeftOrg(voucher.getPk_corp());
List<ArchivesEntity> archivesEntities = axDao.queryArchivesData(archivesEntity);
if(archivesEntities != null && archivesEntities.size() > 0){
ass.setCheckvaluecode(archivesEntities.get(0).getRightCode());
}
}
}
}