Merge branch 'develop' of https://gitee.com/jmlcl/weaver-hrm-organization into feature/dxf
This commit is contained in:
commit
0a87a2ad4d
|
|
@ -23,7 +23,7 @@ import lombok.NoArgsConstructor;
|
||||||
fields = "t.id," +
|
fields = "t.id," +
|
||||||
"t.lastname," +
|
"t.lastname," +
|
||||||
"t.mobile," +
|
"t.mobile," +
|
||||||
"t.," +
|
"t.companystartdate," +
|
||||||
"t.sex",
|
"t.sex",
|
||||||
fromSql = "FROM HrmResource t ",
|
fromSql = "FROM HrmResource t ",
|
||||||
orderby = "id desc",
|
orderby = "id desc",
|
||||||
|
|
|
||||||
|
|
@ -78,4 +78,10 @@ public interface SequenceService {
|
||||||
*/
|
*/
|
||||||
Map<String, Object> getTabInfo();
|
Map<String, Object> getTabInfo();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取岗位序列下方案信息
|
||||||
|
* @param params
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
Map<String, Object> getSchemeInfo(Map<String, Object> params);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -347,6 +347,7 @@ public class CompServiceImpl extends Service implements CompService {
|
||||||
List<SearchConditionGroup> addGroups = new ArrayList<>();
|
List<SearchConditionGroup> addGroups = new ArrayList<>();
|
||||||
List<SearchConditionItem> condition = new ArrayList<>();
|
List<SearchConditionItem> condition = new ArrayList<>();
|
||||||
SearchConditionItem compBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 2, false, "转移到", "164", "company", "compBrowser");
|
SearchConditionItem compBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 2, false, "转移到", "164", "company", "compBrowser");
|
||||||
|
compBrowserItem.setHelpfulTip("在不选择分部情况下,默认转移到集团下一级分部!!!");
|
||||||
condition.add(compBrowserItem);
|
condition.add(compBrowserItem);
|
||||||
addGroups.add(new SearchConditionGroup("", true, condition));
|
addGroups.add(new SearchConditionGroup("", true, condition));
|
||||||
return addGroups;
|
return addGroups;
|
||||||
|
|
@ -355,7 +356,7 @@ public class CompServiceImpl extends Service implements CompService {
|
||||||
@Override
|
@Override
|
||||||
public int moveCompany(DepartmentMoveParam moveParam) {
|
public int moveCompany(DepartmentMoveParam moveParam) {
|
||||||
Long targetCompanyId = moveParam.getCompany();
|
Long targetCompanyId = moveParam.getCompany();
|
||||||
OrganizationAssert.notNull(targetCompanyId, "请选择要转移到的分部");
|
//OrganizationAssert.notNull(targetCompanyId, "请选择要转移到的分部");
|
||||||
Long companyId = moveParam.getId();
|
Long companyId = moveParam.getId();
|
||||||
// 判断目标分部是否为它本身以及子元素
|
// 判断目标分部是否为它本身以及子元素
|
||||||
Set<Long> disableIds = new HashSet<>();
|
Set<Long> disableIds = new HashSet<>();
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@ public class GradeServiceImpl extends Service implements GradeService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getLevelId(Long id) {
|
public String getLevelId(Long id) {
|
||||||
return MapperProxyFactory.getProxy(GradeMapper.class).getGradeByID(id).getLevelId();
|
return id != null ? MapperProxyFactory.getProxy(GradeMapper.class).getGradeByID(id).getLevelId() : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@ import com.engine.organization.util.relation.EcHrmRelationUtil;
|
||||||
import com.engine.organization.util.tree.SearchTreeUtil;
|
import com.engine.organization.util.tree.SearchTreeUtil;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
import weaver.conn.RecordSet;
|
||||||
import weaver.general.StringUtil;
|
import weaver.general.StringUtil;
|
||||||
import weaver.general.Util;
|
import weaver.general.Util;
|
||||||
import weaver.hrm.User;
|
import weaver.hrm.User;
|
||||||
|
|
@ -455,6 +456,16 @@ public class JobServiceImpl extends Service implements JobService {
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getHrmListByJobId(Long jobId) {
|
public Map<String, Object> getHrmListByJobId(Long jobId) {
|
||||||
OrganizationWeaTable<EmployeeTableVO> table = new OrganizationWeaTable<>(user, EmployeeTableVO.class);
|
OrganizationWeaTable<EmployeeTableVO> table = new OrganizationWeaTable<>(user, EmployeeTableVO.class);
|
||||||
|
RecordSet rs = new RecordSet();
|
||||||
|
List<String> ids = new ArrayList<>();
|
||||||
|
rs.executeQuery("select id from cus_fielddata where field100002 = ?",jobId);
|
||||||
|
while (rs.next()) {
|
||||||
|
ids.add(Util.null2String(rs.getString("id")));
|
||||||
|
}
|
||||||
|
if (CollectionUtils.isEmpty(ids)){
|
||||||
|
ids.add("-1");
|
||||||
|
}
|
||||||
|
table.setSqlwhere(" where id in ("+StringUtils.join(ids,",")+") and status<4");
|
||||||
WeaResultMsg result = new WeaResultMsg(false);
|
WeaResultMsg result = new WeaResultMsg(false);
|
||||||
result.putAll(table.makeDataResult());
|
result.putAll(table.makeDataResult());
|
||||||
result.success();
|
result.success();
|
||||||
|
|
|
||||||
|
|
@ -182,6 +182,14 @@ public class SequenceServiceImpl extends Service implements SequenceService {
|
||||||
return apiDatas;
|
return apiDatas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> getSchemeInfo(Map<String, Object> params) {
|
||||||
|
String sequenceId = Util.null2String(params.get("sequenceId"));
|
||||||
|
SequencePO sequencePO = getSequenceMapper().getSequenceByID(Long.parseLong(sequenceId));
|
||||||
|
List<Map<String, Object>> maps = getSchemeMapper().listSchemesByIds(DeleteParam.builder().ids(sequencePO.getSchemeId().toString()).build().getIds());
|
||||||
|
return maps.get(0);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询条件
|
* 查询条件
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -202,4 +202,20 @@ public class SequenceController {
|
||||||
return ReturnResult.exceptionHandle(e);
|
return ReturnResult.exceptionHandle(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("/getSchemeInfo")
|
||||||
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
|
public ReturnResult getSchemeInfo(@Context HttpServletRequest request, @Context HttpServletResponse response) {
|
||||||
|
try {
|
||||||
|
User user = HrmUserVarify.getUser(request, response);
|
||||||
|
Map<String, Object> map = ParamUtil.request2Map(request);
|
||||||
|
return ReturnResult.successed(getSequenceWrapper(user).getSchemeInfo(map));
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ReturnResult.exceptionHandle(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,7 @@ public class JobWrapper extends OrganizationWrapper {
|
||||||
public ReturnResult getCopyForm() {
|
public ReturnResult getCopyForm() {
|
||||||
List<SearchConditionGroup> addGroups = new ArrayList<>();
|
List<SearchConditionGroup> addGroups = new ArrayList<>();
|
||||||
List<SearchConditionItem> condition = new ArrayList<>();
|
List<SearchConditionItem> condition = new ArrayList<>();
|
||||||
SearchConditionItem deptBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 3, false, "复制到", "161", "department", "deptBrowser");
|
SearchConditionItem deptBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 3, false, "复制到", "4", "department", "deptBrowser");
|
||||||
deptBrowserItem.setRules("required|string");
|
deptBrowserItem.setRules("required|string");
|
||||||
condition.add(deptBrowserItem);
|
condition.add(deptBrowserItem);
|
||||||
addGroups.add(new SearchConditionGroup("", true, condition));
|
addGroups.add(new SearchConditionGroup("", true, condition));
|
||||||
|
|
|
||||||
|
|
@ -140,4 +140,9 @@ public class SequenceWrapper extends OrganizationWrapper {
|
||||||
public Map<String, Object> getTabInfo() {
|
public Map<String, Object> getTabInfo() {
|
||||||
return getSequenceService(user).getTabInfo();
|
return getSequenceService(user).getTabInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Map<String, Object> getSchemeInfo(Map<String, Object> map) {
|
||||||
|
return getSequenceService(user).getSchemeInfo(map);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue