This commit is contained in:
xd 2024-03-20 12:41:28 +08:00
parent a2e44acd72
commit 0e613a4e1b
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}