【7.6.0】【sys】【org】更新机构查询条件

pull/55/MERGE
fengshuonan 2023-06-11 14:34:29 +08:00
parent 82d311dbba
commit 814e94e3a3
1 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,10 @@ public class HrOrganizationServiceImpl extends ServiceImpl<HrOrganizationMapper,
queryWrapper.or().like(HrOrganization::getRemark, searchText);
}
// 根据机构状态查询
Integer statusFlag = hrOrganizationRequest.getStatusFlag();
queryWrapper.eq(ObjectUtil.isNotNull(statusFlag), HrOrganization::getStatusFlag, statusFlag);
// 根据排序正序查询
queryWrapper.orderByAsc(HrOrganization::getOrgSort);