fix(过滤离职):完善优化过滤离职人员
deploy-hxtesting / build-and-deploy (push) Successful in 1m35s

This commit is contained in:
runny committed 2026-12-01 18:21:46 +08:00
1 parent 381dd60bea
commit f55447a8f8
5 files changed
+17

No files matched your search

+4
View File
@@ -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
}