- 在WmsDeptMapper中新增selectVoListPlus方法支持自定义查询 - 在WmsDeptMapper.xml中实现部门查询SQL并关联用户表获取领导昵称 - 在WmsDeptServiceImpl中重构查询逻辑使用QueryWrapper替代LambdaQueryWrapper - 在WmsDeptVo中新增leaderNickName字段用于显示领导昵称信息
73 lines
1.6 KiB
Java
73 lines
1.6 KiB
Java
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;
|
||
|
||
/**
|
||
* 父部门id(0表示顶级部门)
|
||
*/
|
||
@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;
|
||
|
||
|
||
}
|