TRX преди 1 година
родител
ревизия
5775c9f3d3

+ 3 - 0
FullCardServer/src/main/java/com/zhongshu/card/server/core/domain/devices/DeviceUseRecords.java

@@ -90,6 +90,9 @@ public class DeviceUseRecords extends SuperMain {
     @Schema(description = "时间")
     private Long timestamp;
 
+    @Schema(description = "耗时,毫秒")
+    private Long useTime;
+
     @Schema(description = "年份,如:2024")
     private Integer year;
 

+ 1 - 0
FullCardServer/src/main/java/com/zhongshu/card/server/core/service/devices/permiss/DevicePermissVerifyService.java

@@ -187,6 +187,7 @@ public class DevicePermissVerifyService {
                 }
             }
         }
+        deviceUserParam.setUseTime(stopWatch.getTotalTimeMillis());
         log.info("权限验证:{}", stopWatch.prettyPrint());
         if (!hasPermission) {
             return ResultContent.buildFail(msg);