Преглед на файлове

延长重复累加问题redis时间为30分钟

shuiqilin
zhangxin преди 1 година
родител
ревизия
97ecbaae73
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      src/main/java/com/qtzl/alterSales/manager/service/AflPaccountRefundCountServiceImpl.java

+ 2
- 2
src/main/java/com/qtzl/alterSales/manager/service/AflPaccountRefundCountServiceImpl.java Целия файл

@@ -147,10 +147,10 @@ public class AflPaccountRefundCountServiceImpl implements AflPaccountRefundCount
String redisKey=COUNT_KEY+fssPaccountPay.getPayId();
final Object redisData = redisUtils.get(redisKey);
if (!ObjectUtil.isEmpty(redisData)) {
log.error("该数据已存在60秒内处理中,请勿重复处理 ,payId="+fssPaccountPay.getPayId());
log.error("该数据已存在30分钟内处理中,请勿重复处理 ,payId="+fssPaccountPay.getPayId());
return;
}else {
redisUtils.set(redisKey,JSON.toJSONString(fssPaccountPay),60);
redisUtils.set(redisKey,JSON.toJSONString(fssPaccountPay),1900);
}
} catch (Exception e) {
log.error("保存redis信息错误,fssPaccountPay ={},{}",JSON.toJSONString(fssPaccountPay),e.getMessage());

Loading…
Отказ
Запис