类 Group.Builder
java.lang.Object
com.lark.oapi.service.attendance.v1.model.Group.Builder
- 封闭类:
Group
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明allowOutPunch(Boolean allowOutPunch) 是否允许外勤打卡allowPcPunch(Boolean allowPcPunch) 是否允许 PC 端打卡allowRemedy(Boolean allowRemedy) 是否限制补卡allowRemedyTypeEarly(Boolean allowRemedyTypeEarly) 允许早退补卡(需要允许补卡才能设置生效)allowRemedyTypeLack(Boolean allowRemedyTypeLack) 允许缺卡补卡(需要允许补卡才能设置生效)allowRemedyTypeLate(Boolean allowRemedyTypeLate) 允许迟到补卡(需要允许补卡才能设置生效)allowRemedyTypeNormal(Boolean allowRemedyTypeNormal) 允许正常补卡(需要允许补卡才能设置生效)bindDeptIds(String[] bindDeptIds) 绑定的部门 IDbindUserIds(String[] bindUserIds) 绑定的用户 IDbuild()calendarId(Integer calendarId) 国家日历 ID,0:不根据国家日历排休,1:中国大陆,2:美国,3:日本,4:印度,5:新加坡,默认 1clockInNeedPhoto(Boolean clockInNeedPhoto) 每次打卡均需拍照是否立即生效,默认 falseeffectTime(String effectTime) 生效时间,精确到秒的时间戳exceptDeptIds(String[] exceptDeptIds) 排除的部门 IDexceptUserIds(String[] exceptUserIds) 排除的用户 IDfaceDowngrade(Boolean faceDowngrade) 人脸识别失败时是否允许普通拍照打卡是否开启人脸识别打卡facePunchCfg(Integer facePunchCfg) 人脸识别打卡规则,1:每次打卡均需人脸识别,2:疑似作弊打卡时需要人脸识别fixshiftEffectTime(String fixshiftEffectTime) 固定班次生效时间,精确到秒的时间戳freePunchCfg(FreePunchCfg freePunchCfg) 配置自由班制GPS 打卡的有效范围(不建议使用)考勤组 ID(仅修改时提供), 需要从“获取打卡结果”的接口中获取 groupIdgroupLeaderIds(String[] groupLeaderIds) 考勤主负责人 ID 列表,必选字段(需至少拥有考勤组管理员权限)考勤组名称考勤类型,0:固定班制,2:排班制, 3:自由班制hideStaffPunchTime(Boolean hideStaffPunchTime) 是否隐藏员工打卡详情地址列表考勤机列表memberEffectTime(String memberEffectTime) 参加考勤的人员、部门变动生效时间,精确到秒的时间戳needPunchSpecialDays(PunchSpecialDateShift[] needPunchSpecialDays) 必须打卡的特殊日期noNeedPunchSpecialDays(PunchSpecialDateShift[] noNeedPunchSpecialDays) 无需打卡的特殊日期outPunchAllowedHideAddr(Boolean outPunchAllowedHideAddr) 外勤打卡允许员工隐藏详细地址(需要允许外勤打卡才能设置生效)outPunchNeedApproval(Boolean outPunchNeedApproval) 外勤打卡需审批(需要允许外勤打卡才能设置生效)outPunchNeedPhoto(Boolean outPunchNeedPhoto) 外勤打卡需拍照(需要允许外勤打卡才能设置生效)outPunchNeedRemark(Boolean outPunchNeedRemark) 外勤打卡需填写备注(需要允许外勤打卡才能设置生效)punchDayShiftIds(String[] punchDayShiftIds) 固定班制必须填打卡类型,位运算。remedyDateLimit(Boolean remedyDateLimit) 是否限制补卡时间remedyDateNum(Integer remedyDateNum) 补卡时间,几天内补卡remedyLimit(Boolean remedyLimit) 是否限制补卡次数remedyLimitCount(Integer remedyLimitCount) 补卡次数remedyPeriodCustomDate(Integer remedyPeriodCustomDate) 补卡自定义周期起始日期remedyPeriodType(Integer remedyPeriodType) 补卡周期类型replaceBasicPic(Boolean replaceBasicPic) 人脸识别失败时是否允许替换基准图片restClockInNeedApproval(Boolean restClockInNeedApproval) 休息日打卡需审批showCumulativeTime(Boolean showCumulativeTime) 是否展示累计时长showOverTime(Boolean showOverTime) 是否展示加班时长subGroupLeaderIds(String[] subGroupLeaderIds) 考勤子负责人 ID 列表时区workDayNoPunchAsLack(Boolean workDayNoPunchAsLack) 自由班制下工作日不打卡是否记为缺卡
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
groupId
考勤组 ID(仅修改时提供), 需要从“获取打卡结果”的接口中获取 groupId示例值:6919358128597097404
- 参数:
groupId-- 返回:
-
groupName
考勤组名称示例值:开心考勤
- 参数:
groupName-- 返回:
-
timeZone
时区示例值:Asia/Shanghai
- 参数:
timeZone-- 返回:
-
bindDeptIds
绑定的部门 ID示例值:od-fcb45c28a45311afd440b7869541fce8
- 参数:
bindDeptIds-- 返回:
-
exceptDeptIds
排除的部门 ID示例值:od-fcb45c28a45311afd440b7869541fce8
- 参数:
exceptDeptIds-- 返回:
-
bindUserIds
绑定的用户 ID示例值:52aa1fa1
- 参数:
bindUserIds-- 返回:
-
exceptUserIds
排除的用户 ID示例值:52aa1fa1
- 参数:
exceptUserIds-- 返回:
-
groupLeaderIds
考勤主负责人 ID 列表,必选字段(需至少拥有考勤组管理员权限)示例值:2bg4a9be
- 参数:
groupLeaderIds-- 返回:
-
subGroupLeaderIds
考勤子负责人 ID 列表示例值:52aa1fa1
- 参数:
subGroupLeaderIds-- 返回:
-
allowOutPunch
是否允许外勤打卡示例值:true
- 参数:
allowOutPunch-- 返回:
-
outPunchNeedApproval
外勤打卡需审批(需要允许外勤打卡才能设置生效)示例值:true
- 参数:
outPunchNeedApproval-- 返回:
-
outPunchNeedRemark
外勤打卡需填写备注(需要允许外勤打卡才能设置生效)示例值:true
- 参数:
outPunchNeedRemark-- 返回:
-
outPunchNeedPhoto
外勤打卡需拍照(需要允许外勤打卡才能设置生效)示例值:true
- 参数:
outPunchNeedPhoto-- 返回:
-
outPunchAllowedHideAddr
外勤打卡允许员工隐藏详细地址(需要允许外勤打卡才能设置生效)示例值:true
- 参数:
outPunchAllowedHideAddr-- 返回:
-
allowPcPunch
是否允许 PC 端打卡示例值:true
- 参数:
allowPcPunch-- 返回:
-
allowRemedy
是否限制补卡示例值:true
- 参数:
allowRemedy-- 返回:
-
remedyLimit
是否限制补卡次数示例值:true
- 参数:
remedyLimit-- 返回:
-
remedyLimitCount
补卡次数示例值:3
- 参数:
remedyLimitCount-- 返回:
-
remedyDateLimit
是否限制补卡时间示例值:true
- 参数:
remedyDateLimit-- 返回:
-
remedyDateNum
补卡时间,几天内补卡示例值:3
- 参数:
remedyDateNum-- 返回:
-
allowRemedyTypeLack
允许缺卡补卡(需要允许补卡才能设置生效)示例值:true
- 参数:
allowRemedyTypeLack-- 返回:
-
allowRemedyTypeLate
允许迟到补卡(需要允许补卡才能设置生效)示例值:true
- 参数:
allowRemedyTypeLate-- 返回:
-
allowRemedyTypeEarly
允许早退补卡(需要允许补卡才能设置生效)示例值:true
- 参数:
allowRemedyTypeEarly-- 返回:
-
allowRemedyTypeNormal
允许正常补卡(需要允许补卡才能设置生效)示例值:true
- 参数:
allowRemedyTypeNormal-- 返回:
-
showCumulativeTime
是否展示累计时长示例值:true
- 参数:
showCumulativeTime-- 返回:
-
showOverTime
是否展示加班时长示例值:true
- 参数:
showOverTime-- 返回:
-
hideStaffPunchTime
是否隐藏员工打卡详情示例值:true
- 参数:
hideStaffPunchTime-- 返回:
-
facePunch
是否开启人脸识别打卡示例值:true
- 参数:
facePunch-- 返回:
-
facePunchCfg
人脸识别打卡规则,1:每次打卡均需人脸识别,2:疑似作弊打卡时需要人脸识别示例值:1
- 参数:
facePunchCfg-- 返回:
-
faceDowngrade
人脸识别失败时是否允许普通拍照打卡示例值:true
- 参数:
faceDowngrade-- 返回:
-
replaceBasicPic
人脸识别失败时是否允许替换基准图片示例值:true
- 参数:
replaceBasicPic-- 返回:
-
machines
考勤机列表示例值:
- 参数:
machines-- 返回:
-
gpsRange
GPS 打卡的有效范围(不建议使用)示例值:300
- 参数:
gpsRange-- 返回:
-
locations
地址列表示例值:
- 参数:
locations-- 返回:
-
groupType
考勤类型,0:固定班制,2:排班制, 3:自由班制示例值:0
- 参数:
groupType-- 返回:
-
punchDayShiftIds
固定班制必须填示例值:6921319402260496386
- 参数:
punchDayShiftIds-- 返回:
-
freePunchCfg
配置自由班制示例值:
- 参数:
freePunchCfg-- 返回:
-
calendarId
国家日历 ID,0:不根据国家日历排休,1:中国大陆,2:美国,3:日本,4:印度,5:新加坡,默认 1示例值:1
- 参数:
calendarId-- 返回:
-
needPunchSpecialDays
必须打卡的特殊日期示例值:
- 参数:
needPunchSpecialDays-- 返回:
-
noNeedPunchSpecialDays
无需打卡的特殊日期示例值:
- 参数:
noNeedPunchSpecialDays-- 返回:
-
workDayNoPunchAsLack
自由班制下工作日不打卡是否记为缺卡示例值:true
- 参数:
workDayNoPunchAsLack-- 返回:
-
effectNow
是否立即生效,默认 false示例值:true
- 参数:
effectNow-- 返回:
-
remedyPeriodType
补卡周期类型示例值:0
- 参数:
remedyPeriodType-- 返回:
-
remedyPeriodCustomDate
补卡自定义周期起始日期示例值:1
- 参数:
remedyPeriodCustomDate-- 返回:
-
punchType
打卡类型,位运算。1:GPS 打卡,2:Wi-Fi 打卡,4:考勤机打卡,8:IP 打卡示例值:1
- 参数:
punchType-- 返回:
-
effectTime
生效时间,精确到秒的时间戳示例值:1611476284
- 参数:
effectTime-- 返回:
-
fixshiftEffectTime
固定班次生效时间,精确到秒的时间戳示例值:1611476284
- 参数:
fixshiftEffectTime-- 返回:
-
memberEffectTime
参加考勤的人员、部门变动生效时间,精确到秒的时间戳示例值:1611476284
- 参数:
memberEffectTime-- 返回:
-
restClockInNeedApproval
休息日打卡需审批示例值:true
- 参数:
restClockInNeedApproval-- 返回:
-
clockInNeedPhoto
每次打卡均需拍照示例值:true
- 参数:
clockInNeedPhoto-- 返回:
-
build
-