From 0e613a4e1b6da06bb7249af94b6e05d4303d5a74 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Wed, 20 Mar 2024 12:41:28 +0800 Subject: [PATCH] '123' --- ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RbTask.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RbTask.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RbTask.java index 4ded357..12305a0 100644 --- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RbTask.java +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RbTask.java @@ -53,9 +53,8 @@ public class RbTask */ public void tongb() throws Exception { - String jobId = scheduler.getSchedulerInstanceId(); String rbVersionUid = testUtils.sapTjService.selRbVersionUid();//红本调价记录uid - Boolean lock= redisLock.getLock(getJobKey(jobId), -1, rbVersionUid); + Boolean lock= redisLock.getLock(getJobKey("rbTask"), -1, rbVersionUid); if(lock){ //判断是否已执行调价 (6.3 redbook rb_productVersion 是否有新增uid and sta='1'、sdmdm1 调价日期今日的数据是否存在) String locVersionUid = testUtils.sapTjService.selLocVersionUid();//本地红本调价记录uid @@ -76,8 +75,8 @@ public class RbTask testUtils.sapTjService.updateLocRbVersion(rbVersionUid);//更新本地c_rb_version表 - redisCache.deleteObject(getJobKey(jobId)); } + redisCache.deleteObject(getJobKey("rbTask")); }catch (Exception e) { throw new Exception(e.getMessage(), e); }