update:修改部门管理相关bug

This commit is contained in:
sunzheng
2024-07-29 18:02:47 +08:00
parent 1fecbb01c9
commit de01b62f5f
4 changed files with 25 additions and 12 deletions
@@ -346,6 +346,10 @@ public class SysDepartController {
QueryWrapper<SysDepart> queryWrapper = QueryGenerator.initQueryWrapper(sysDepart, request.getParameterMap());
//Step.2 AutoPoi 导出Excel
ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
String selections = request.getParameter("selections");
if(!oConvertUtils.isEmpty(selections)){
queryWrapper.in("id",selections.split(","));
}
List<SysDepart> pageList = sysDepartService.list(queryWrapper);
//按字典排序
Collections.sort(pageList,(SysDepart arg0, SysDepart arg1)-> arg0.getOrgCode().compareTo(arg1.getOrgCode()));
@@ -16,7 +16,7 @@ import java.util.*;
* <p>
* 部门表
* <p>
*
*
* @Author Steve
* @Since 2019-01-22
*/
@@ -24,7 +24,7 @@ import java.util.*;
@TableName("sys_depart")
public class SysDepart implements Serializable {
private static final long serialVersionUID = 1L;
/**ID,用机构编码作为ID*/
@TableId(type = IdType.ASSIGN_UUID)
private String id;
@@ -34,7 +34,7 @@ public class SysDepart implements Serializable {
@Excel(name="机构/部门名称",width=15)
private String departName;
/**英文名*/
@Excel(name="英文名",width=15)
// @Excel(name="英文名",width=15)
private String departNameEn;
/**缩写*/
private String departNameAbbr;
@@ -42,7 +42,7 @@ public class SysDepart implements Serializable {
@Excel(name="排序",width=15)
private Integer departOrder;
/**描述*/
@Excel(name="描述",width=15)
// @Excel(name="描述",width=15)
private String description;
/**机构类别 1公司,2组织机构,2岗位*/
// IAM 1.单位 2.部门
@@ -57,7 +57,7 @@ public class SysDepart implements Serializable {
@Excel(name="手机号",width=15)
private String mobile;
/**传真*/
@Excel(name="传真",width=15)
// @Excel(name="传真",width=15)
private String fax;
/**地址*/
@Excel(name="地址",width=15)
@@ -89,25 +89,25 @@ public class SysDepart implements Serializable {
/**
* 所属单位,10位HR机构编号
*/
@Excel(name="所属单位",width=15)
// @Excel(name="所属单位",width=15)
private String company;
/**
* 部门负责人
*/
@Excel(name="部门负责人",width=15)
// @Excel(name="部门负责人",width=15)
private String headOfDepartment;
/**
* 分管领导
*/
@Excel(name="分管领导",width=15)
// @Excel(name="分管领导",width=15)
private String leadersInCharge;
/**
* 副职领导
*/
@Excel(name="副职领导",width=15)
// @Excel(name="副职领导",width=15)
private String deputyLeader;
/**
@@ -157,9 +157,9 @@ public class SysDepart implements Serializable {
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), id, parentId, departName,
departNameEn, departNameAbbr, departOrder, description,orgCategory,
orgType, orgCode, mobile, fax, address, memo, status,
return Objects.hash(super.hashCode(), id, parentId, departName,
departNameEn, departNameAbbr, departOrder, description,orgCategory,
orgType, orgCode, mobile, fax, address, memo, status,
delFlag, createBy, createTime, updateBy, updateTime,
company, headOfDepartment, leadersInCharge, deputyLeader);
}
@@ -20,6 +20,12 @@ public class SysDictPage {
@Excel(name = "字典名称", width = 20)
private String dictName;
/**
* 字典英文名称
*/
@Excel(name = "字典英文名称", width = 20)
private String dictEnName;
/**
* 字典编码
*/