增加活动表单设计的功能

This commit is contained in:
Wang 2026-01-15 18:35:20 +08:00
parent 7a3f604763
commit eac3d0c6de

View File

@ -55,7 +55,7 @@ public class AppAgentEmployeeRelationServiceImpl implements IAppAgentEmployeeRel
Integer employeeUserId = StpUtil.getLoginIdAsInt();
MpAgentEmployeeRelationEntity one = mpAgentEmployeeRelationService.lambdaQuery().eq(MpAgentEmployeeRelationEntity::getEmployeeUserId, employeeUserId).one();
if (one == null) {
return PageConverterUtils.convertPageListBean(page, null);
return new PageListBean<>();
}
// 获取代理商ID
Integer agentId = one.getAgentId();
@ -68,7 +68,7 @@ public class AppAgentEmployeeRelationServiceImpl implements IAppAgentEmployeeRel
List<Integer> matchUserIds = userInfoServiceApi.getUserIdsByUserNameLike(query.getEmployeeName());
if (CollectionUtil.isEmpty(matchUserIds)) {
log.info("无匹配员工");
return PageConverterUtils.convertPageListBean(page, null);
return new PageListBean<>();
}
wrapper.in(MpAgentEmployeeRelationEntity::getEmployeeUserId, matchUserIds);
}