feat(service): 添加可报价字段的查询和请求支持
- 在 AdminUserServiceImpl 中增加根据 canQuotation 字段过滤用户的条件 - 在 SearchAccountRequest 请求体中添加 canQuotation 字段 - 修正部分代码格式,提高代码可读性 - 保持分页查询结果中的相关属性映射正确处理
This commit is contained in:
parent
9966cff8ce
commit
705202436d
|
|
@ -26,4 +26,9 @@ public class SearchAccountRequest extends PageRequest {
|
|||
* 当按部门查询时,是否显示其所有子部门下所有用户,默认为不显示
|
||||
*/
|
||||
private Boolean showAllDepartmentUser = false;
|
||||
|
||||
/**
|
||||
* 是否可报价
|
||||
*/
|
||||
private Boolean canQuotation;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -178,6 +178,7 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|||
.eq(Objects.nonNull(request.getState()), AdminUser::getState, request.getState())
|
||||
.in(CollectionUtil.isNotEmpty(departmentIds), AdminUser::getDepartmentId, departmentIds)
|
||||
.eq(Objects.nonNull(request.getGongfuHandler()), AdminUser::isGongFuHandler, request.getGongfuHandler())
|
||||
.isNotNull(Objects.equals(true, request.getCanQuotation()), AdminUser::getCategoryId)
|
||||
.like(StrUtil.isNotBlank(request.getLoginName()), AdminUser::getLoginName, request.getLoginName())
|
||||
.like(StrUtil.isNotBlank(request.getUserName()), AdminUser::getUserName, request.getUserName())
|
||||
.orderByAsc(AdminUser::getState)
|
||||
|
|
|
|||
Loading…
Reference in New Issue