添加 岗位Tree

添加 部门Tree
添加 组织Tree
添加 功能Tree
yun-zuoyi
wei.peng 7 years ago
parent 44ea78b93a
commit ffb0d1fd83

@ -285,7 +285,6 @@ public class CommonEnumUtil {
} }
} }
/** /**
* *
* 1 * 1

@ -55,9 +55,6 @@ public class Department extends BaseBean {
} }
} }
@ApiParam(value ="子部门列表")
private transient List<Department> childList;
@Column(name="RED_ORGANIZATION_NAME") @Column(name="RED_ORGANIZATION_NAME")
@ApiParam(value ="所属组织名称" , access ="所属组织名称") @ApiParam(value ="所属组织名称" , access ="所属组织名称")
private String redOrganizeName; private String redOrganizeName;
@ -71,4 +68,7 @@ public class Department extends BaseBean {
@ApiParam(value ="排序" , example ="1" , access ="排序") @ApiParam(value ="排序" , example ="1" , access ="排序")
private Integer departmentSort; private Integer departmentSort;
@ApiParam(value ="子集列表")
private transient List<Department> childList;
} }

@ -13,6 +13,7 @@ import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import java.text.DecimalFormat; import java.text.DecimalFormat;
import java.util.List;
/** /**
* @Description : * @Description :
@ -71,4 +72,6 @@ public class Organize extends BaseBean {
@ApiParam(value ="组织状态枚举1.正常2.禁用)" , example ="1") @ApiParam(value ="组织状态枚举1.正常2.禁用)" , example ="1")
private Integer organizeStatus; private Integer organizeStatus;
@ApiParam(value ="子集列表")
private transient List<Organize> childList;
} }

@ -37,11 +37,11 @@ public class Position extends BaseBean {
@Column(name="POSITION_CODE") @Column(name="POSITION_CODE")
@ApiParam(value ="岗位代码" , access ="岗位代码") @ApiParam(value ="岗位代码" , access ="岗位代码")
private String positionCode; private String positionCode;
// 默认值 -1
@Column(name="PARENT_ID") @Column(name="PARENT_ID")
@ApiParam(value ="上级岗位" , example ="-1" , access ="上级岗位") @ApiParam(value ="上级岗位" , example ="-1" , access ="上级岗位")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
// 默认值 -1
private Long parentId; private Long parentId;
public Long getParentId() { public Long getParentId() {

@ -29,7 +29,7 @@ public class SessionUser implements Serializable {
@ApiParam("用户类型") @ApiParam("用户类型")
//CommonEnumUtil.USER_TYPE.xxx.getCode() //CommonEnumUtil.USER_TYPE.xxx.getCode()
private Integer userTypeId; private String userTypeId;
@ApiParam("用户信息") @ApiParam("用户信息")
private SysUser user; private SysUser user;
@ -61,7 +61,7 @@ public class SessionUser implements Serializable {
} }
public SessionUser(String userCode, String userName, String siteCode, String languageCode, Integer userTypeId) { public SessionUser(String userCode, String userName, String siteCode, String languageCode, String userTypeId) {
this.userCode = userCode; this.userCode = userCode;
this.userName = userName; this.userName = userName;
this.languageCode = languageCode; this.languageCode = languageCode;

@ -13,6 +13,7 @@ import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import java.text.DecimalFormat; import java.text.DecimalFormat;
import java.util.List;
/** /**
* @Description : * @Description :
@ -79,4 +80,7 @@ public class SysMenu extends BaseBean {
@ApiParam(value ="功能状态1.正常2.禁用)" , example ="1" , access ="功能状态1.正常2.禁用)",defaultValue="1") @ApiParam(value ="功能状态1.正常2.禁用)" , example ="1" , access ="功能状态1.正常2.禁用)",defaultValue="1")
private Integer menuStatus = 1; private Integer menuStatus = 1;
@ApiParam(value ="子集列表")
private transient List<SysMenu> childList;
} }

@ -60,7 +60,7 @@ public class CoreHqlPack {
* @param position * @param position
* @return * @return
*/ */
public static String packHqlPosition(Position position) { public static String packHqlDepartment(Position position) {
StringBuffer result = new StringBuffer(); StringBuffer result = new StringBuffer();
// 岗位名称 // 岗位名称
@ -73,7 +73,6 @@ public class CoreHqlPack {
return result.toString(); return result.toString();
} }
/** /**
* In * In
* @param columnName * @param columnName
@ -87,13 +86,12 @@ public class CoreHqlPack {
return result.toString(); return result.toString();
} }
/** /**
* *
* @param department * @param department
* @return * @return
*/ */
public static String packHqlPosition(Department department) { public static String packHqlDepartment(Department department) {
StringBuffer result = new StringBuffer(); StringBuffer result = new StringBuffer();
// 部门名称 // 部门名称
@ -107,4 +105,20 @@ public class CoreHqlPack {
return result.toString(); return result.toString();
} }
/**
*
* @param position
* @return
*/
public static String packHqlPosition(Position position){
StringBuffer result = new StringBuffer();
// 查询参数封装
HqlPack.getNumEqualPack(position.getParentId(),"parentId",result);
HqlPack.getStringLikerPack(position.getName(),"name",result);
HqlPack.getStringLikerPack(position.getPositionCode(),"positionCode",result);
return result.toString();
}
} }

Loading…
Cancel
Save