1.数据报表导出cpu拉高问题修复

2.代客下单相关接口
This commit is contained in:
2024-08-13 14:39:32 +08:00
parent e53037232f
commit a7de11423f
8 changed files with 192 additions and 14 deletions

View File

@@ -257,6 +257,15 @@ public class RedisUtils {
}
}
public boolean setNx(String key, Object value) {
try {
return redisTemplate.opsForValue().setIfAbsent(key, value);
} catch (Exception e) {
log.error(e.getMessage(), e);
return false;
}
}
/**
* 普通缓存放入并设置时间
*