mirror of https://gitee.com/stylefeng/roses
【org】整理代码规范
parent
34e7c3f026
commit
09b397cc4b
|
@ -35,7 +35,6 @@ public class HrOrganizationRequest extends BaseRequest {
|
|||
/**
|
||||
* 父ids
|
||||
*/
|
||||
//@NotBlank(message = "父ids不能为空", groups = {add.class, edit.class})
|
||||
private String orgPids;
|
||||
|
||||
/**
|
||||
|
|
|
@ -14,7 +14,6 @@ import java.util.List;
|
|||
@Data
|
||||
public class LayuiOrganizationTreeNode implements AbstractTreeNode {
|
||||
|
||||
|
||||
/**
|
||||
* 父id,一级节点父id是0
|
||||
*/
|
||||
|
@ -35,7 +34,6 @@ public class LayuiOrganizationTreeNode implements AbstractTreeNode {
|
|||
*/
|
||||
private boolean spread = true;
|
||||
|
||||
|
||||
/**
|
||||
* 子节点的集合
|
||||
*/
|
||||
|
|
|
@ -118,7 +118,6 @@ public class HrOrganizationController {
|
|||
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.pojo.organization.layui.LayuiOrganizationTreeNode;
|
||||
|
||||
/**
|
||||
* 组织机构实体转化
|
||||
*
|
||||
* @author chenjinlong
|
||||
* @date 2021/1/6 21:03
|
||||
*/
|
||||
public class OrganizationFactory {
|
||||
|
||||
/**
|
||||
* 实体转换
|
||||
*
|
||||
* @param hrOrganization 机构
|
||||
* @param hrOrganization 机构信息
|
||||
* @return LayuiOrganizationTreeNode layui树实体对象
|
||||
* @author chenjinlong
|
||||
* @date 2021/1/5 21:07
|
||||
|
@ -20,4 +26,5 @@ public class OrganizationFactory {
|
|||
treeNode.setTitle(hrOrganization.getOrgName());
|
||||
return treeNode;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue