package com.fzzy.push.gd2020;
|
|
import org.apache.commons.lang.time.DateFormatUtils;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
/**
|
* @Desc:
|
* @author: andy.jia
|
* @update-time: 2022/10/10 21:48
|
*/
|
public class GDUtils {
|
|
|
public static String formatStr(String str) {
|
return null == str ? "" : str;
|
}
|
|
public static String formatDate(Date date, String format) {
|
if (null == date) return "";
|
|
return DateFormatUtils.format(date, format);
|
}
|
|
public static String formatNum(Double num) {
|
return null == num ? "" : num + "";
|
}
|
|
public static String formatNum(BigDecimal num) {
|
return null == num ? "" : num + "";
|
}
|
|
public static String formatNum(Integer num) {
|
return null == num ? "" : num + "";
|
}
|
|
}
|