package com.njcn.gather.steady.checksquare.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.UUID;

/**
 * 数据校验编号工具。
 */
public final class SteadyChecksquareIdUtil {

    private static final DateTimeFormatter TASK_FORMATTER = DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS");

    private SteadyChecksquareIdUtil() {
    }

    public static String uuid() {
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static String taskNo() {
        return "CS" + LocalDateTime.now().format(TASK_FORMATTER);
    }
}
