增设枚举

master
wj 2 years ago
parent 932bb96b2f
commit 42d931d688

@ -19,7 +19,7 @@ public enum BasicExportTypeEnum {
/**
* DI
*/
// COUNTRY_DI_DATA("country_di_data", "国家库DI数据"),
COUNTRY_DI_DATA("country_di_data", "国家库DI数据"),
/**
*
@ -45,6 +45,11 @@ public enum BasicExportTypeEnum {
*
*/
SYS_SET_DATA("sys_set_data", "系统设置数据"),
/**
*
*/
IO_ORDER("io_order", "单据信息"),
;
@EnumValue
private String key;

@ -257,7 +257,16 @@ public class SpsSyncExportStatusController {
if (syncDataSetEntity.getSyncTime() == null) {
return ResultVOUtils.error(ResultEnum.NOT_NETWORK.getCode(), "缺少初始化数据");
}
spsSyncDownloadService.syncData(syncDataSetEntity, req.getExportType(), req.getSyncTime());
switch (req.getExportType()) {
case IO_ORDER:
spsSyncDownloadService.syncOrderTask();
break;
case COUNTRY_DI_DATA:
spsSyncDownloadService.syncDiProductsTask();
break;
default:
spsSyncDownloadService.syncData(syncDataSetEntity, req.getExportType(), req.getSyncTime());
}
return ResultVOUtils.success();
}

Loading…
Cancel
Save