Commit 51f7e180 by zhangxingmin

push

parent bee5ff89
...@@ -87,7 +87,7 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService ...@@ -87,7 +87,7 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
String value = redisUtil.getCacheObject(RedisConstants.EXPECTED_FORTUNE + request.getPolicyNo()); String value = redisUtil.getCacheObject(RedisConstants.EXPECTED_FORTUNE + request.getPolicyNo());
if (StringUtil.isNotBlank(value)) { if (StringUtil.isNotBlank(value)) {
//有值正在执行,提示 //有值正在执行,提示
throw new BusinessException("生成预计发佣正在执行中,无需再次执行"); return Result.fail("生成预计发佣正在执行中,无需再次执行");
}else { }else {
//无值设置值,表示正在执行 //无值设置值,表示正在执行
redisUtil.setCacheObject(RedisConstants.EXPECTED_FORTUNE + request.getPolicyNo(),request.getPolicyNo()); redisUtil.setCacheObject(RedisConstants.EXPECTED_FORTUNE + request.getPolicyNo(),request.getPolicyNo());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment