|
|
@ -6,6 +6,7 @@ import com.github.pagehelper.PageInfo;
|
|
|
|
import com.glxp.api.annotation.AuthRuleAnnotation;
|
|
|
|
import com.glxp.api.annotation.AuthRuleAnnotation;
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
|
|
|
import com.glxp.api.entity.sync.BasicDownloadStatusEntity;
|
|
|
|
import com.glxp.api.entity.sync.BasicExportStatusEntity;
|
|
|
|
import com.glxp.api.entity.sync.BasicExportStatusEntity;
|
|
|
|
import com.glxp.api.entity.sync.BasicExportStatusTimeEntity;
|
|
|
|
import com.glxp.api.entity.sync.BasicExportStatusTimeEntity;
|
|
|
|
import com.glxp.api.http.sync.SpGetHttpClient;
|
|
|
|
import com.glxp.api.http.sync.SpGetHttpClient;
|
|
|
@ -13,10 +14,13 @@ import com.glxp.api.req.sync.BasicExportStatusRequest;
|
|
|
|
import com.glxp.api.req.sync.BasicExportTimeRequest;
|
|
|
|
import com.glxp.api.req.sync.BasicExportTimeRequest;
|
|
|
|
import com.glxp.api.req.system.DeleteRequest;
|
|
|
|
import com.glxp.api.req.system.DeleteRequest;
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
|
|
|
|
import com.glxp.api.service.sync.BasicDownloadService;
|
|
|
|
import com.glxp.api.service.sync.BasicExportService;
|
|
|
|
import com.glxp.api.service.sync.BasicExportService;
|
|
|
|
import com.glxp.api.service.sync.BasicExportTimeService;
|
|
|
|
import com.glxp.api.service.sync.BasicExportTimeService;
|
|
|
|
|
|
|
|
import com.glxp.api.util.BeanCopyUtils;
|
|
|
|
import com.glxp.api.util.RedisUtil;
|
|
|
|
import com.glxp.api.util.RedisUtil;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
@ -41,6 +45,8 @@ public class SpsSyncExportStatusController {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
BasicExportService basicExportService;
|
|
|
|
BasicExportService basicExportService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
BasicDownloadService basicDownloadService;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
BasicExportTimeService basicExportTimeService;
|
|
|
|
BasicExportTimeService basicExportTimeService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
RedisUtil redisUtil;
|
|
|
|
RedisUtil redisUtil;
|
|
|
@ -125,7 +131,14 @@ public class SpsSyncExportStatusController {
|
|
|
|
if (StrUtil.isBlank(deleteRequest.getId())) {
|
|
|
|
if (StrUtil.isBlank(deleteRequest.getId())) {
|
|
|
|
throw new RuntimeException("缺少唯一标识");
|
|
|
|
throw new RuntimeException("缺少唯一标识");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
BasicExportStatusEntity info = basicExportService.getById(deleteRequest.getId());
|
|
|
|
BasicExportStatusEntity info = new BasicExportStatusEntity();
|
|
|
|
|
|
|
|
if (deleteRequest.getDlType() != null && deleteRequest.getDlType() == 1) {
|
|
|
|
|
|
|
|
info = basicExportService.getById(deleteRequest.getId());
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
BasicDownloadStatusEntity basicDownloadStatusEntity = basicDownloadService.getById(deleteRequest.getId());
|
|
|
|
|
|
|
|
BeanUtils.copyProperties(basicDownloadStatusEntity, info);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (info == null) {
|
|
|
|
if (info == null) {
|
|
|
|
throw new RuntimeException("数据不存在");
|
|
|
|
throw new RuntimeException("数据不存在");
|
|
|
|
}
|
|
|
|
}
|
|
|
|