1.2.3 后台操作按钮调整及其新增开启拼团功能
This commit is contained in:
@ -2,6 +2,7 @@ package co.yixiang.utils;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
|
||||
import javax.xml.crypto.Data;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
@ -43,6 +44,15 @@ public class OrderUtil {
|
||||
return Integer.valueOf(timestamp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取精确到秒的时间戳
|
||||
* @return
|
||||
**/
|
||||
public static int dateToTimestamp(Date date){
|
||||
String timestamp = String.valueOf(date.getTime()/1000);
|
||||
return Integer.valueOf(timestamp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单状态名称
|
||||
* @param paid
|
||||
|
Reference in New Issue
Block a user