feat(wms): 添加部门查询功能增强支持领导昵称显示

- 在WmsDeptMapper中新增selectVoListPlus方法支持自定义查询
- 在WmsDeptMapper.xml中实现部门查询SQL并关联用户表获取领导昵称
- 在WmsDeptServiceImpl中重构查询逻辑使用QueryWrapper替代LambdaQueryWrapper
- 在WmsDeptVo中新增leaderNickName字段用于显示领导昵称信息
This commit is contained in:
2026-03-02 14:53:33 +08:00
parent d383f86001
commit 247802cd92
4 changed files with 41 additions and 10 deletions

View File

@@ -18,6 +18,25 @@
<result property="updateTime" column="update_time"/>
<result property="updateBy" column="update_by"/>
</resultMap>
<select id="selectVoListPlus" resultType="com.klp.domain.vo.WmsDeptVo">
SELECT
d.dept_id,
d.parent_id,
d.dept_name,
d.order_num,
d.leader,
u.nick_name AS leaderNickName,
d.status,
d.del_flag,
d.remark,
d.create_time,
d.create_by,
d.update_time,
d.update_by
FROM wms_dept d
LEFT JOIN sys_user u ON d.leader = u.user_id
${ew.customSqlSegment}
</select>
</mapper>