|
|
|
@ -60,7 +60,7 @@ public class CoreHqlPack {
|
|
|
|
|
* @param position
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlPosition(Position position) {
|
|
|
|
|
public static String packHqlDepartment(Position position) {
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
// 岗位名称
|
|
|
|
@ -73,7 +73,6 @@ public class CoreHqlPack {
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* In 参数封装
|
|
|
|
|
* @param columnName
|
|
|
|
@ -87,13 +86,12 @@ public class CoreHqlPack {
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 部门复杂查询
|
|
|
|
|
* @param department
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String packHqlPosition(Department department) {
|
|
|
|
|
public static String packHqlDepartment(Department department) {
|
|
|
|
|
StringBuffer result = new StringBuffer();
|
|
|
|
|
|
|
|
|
|
// 部门名称
|
|
|
|
@ -107,4 +105,20 @@ public class CoreHqlPack {
|
|
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|