mirror of https://gitee.com/stylefeng/roses
【org】整理代码规范
parent
34e7c3f026
commit
09b397cc4b
|
@ -35,7 +35,6 @@ public class HrOrganizationRequest extends BaseRequest {
|
||||||
/**
|
/**
|
||||||
* 父ids
|
* 父ids
|
||||||
*/
|
*/
|
||||||
//@NotBlank(message = "父ids不能为空", groups = {add.class, edit.class})
|
|
||||||
private String orgPids;
|
private String orgPids;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -14,7 +14,6 @@ import java.util.List;
|
||||||
@Data
|
@Data
|
||||||
public class LayuiOrganizationTreeNode implements AbstractTreeNode {
|
public class LayuiOrganizationTreeNode implements AbstractTreeNode {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 父id,一级节点父id是0
|
* 父id,一级节点父id是0
|
||||||
*/
|
*/
|
||||||
|
@ -35,7 +34,6 @@ public class LayuiOrganizationTreeNode implements AbstractTreeNode {
|
||||||
*/
|
*/
|
||||||
private boolean spread = true;
|
private boolean spread = true;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 子节点的集合
|
* 子节点的集合
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -118,7 +118,6 @@ public class HrOrganizationController {
|
||||||
return new SuccessResponseData(hrOrganizationService.tree(hrOrganizationRequest));
|
return new SuccessResponseData(hrOrganizationService.tree(hrOrganizationRequest));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取全部系统组织机构树,用于新增,编辑时选择上级节点
|
* 获取全部系统组织机构树,用于新增,编辑时选择上级节点
|
||||||
*
|
*
|
||||||
|
|
|
@ -3,12 +3,18 @@ package cn.stylefeng.roses.kernel.system.modular.organization.factory;
|
||||||
import cn.stylefeng.roses.kernel.system.modular.organization.entity.HrOrganization;
|
import cn.stylefeng.roses.kernel.system.modular.organization.entity.HrOrganization;
|
||||||
import cn.stylefeng.roses.kernel.system.pojo.organization.layui.LayuiOrganizationTreeNode;
|
import cn.stylefeng.roses.kernel.system.pojo.organization.layui.LayuiOrganizationTreeNode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组织机构实体转化
|
||||||
|
*
|
||||||
|
* @author chenjinlong
|
||||||
|
* @date 2021/1/6 21:03
|
||||||
|
*/
|
||||||
public class OrganizationFactory {
|
public class OrganizationFactory {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实体转换
|
* 实体转换
|
||||||
*
|
*
|
||||||
* @param hrOrganization 机构
|
* @param hrOrganization 机构信息
|
||||||
* @return LayuiOrganizationTreeNode layui树实体对象
|
* @return LayuiOrganizationTreeNode layui树实体对象
|
||||||
* @author chenjinlong
|
* @author chenjinlong
|
||||||
* @date 2021/1/5 21:07
|
* @date 2021/1/5 21:07
|
||||||
|
@ -20,4 +26,5 @@ public class OrganizationFactory {
|
||||||
treeNode.setTitle(hrOrganization.getOrgName());
|
treeNode.setTitle(hrOrganization.getOrgName());
|
||||||
return treeNode;
|
return treeNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue