|
|
|
@ -158,7 +158,7 @@ public class DlAllDataService {
|
|
|
|
|
log.info("下载所有单据---");
|
|
|
|
|
BasicExportStatusRequest basicExportStatusRequest = new BasicExportStatusRequest();
|
|
|
|
|
basicExportStatusRequest.setIdDatas("AutoDownloadOrder");
|
|
|
|
|
basicExportStatusRequest.setStatus(0);
|
|
|
|
|
basicExportStatusRequest.setStatus(BasicExportStatusEnum.WAIT_BUILT.getCode());
|
|
|
|
|
basicExportStatusRequest.setType(BasicProcessStatus.NEW_ALL_ORDER);
|
|
|
|
|
basicExportStatusRequest.setScheduleType(BasicProcessStatus.SCHEDULE_NORMAL);
|
|
|
|
|
BaseResponse<List<BasicExportStatusEntity>> basicStatuss = spGetHttp.getBasicStatus(basicExportStatusRequest);
|
|
|
|
@ -300,7 +300,6 @@ public class DlAllDataService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void dlScheduleStatus() {
|
|
|
|
|
|
|
|
|
|
log.info("下载所有任务---");
|
|
|
|
@ -335,8 +334,8 @@ public class DlAllDataService {
|
|
|
|
|
log.info("下载所有国家库DI信息--");
|
|
|
|
|
BasicExportStatusRequest basicExportStatusRequest = new BasicExportStatusRequest();
|
|
|
|
|
basicExportStatusRequest.setIdDatas(ConstantStatus.SYNC_DI_PRODUCTS);
|
|
|
|
|
basicExportStatusRequest.setStatus(0);
|
|
|
|
|
basicExportStatusRequest.setType(BasicProcessStatus.NEW_ALL_UDIS);
|
|
|
|
|
basicExportStatusRequest.setStatus(BasicExportStatusEnum.WAIT_BUILT.getCode());
|
|
|
|
|
basicExportStatusRequest.setType(BasicExportTypeEnum.COUNTRY_DI_DATA.getRemark());
|
|
|
|
|
basicExportStatusRequest.setScheduleType(BasicProcessStatus.SCHEDULE_NORMAL);
|
|
|
|
|
BaseResponse<List<BasicExportStatusEntity>> basicStatuss = spGetHttp.getBasicStatus(basicExportStatusRequest);
|
|
|
|
|
if (CollUtil.isNotEmpty(basicStatuss.getData())) {
|
|
|
|
@ -366,14 +365,14 @@ public class DlAllDataService {
|
|
|
|
|
myEntity.setStatus(0);
|
|
|
|
|
myEntity.setIdDatas(ConstantStatus.SYNC_DI_PRODUCTS);
|
|
|
|
|
myEntity.setUpdateTime(new Date());
|
|
|
|
|
myEntity.setType(BasicProcessStatus.NEW_ALL_UDIS);
|
|
|
|
|
myEntity.setType(BasicExportTypeEnum.COUNTRY_DI_DATA.getRemark());
|
|
|
|
|
myEntity.setStartTime(DateUtil.getDateTime());
|
|
|
|
|
myEntity.setRemark("国家库DI信息:" + spSyncUdiResponse.getProductInfoEntityList().size() + " 条");
|
|
|
|
|
basicExportService.insertExportStatus(myEntity);
|
|
|
|
|
if (downstream.getParamValue().equals("1")) {
|
|
|
|
|
// String datas = JSON.toJSON(spSyncUdiResponse).toString();
|
|
|
|
|
// redisUtil.set(key, datas);
|
|
|
|
|
String fileName = filePath + "upload/" + BasicProcessStatus.NEW_ALL_UDIS + "-" + key + ".udi";
|
|
|
|
|
String fileName = filePath + "upload/" + BasicExportTypeEnum.COUNTRY_DI_DATA.getRemark() + "-" + key + ".udi";
|
|
|
|
|
String datas = JSON.toJSON(spSyncUdiResponse).toString();
|
|
|
|
|
FileUtils.SaveFileAs(datas, fileName);
|
|
|
|
|
|
|
|
|
|