|
|
@ -98,6 +98,11 @@ public class HrmResourceServiceImpl extends Service implements HrmResourceServic
|
|
|
|
return MapperProxyFactory.getProxy(SystemDataMapper.class);
|
|
|
|
return MapperProxyFactory.getProxy(SystemDataMapper.class);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 所有满足条件的岗位ID
|
|
|
|
|
|
|
|
private List<String> jobTitleList = new ArrayList<>();
|
|
|
|
|
|
|
|
// 是否
|
|
|
|
|
|
|
|
boolean searchJobTitle = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Map<String, Object> getSearchTree(SearchTreeParams params) {
|
|
|
|
public Map<String, Object> getSearchTree(SearchTreeParams params) {
|
|
|
@ -203,6 +208,25 @@ public class HrmResourceServiceImpl extends Service implements HrmResourceServic
|
|
|
|
return templates;
|
|
|
|
return templates;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public Integer saveCustomTemplate(SearchTemplateParam params) {
|
|
|
|
|
|
|
|
SearchTemplatePO templatePO = buildSearchTemplateByFields(params.getFields());
|
|
|
|
|
|
|
|
if (null == templatePO) {
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
templatePO.setName(params.getShowname());
|
|
|
|
|
|
|
|
templatePO.setCreator(user.getUID());
|
|
|
|
|
|
|
|
templatePO.setCreateTime(new Date());
|
|
|
|
|
|
|
|
templatePO.setUpdateTime(new Date());
|
|
|
|
|
|
|
|
getHrmResourceMapper().insertCustomTemplate(templatePO);
|
|
|
|
|
|
|
|
return templatePO.getId();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void deleteCustomTemplate(Integer id) {
|
|
|
|
|
|
|
|
getHrmResourceMapper().deleteCustomTemplate(id, user.getUID());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Map<String, Object> getSearchCondition(Map<String, Object> params) {
|
|
|
|
public Map<String, Object> getSearchCondition(Map<String, Object> params) {
|
|
|
|
String templateId = Util.null2String(params.get("templateId"));
|
|
|
|
String templateId = Util.null2String(params.get("templateId"));
|
|
|
@ -755,6 +779,16 @@ public class HrmResourceServiceImpl extends Service implements HrmResourceServic
|
|
|
|
if (key.endsWith("workyear") || key.endsWith("companyworkyear")) {
|
|
|
|
if (key.endsWith("workyear") || key.endsWith("companyworkyear")) {
|
|
|
|
conditionItem.setConditionType(ConditionType.INPUTNUMBER);
|
|
|
|
conditionItem.setConditionType(ConditionType.INPUTNUMBER);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
if (key.endsWith("jobactivity")) {
|
|
|
|
|
|
|
|
searchJobTitle = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (key.endsWith("jobGroupId")) {
|
|
|
|
|
|
|
|
searchJobTitle = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (key.endsWith("jobtitle")) {
|
|
|
|
|
|
|
|
searchJobTitle = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
String tableSql = buildTableSql(key);
|
|
|
|
String tableSql = buildTableSql(key);
|
|
|
|
if (StringUtils.isBlank(tableSql)) {
|
|
|
|
if (StringUtils.isBlank(tableSql)) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -800,9 +834,6 @@ public class HrmResourceServiceImpl extends Service implements HrmResourceServic
|
|
|
|
String scopeId = s[0];
|
|
|
|
String scopeId = s[0];
|
|
|
|
String tableName = s[1];
|
|
|
|
String tableName = s[1];
|
|
|
|
String fieldName = s[2];
|
|
|
|
String fieldName = s[2];
|
|
|
|
if ("jobactivity".equals(fieldName)) {
|
|
|
|
|
|
|
|
fieldName = "jobactivitydesc";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ("hrm".equals(tableName)) {
|
|
|
|
if ("hrm".equals(tableName)) {
|
|
|
|
sb.append("t.").append(fieldName);
|
|
|
|
sb.append("t.").append(fieldName);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|