Compare commits

2 Commits
Author SHA1 Message Date
wanghao d47737de5e Merge remote-tracking branch 'origin/xc' into xc 2026-09-07 15:39:06 +08:00
wanghaoandClaude 991dbabe8a fix(watch): listByWatch改为只展示未绑定手表的用户
Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-07 15:34:40 +08:00
2 changed files with 8 additions and 1 deletions
@@ -313,6 +313,12 @@
<if test="filter.phone != null and filter.phone != ''">
and b.phone like CONCAT(#{filter.phone,jdbcType=VARCHAR}, '%')
</if>
<if test="filter.excludeUserIds != null and filter.excludeUserIds.size()!=0">
AND a.id not in
<foreach collection="filter.excludeUserIds" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</where>
<choose>
<when test="filter.idList != null and !filter.idList.isEmpty()">
@@ -786,7 +786,8 @@ public class HealthUserEmployeeExServiceImpl extends ServiceImpl<HealthUserEmplo
}
List<String> bindUserIdList = watchApi.getBindUserIdList();
if (!CollectionUtils.isEmpty(bindUserIdList)) {
filter.setIdList(bindUserIdList);
// 排除已绑定手表的用户,只展示未绑定用户
filter.setExcludeUserIds(bindUserIdList);
}
IPage<UserEmployee> userEmployeeIPage = healthUserEmployeeExMapper.selectUserListByWatch(page, filter);
if (CollectionUtils.isEmpty(userEmployeeIPage.getRecords())) {