feat: 请假

This commit is contained in:
李京通 2025-06-09 21:42:38 +08:00
parent 43129b0bca
commit c770cacd0a
1 changed files with 7 additions and 7 deletions

View File

@ -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("根据编号查")