zhaowenxuan
2025-02-15 d9006551fff47c172ea6a0672af7dd21df34f28f
ltkj-common/src/main/java/com/ltkj/common/utils/IdUtils.java
@@ -31,6 +31,7 @@
        String currentDate = new SimpleDateFormat("yyyyMMdd").format(new Date());
        String storedDate = stringRedisTemplate.opsForValue().get(LIS_CURRENT_DATE_KEY);
        String lastIdStr = stringRedisTemplate.opsForValue().get(LIS_LAST_ID_KEY);
        if (StrUtil.isBlank(lastIdStr))lastIdStr = "0";
        int lastId;
        if (storedDate == null || !storedDate.equals(currentDate)) {
            lastId = 1;