|
|
@ -43,6 +43,7 @@ import com.elink.esua.epdc.modules.archives.entity.ArchivesEntity; |
|
|
import com.elink.esua.epdc.modules.archives.excel.ArchivesExcel; |
|
|
import com.elink.esua.epdc.modules.archives.excel.ArchivesExcel; |
|
|
import com.elink.esua.epdc.modules.archives.redis.ArchivesRedis; |
|
|
import com.elink.esua.epdc.modules.archives.redis.ArchivesRedis; |
|
|
import com.elink.esua.epdc.modules.archives.service.ArchivesService; |
|
|
import com.elink.esua.epdc.modules.archives.service.ArchivesService; |
|
|
|
|
|
import com.elink.esua.epdc.modules.archivesdept.service.ArchivesDeptService; |
|
|
import com.elink.esua.epdc.modules.feign.AdminFeignClient; |
|
|
import com.elink.esua.epdc.modules.feign.AdminFeignClient; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
@ -71,6 +72,9 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
@Autowired |
|
|
@Autowired |
|
|
private AdminFeignClient adminFeignClient; |
|
|
private AdminFeignClient adminFeignClient; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private ArchivesDeptService archivesDeptService; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public PageData<ArchivesDTO> page(Map<String, Object> params) { |
|
|
public PageData<ArchivesDTO> page(Map<String, Object> params) { |
|
|
IPage<ArchivesEntity> page = baseDao.selectPage( |
|
|
IPage<ArchivesEntity> page = baseDao.selectPage( |
|
|
@ -87,8 +91,8 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
return ConvertUtils.sourceToTarget(entityList, ArchivesDTO.class); |
|
|
return ConvertUtils.sourceToTarget(entityList, ArchivesDTO.class); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private QueryWrapper<ArchivesEntity> getWrapper(Map<String, Object> params){ |
|
|
private QueryWrapper<ArchivesEntity> getWrapper(Map<String, Object> params) { |
|
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
|
|
String id = (String) params.get(FieldConstant.ID_HUMP); |
|
|
|
|
|
|
|
|
QueryWrapper<ArchivesEntity> wrapper = new QueryWrapper<>(); |
|
|
QueryWrapper<ArchivesEntity> wrapper = new QueryWrapper<>(); |
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|
|
@ -99,8 +103,8 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
@Override |
|
|
@Override |
|
|
public ArchivesDTO get(String id) { |
|
|
public ArchivesDTO get(String id) { |
|
|
ArchivesEntity entity = baseDao.selectById(id); |
|
|
ArchivesEntity entity = baseDao.selectById(id); |
|
|
ArchivesDTO archivesDTO = ConvertUtils.sourceToTarget(entity, ArchivesDTO.class); |
|
|
ArchivesDTO archivesDTO = ConvertUtils.sourceToTarget(entity, ArchivesDTO.class); |
|
|
if(archivesDTO.getAllDeptIds().indexOf(",")!=-1){ |
|
|
if (archivesDTO.getAllDeptIds().indexOf(",") != -1) { |
|
|
archivesDTO.setAllDeptIdsShow(Arrays.asList(entity.getAllDeptIds().split(","))); |
|
|
archivesDTO.setAllDeptIdsShow(Arrays.asList(entity.getAllDeptIds().split(","))); |
|
|
} |
|
|
} |
|
|
return archivesDTO; |
|
|
return archivesDTO; |
|
|
@ -110,19 +114,19 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void save(ArchivesDTO dto) { |
|
|
public void save(ArchivesDTO dto) { |
|
|
//获取部门信息
|
|
|
//获取部门信息
|
|
|
if(dto.getDeptId() == null){ |
|
|
if (dto.getDeptId() == null) { |
|
|
throw new RenException("归属部门不能为空"); |
|
|
throw new RenException("归属部门不能为空"); |
|
|
} |
|
|
} |
|
|
Result<ParentAndAllDeptDTO> parentAndAllDept = adminFeignClient.getParentAndAllDept(dto.getDeptId()); |
|
|
Result<ParentAndAllDeptDTO> parentAndAllDept = adminFeignClient.getParentAndAllDept(dto.getDeptId()); |
|
|
if(!parentAndAllDept.success() || parentAndAllDept.getData() == null){ |
|
|
if (!parentAndAllDept.success() || parentAndAllDept.getData() == null) { |
|
|
throw new RenException("获取归属部门信息失败"); |
|
|
throw new RenException("获取归属部门信息失败"); |
|
|
} |
|
|
} |
|
|
//判断档号
|
|
|
//判断档号
|
|
|
if(baseDao.getArchivesDTOByArchivesNum("",dto.getArchivesNum())){ |
|
|
if (baseDao.getArchivesDTOByArchivesNum("", dto.getArchivesNum())) { |
|
|
throw new RenException("档号不能重复"); |
|
|
throw new RenException("档号不能重复"); |
|
|
} |
|
|
} |
|
|
//判断日期
|
|
|
//判断日期
|
|
|
if(dto.getArchiveTime().length()!=4 && dto.getArchiveTime().length()!=6 && dto.getArchiveTime().length()!=8) { |
|
|
if (dto.getArchiveTime().length() != 4 && dto.getArchiveTime().length() != 6 && dto.getArchiveTime().length() != 8) { |
|
|
throw new RenException("日期格式错误"); |
|
|
throw new RenException("日期格式错误"); |
|
|
} |
|
|
} |
|
|
ParentAndAllDeptDTO parentAndAllDeptDTO = parentAndAllDept.getData(); |
|
|
ParentAndAllDeptDTO parentAndAllDeptDTO = parentAndAllDept.getData(); |
|
|
@ -133,25 +137,27 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
dto.setDept(parentAndAllDeptDTO.getGrid()); |
|
|
dto.setDept(parentAndAllDeptDTO.getGrid()); |
|
|
ArchivesEntity entity = ConvertUtils.sourceToTarget(dto, ArchivesEntity.class); |
|
|
ArchivesEntity entity = ConvertUtils.sourceToTarget(dto, ArchivesEntity.class); |
|
|
insert(entity); |
|
|
insert(entity); |
|
|
|
|
|
// 插入排序表
|
|
|
|
|
|
archivesDeptService.modifyArchives(dto.getDeptId(), dto.getDept()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void update(ArchivesDTO dto) { |
|
|
public void update(ArchivesDTO dto) { |
|
|
//获取部门信息
|
|
|
//获取部门信息
|
|
|
if(dto.getDeptId() == null){ |
|
|
if (dto.getDeptId() == null) { |
|
|
throw new RenException("归属部门不能为空"); |
|
|
throw new RenException("归属部门不能为空"); |
|
|
} |
|
|
} |
|
|
Result<ParentAndAllDeptDTO> parentAndAllDept = adminFeignClient.getParentAndAllDept(dto.getDeptId()); |
|
|
Result<ParentAndAllDeptDTO> parentAndAllDept = adminFeignClient.getParentAndAllDept(dto.getDeptId()); |
|
|
if(!parentAndAllDept.success() || parentAndAllDept.getData() == null){ |
|
|
if (!parentAndAllDept.success() || parentAndAllDept.getData() == null) { |
|
|
throw new RenException("获取归属部门信息失败"); |
|
|
throw new RenException("获取归属部门信息失败"); |
|
|
} |
|
|
} |
|
|
//判断档号
|
|
|
//判断档号
|
|
|
if(baseDao.getArchivesDTOByArchivesNum(dto.getId(),dto.getArchivesNum())){ |
|
|
if (baseDao.getArchivesDTOByArchivesNum(dto.getId(), dto.getArchivesNum())) { |
|
|
throw new RenException("档号不能重复"); |
|
|
throw new RenException("档号不能重复"); |
|
|
} |
|
|
} |
|
|
//判断日期
|
|
|
//判断日期
|
|
|
if(dto.getArchiveTime().length()!=4 && dto.getArchiveTime().length()!=6 && dto.getArchiveTime().length()!=8) { |
|
|
if (dto.getArchiveTime().length() != 4 && dto.getArchiveTime().length() != 6 && dto.getArchiveTime().length() != 8) { |
|
|
throw new RenException("日期格式错误"); |
|
|
throw new RenException("日期格式错误"); |
|
|
} |
|
|
} |
|
|
ParentAndAllDeptDTO parentAndAllDeptDTO = parentAndAllDept.getData(); |
|
|
ParentAndAllDeptDTO parentAndAllDeptDTO = parentAndAllDept.getData(); |
|
|
@ -162,6 +168,8 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
dto.setDept(parentAndAllDeptDTO.getGrid()); |
|
|
dto.setDept(parentAndAllDeptDTO.getGrid()); |
|
|
ArchivesEntity entity = ConvertUtils.sourceToTarget(dto, ArchivesEntity.class); |
|
|
ArchivesEntity entity = ConvertUtils.sourceToTarget(dto, ArchivesEntity.class); |
|
|
updateById(entity); |
|
|
updateById(entity); |
|
|
|
|
|
// 插入排序表
|
|
|
|
|
|
archivesDeptService.modifyArchives(dto.getDeptId(), dto.getDept()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -198,11 +206,11 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
@Override |
|
|
@Override |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public Result insertArchivesList(MultipartFile file, String deptId) { |
|
|
public Result insertArchivesList(MultipartFile file, String deptId) { |
|
|
if(StringUtils.isBlank(deptId)){ |
|
|
if (StringUtils.isBlank(deptId)) { |
|
|
throw new RenException("归属部门不能为空"); |
|
|
throw new RenException("归属部门不能为空"); |
|
|
} |
|
|
} |
|
|
Result<ParentAndAllDeptDTO> parentAndAllDept = adminFeignClient.getParentAndAllDept(Long.parseLong(deptId)); |
|
|
Result<ParentAndAllDeptDTO> parentAndAllDept = adminFeignClient.getParentAndAllDept(Long.parseLong(deptId)); |
|
|
if(!parentAndAllDept.success() || parentAndAllDept.getData() == null){ |
|
|
if (!parentAndAllDept.success() || parentAndAllDept.getData() == null) { |
|
|
throw new RenException("获取归属部门信息失败"); |
|
|
throw new RenException("获取归属部门信息失败"); |
|
|
} |
|
|
} |
|
|
ParentAndAllDeptDTO parentAndAllDeptDTO = parentAndAllDept.getData(); |
|
|
ParentAndAllDeptDTO parentAndAllDeptDTO = parentAndAllDept.getData(); |
|
|
@ -212,10 +220,10 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
List<ArchivesExcel> archivesExcelList = ExcelImportUtil.importExcel(f, ArchivesExcel.class, importParams); |
|
|
List<ArchivesExcel> archivesExcelList = ExcelImportUtil.importExcel(f, ArchivesExcel.class, importParams); |
|
|
// 校验数据
|
|
|
// 校验数据
|
|
|
List<EpdcArchivesErroyResultDTO> epdcArchivesErroyResultDTOS = this.checkExcel(archivesExcelList); |
|
|
List<EpdcArchivesErroyResultDTO> epdcArchivesErroyResultDTOS = this.checkExcel(archivesExcelList); |
|
|
if(epdcArchivesErroyResultDTOS.size()>0){ |
|
|
if (epdcArchivesErroyResultDTOS.size() > 0) { |
|
|
return new Result().ok(epdcArchivesErroyResultDTOS); |
|
|
return new Result().ok(epdcArchivesErroyResultDTOS); |
|
|
} |
|
|
} |
|
|
saveList(archivesExcelList,parentAndAllDeptDTO); |
|
|
saveList(archivesExcelList, parentAndAllDeptDTO); |
|
|
for (ArchivesExcel archivesExcel : archivesExcelList) { |
|
|
for (ArchivesExcel archivesExcel : archivesExcelList) { |
|
|
System.out.println("从Excel导入数据到数据库的详细为 :{}" + JSON.toJSONString(archivesExcel)); |
|
|
System.out.println("从Excel导入数据到数据库的详细为 :{}" + JSON.toJSONString(archivesExcel)); |
|
|
} |
|
|
} |
|
|
@ -231,7 +239,7 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
int pageIndex = (formDTO.getPageIndex() - NumConstant.ONE) * formDTO.getPageSize(); |
|
|
int pageIndex = (formDTO.getPageIndex() - NumConstant.ONE) * formDTO.getPageSize(); |
|
|
formDTO.setPageIndex(pageIndex); |
|
|
formDTO.setPageIndex(pageIndex); |
|
|
|
|
|
|
|
|
List<ArchiveDeptResultDTO> listArchiveDeptInfo = this.baseDao.selectListArchiveDeptInfo(formDTO); |
|
|
List<ArchiveDeptResultDTO> listArchiveDeptInfo = this.baseDao.selectListArchiveDeptInfo(formDTO); |
|
|
return new Result().ok(listArchiveDeptInfo); |
|
|
return new Result().ok(listArchiveDeptInfo); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -240,7 +248,7 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
int pageIndex = (formDTO.getPageIndex() - NumConstant.ONE) * formDTO.getPageSize(); |
|
|
int pageIndex = (formDTO.getPageIndex() - NumConstant.ONE) * formDTO.getPageSize(); |
|
|
formDTO.setPageIndex(pageIndex); |
|
|
formDTO.setPageIndex(pageIndex); |
|
|
|
|
|
|
|
|
List<ArchiveResultDTO> listArchiveInfo = this.baseDao.selectListArchiveInfo(formDTO); |
|
|
List<ArchiveResultDTO> listArchiveInfo = this.baseDao.selectListArchiveInfo(formDTO); |
|
|
return new Result().ok(listArchiveInfo); |
|
|
return new Result().ok(listArchiveInfo); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -258,10 +266,10 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
*/ |
|
|
*/ |
|
|
private void saveList(List<ArchivesExcel> partyList, ParentAndAllDeptDTO parentAndAllDeptDTO) { |
|
|
private void saveList(List<ArchivesExcel> partyList, ParentAndAllDeptDTO parentAndAllDeptDTO) { |
|
|
List<ArchivesEntity> archivesEntityList = new ArrayList<>(); |
|
|
List<ArchivesEntity> archivesEntityList = new ArrayList<>(); |
|
|
for(ArchivesExcel archivesExcel : partyList){ |
|
|
for (ArchivesExcel archivesExcel : partyList) { |
|
|
|
|
|
|
|
|
ArchivesEntity archivesEntity = ConvertUtils.sourceToTarget(archivesExcel, ArchivesEntity.class); |
|
|
ArchivesEntity archivesEntity = ConvertUtils.sourceToTarget(archivesExcel, ArchivesEntity.class); |
|
|
if(archivesExcel.getArchiveTime().length()!=4 && archivesExcel.getArchiveTime().length()!=6 && archivesExcel.getArchiveTime().length()!=8) { |
|
|
if (archivesExcel.getArchiveTime().length() != 4 && archivesExcel.getArchiveTime().length() != 6 && archivesExcel.getArchiveTime().length() != 8) { |
|
|
throw new RenException("日期格式错误"); |
|
|
throw new RenException("日期格式错误"); |
|
|
} |
|
|
} |
|
|
archivesEntity.setAllDeptIds(parentAndAllDeptDTO.getAllDeptIds()); |
|
|
archivesEntity.setAllDeptIds(parentAndAllDeptDTO.getAllDeptIds()); |
|
|
@ -273,6 +281,10 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
archivesEntityList.add(archivesEntity); |
|
|
archivesEntityList.add(archivesEntity); |
|
|
} |
|
|
} |
|
|
insertBatch(archivesEntityList); |
|
|
insertBatch(archivesEntityList); |
|
|
|
|
|
for (ArchivesEntity item : archivesEntityList) { |
|
|
|
|
|
// 插入排序表
|
|
|
|
|
|
archivesDeptService.modifyArchives(parentAndAllDeptDTO.getGridId(), parentAndAllDeptDTO.getGrid()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/*** |
|
|
/*** |
|
|
@ -283,7 +295,7 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
*/ |
|
|
*/ |
|
|
private List<EpdcArchivesErroyResultDTO> checkExcel(List<ArchivesExcel> archivesList) { |
|
|
private List<EpdcArchivesErroyResultDTO> checkExcel(List<ArchivesExcel> archivesList) { |
|
|
List<ArchivesEntity> archivesEntityList = baseDao.selectList(new QueryWrapper<ArchivesEntity>()); |
|
|
List<ArchivesEntity> archivesEntityList = baseDao.selectList(new QueryWrapper<ArchivesEntity>()); |
|
|
List<EpdcArchivesErroyResultDTO> errorLineinfoList=new ArrayList<>(); |
|
|
List<EpdcArchivesErroyResultDTO> errorLineinfoList = new ArrayList<>(); |
|
|
EpdcArchivesErroyResultDTO errorLineinfoDto; |
|
|
EpdcArchivesErroyResultDTO errorLineinfoDto; |
|
|
for (int i = 0; i < archivesList.size(); i++) { |
|
|
for (int i = 0; i < archivesList.size(); i++) { |
|
|
ArchivesExcel archivesExcel = archivesList.get(i); |
|
|
ArchivesExcel archivesExcel = archivesList.get(i); |
|
|
@ -296,47 +308,47 @@ public class ArchivesServiceImpl extends BaseServiceImpl<ArchivesDao, ArchivesEn |
|
|
//页数
|
|
|
//页数
|
|
|
Integer pageSize = archivesExcel.getPageSize(); |
|
|
Integer pageSize = archivesExcel.getPageSize(); |
|
|
//责任人
|
|
|
//责任人
|
|
|
String responsible=archivesExcel.getResponsible(); |
|
|
String responsible = archivesExcel.getResponsible(); |
|
|
if (StringUtils.isBlank(archivesNum)) { |
|
|
if (StringUtils.isBlank(archivesNum)) { |
|
|
errorLineinfoDto=new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto = new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto.setErroLine((i+2)+""); |
|
|
errorLineinfoDto.setErroLine((i + 2) + ""); |
|
|
errorLineinfoDto.setErrorInfo("档号为空"); |
|
|
errorLineinfoDto.setErrorInfo("档号为空"); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isBlank(responsible)) { |
|
|
if (StringUtils.isBlank(responsible)) { |
|
|
errorLineinfoDto=new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto = new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto.setErroLine((i+2)+""); |
|
|
errorLineinfoDto.setErroLine((i + 2) + ""); |
|
|
errorLineinfoDto.setErrorInfo("责任人为空"); |
|
|
errorLineinfoDto.setErrorInfo("责任人为空"); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isBlank(title)) { |
|
|
if (StringUtils.isBlank(title)) { |
|
|
errorLineinfoDto=new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto = new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto.setErroLine((i+2)+""); |
|
|
errorLineinfoDto.setErroLine((i + 2) + ""); |
|
|
errorLineinfoDto.setErrorInfo("题名为空"); |
|
|
errorLineinfoDto.setErrorInfo("题名为空"); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
} |
|
|
} |
|
|
if(StringUtils.isBlank(archiveTime)){ |
|
|
if (StringUtils.isBlank(archiveTime)) { |
|
|
errorLineinfoDto=new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto = new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto.setErroLine((i+2)+""); |
|
|
errorLineinfoDto.setErroLine((i + 2) + ""); |
|
|
errorLineinfoDto.setErrorInfo("日期为空"); |
|
|
errorLineinfoDto.setErrorInfo("日期为空"); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
} |
|
|
} |
|
|
if(StringUtils.isNotBlank(archiveTime) && archiveTime.length()!=4 && archiveTime.length()!=6 && archiveTime.length()!=8){ |
|
|
if (StringUtils.isNotBlank(archiveTime) && archiveTime.length() != 4 && archiveTime.length() != 6 && archiveTime.length() != 8) { |
|
|
errorLineinfoDto=new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto = new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto.setErroLine((i+2)+""); |
|
|
errorLineinfoDto.setErroLine((i + 2) + ""); |
|
|
errorLineinfoDto.setErrorInfo("日期格式不正确"); |
|
|
errorLineinfoDto.setErrorInfo("日期格式不正确"); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
} |
|
|
} |
|
|
if (pageSize == null) { |
|
|
if (pageSize == null) { |
|
|
errorLineinfoDto=new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto = new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto.setErroLine((i+2)+""); |
|
|
errorLineinfoDto.setErroLine((i + 2) + ""); |
|
|
errorLineinfoDto.setErrorInfo("页数为空"); |
|
|
errorLineinfoDto.setErrorInfo("页数为空"); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
} |
|
|
} |
|
|
for (ArchivesEntity item:archivesEntityList) { |
|
|
for (ArchivesEntity item : archivesEntityList) { |
|
|
if(StringUtils.isNotBlank(item.getArchivesNum())&&item.getArchivesNum().equals(archivesNum)){ |
|
|
if (StringUtils.isNotBlank(item.getArchivesNum()) && item.getArchivesNum().equals(archivesNum)) { |
|
|
errorLineinfoDto=new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto = new EpdcArchivesErroyResultDTO(); |
|
|
errorLineinfoDto.setErroLine((i+2)+""); |
|
|
errorLineinfoDto.setErroLine((i + 2) + ""); |
|
|
errorLineinfoDto.setErrorInfo("档号已存在"); |
|
|
errorLineinfoDto.setErrorInfo("档号已存在"); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
errorLineinfoList.add(errorLineinfoDto); |
|
|
} |
|
|
} |
|
|
|