1.保存代码

wms_pzh
x_z 3 years ago
parent a832339ea8
commit 918e77ba54

@ -746,6 +746,10 @@ public class DlBasicService {
* @return * @return
*/ */
public BaseResponse downloadNow(Integer type) { public BaseResponse downloadNow(Integer type) {
Object o = redisUtil.get(Constant.SPS_SYNC_DOWNLOAD_INFO);
if (null != o) {
return ResultVOUtils.error(500, "已存在下载任务,请等待下载完成!");
}
String downloadInfo = null; String downloadInfo = null;
if (null != type) { if (null != type) {
switch (type) { switch (type) {

@ -71,6 +71,8 @@ public class DownloadSpDataTask implements SchedulingConfigurer {
dlBasicService.dlAllUDI(); dlBasicService.dlAllUDI();
log.info("国家库数据下载完毕"); log.info("国家库数据下载完毕");
} }
//删除标记
redisUtil.del(Constant.SPS_SYNC_DOWNLOAD_INFO);
} }
} }
} }

Loading…
Cancel
Save