EmployeeRosterSyncResult.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package com.malk.minglei.dto;
  2. /**
  3. * 员工花名册同步结果统计。
  4. */
  5. public class EmployeeRosterSyncResult {
  6. private final long departmentId;
  7. private final boolean includeSubDepartments;
  8. private final int userCount;
  9. private final int fieldCount;
  10. private final int syncedCount;
  11. /**
  12. * 创建员工花名册同步结果。
  13. *
  14. * @param departmentId 同步的钉钉部门 ID
  15. * @param includeSubDepartments 是否包含子部门
  16. * @param userCount 本次处理的用户数
  17. * @param fieldCount 本次查询的花名册字段数
  18. * @param syncedCount 实际写入本地库的记录数
  19. */
  20. public EmployeeRosterSyncResult(long departmentId, boolean includeSubDepartments, int userCount, int fieldCount, int syncedCount) {
  21. this.departmentId = departmentId;
  22. this.includeSubDepartments = includeSubDepartments;
  23. this.userCount = userCount;
  24. this.fieldCount = fieldCount;
  25. this.syncedCount = syncedCount;
  26. }
  27. public long getDepartmentId() {
  28. return departmentId;
  29. }
  30. public boolean isIncludeSubDepartments() {
  31. return includeSubDepartments;
  32. }
  33. public int getUserCount() {
  34. return userCount;
  35. }
  36. public int getFieldCount() {
  37. return fieldCount;
  38. }
  39. public int getSyncedCount() {
  40. return syncedCount;
  41. }
  42. }