yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.qianwen.smartman.modules.mdc.utils;
 
import java.sql.Timestamp;
import com.qianwen.core.tool.utils.DateUtil;
import com.qianwen.core.tool.utils.Func;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/mdc/utils/ConvertUtils.class */
public final class ConvertUtils {
    private static final Integer DEFAULT_VALUE = 1;
 
    private ConvertUtils() {
        throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
    }
 
    public static String format(Timestamp ts) {
        if (Func.isNotEmpty(ts)) {
            return DateUtil.format(ts, "yyyy-MM-dd HH:mm:ss.SSS");
        }
        return null;
    }
 
    public static Integer defaultValue() {
        return DEFAULT_VALUE;
    }
}