|
@@ -379,8 +379,8 @@ public class TaskController extends BladeController {
|
|
|
List<ArchiveFile> archiveFiles = jdbcTemplate.query("select * from u_archive_file where id in (" + archiveTaskBatchReportDTO.getDataIds() + ")", new BeanPropertyRowMapper<>(ArchiveFile.class));
|
|
|
if (archiveFiles.size() > 0) {
|
|
|
for (ArchiveFile archive : archiveFiles) {
|
|
|
- if (!archive.getStatus().equals(0) || !archive.getStatus().equals(3)) {
|
|
|
- throw new ServiceException("只有【未上报】状态的业务数据才能上报!");
|
|
|
+ if (Arrays.asList(1, 2).contains(archive.getStatus())) {
|
|
|
+ throw new ServiceException("只有【未上报 或 已废除】状态的业务数据才能上报!");
|
|
|
}
|
|
|
if (!archive.getIsCertification().equals(0)) {
|
|
|
throw new ServiceException("只有【未认证】状态的业务数据才能上报!");
|