Files
klp-oa/klp-wms/src/main/java/com/klp/domain/vo/WmsDeptVo.java
Joshi 247802cd92 feat(wms): 添加部门查询功能增强支持领导昵称显示
- 在WmsDeptMapper中新增selectVoListPlus方法支持自定义查询
- 在WmsDeptMapper.xml中实现部门查询SQL并关联用户表获取领导昵称
- 在WmsDeptServiceImpl中重构查询逻辑使用QueryWrapper替代LambdaQueryWrapper
- 在WmsDeptVo中新增leaderNickName字段用于显示领导昵称信息
2026-03-02 14:53:33 +08:00

73 lines
1.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.klp.domain.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.klp.common.annotation.ExcelDictFormat;
import com.klp.common.convert.ExcelDictConvert;
import lombok.Data;
/**
* WMS系统部门树形结构视图对象 wms_dept
*
* @author klp
* @date 2026-03-02
*/
@Data
@ExcelIgnoreUnannotated
public class WmsDeptVo {
private static final long serialVersionUID = 1L;
/**
* 部门id
*/
@ExcelProperty(value = "部门id")
private Long deptId;
/**
* 父部门id0表示顶级部门
*/
@ExcelProperty(value = "父部门id", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "0=表示顶级部门")
private Long parentId;
/**
* 部门名称
*/
@ExcelProperty(value = "部门名称")
private String deptName;
/**
* 部门显示顺序(同级排序)
*/
@ExcelProperty(value = "部门显示顺序", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "同=级排序")
private Long orderNum;
/**
* 部门负责人
*/
@ExcelProperty(value = "部门负责人")
private Long leader;
/**
* 部门状态0正常 1停用
*/
@ExcelProperty(value = "部门状态", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "0=正常,1=停用")
private String status;
/**
* 备注
*/
@ExcelProperty(value = "备注")
private String remark;
// 领导昵称
private String leaderNickName;
}