This commit is contained in:
1 parent
381dd60bea
commit
f55447a8f8
5 files changed
+17
No files matched your search
@@ -40,6 +40,10 @@ func orgListQueryFromRequest(c *gin.Context) *types.OrgListQuery {
|
||||
if v, err := strconv.Atoi(c.Query("employment_status")); err == nil && types.IsValidEmploymentStatus(v) {
|
||||
q.EmploymentStatus = v
|
||||
}
|
||||
// 在职口径(on_duty=true):员工档案列表仅保留在职人员(1-5),过滤离职/退休。
|
||||
if v, err := strconv.ParseBool(c.Query("on_duty")); err == nil {
|
||||
q.OnDutyOnly = v
|
||||
}
|
||||
if v, err := strconv.Atoi(c.Query("page")); err == nil {
|
||||
q.Page = v
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user