feat: 请假
This commit is contained in:
parent
43129b0bca
commit
c770cacd0a
|
@ -125,9 +125,9 @@ public class ApprovalProcessController extends BaseController {
|
|||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Long createTime = 1749279303395L;
|
||||
Long createTime = System.currentTimeMillis();
|
||||
Instant instant = Instant.ofEpochMilli(createTime);
|
||||
|
||||
Long time = createTime - 24 * 60 * 60 * 1000 * 3;
|
||||
// 2. 转换为本地时区(如北京时间 UTC+8)
|
||||
LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, ZoneId.of("Asia/Shanghai"));
|
||||
|
||||
|
@ -136,7 +136,7 @@ public class ApprovalProcessController extends BaseController {
|
|||
|
||||
// 4. 格式化为字符串
|
||||
String formattedTime = localDateTime.format(formatter);
|
||||
System.out.println(formattedTime);
|
||||
System.out.println(time);
|
||||
}
|
||||
|
||||
@ApiOperation("根据编号查")
|
||||
|
|
Loading…
Reference in New Issue