commit
a45d60434e
|
|
@ -22,7 +22,7 @@ import java.util.stream.Collectors;
|
|||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class QueryParam {
|
||||
public class DeleteParam {
|
||||
private String ids;
|
||||
|
||||
public Collection<Long> getIds() {
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
package com.engine.organization.entity.employee.vo;
|
||||
|
||||
/**
|
||||
* @description: TODO
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/05/31
|
||||
* @version: 1.0
|
||||
*/
|
||||
|
||||
import com.cloudstore.eccom.pc.table.WeaTableType;
|
||||
import com.engine.organization.annotation.OrganizationTable;
|
||||
import com.engine.organization.annotation.OrganizationTableColumn;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OrganizationTable(pageId = "80e7830c-18e8-4e14-8241-18821195ef31",
|
||||
fields = "t.id," +
|
||||
"t.lastname," +
|
||||
"t.sex",
|
||||
fromSql = "FROM HrmResource t ",
|
||||
orderby = "id desc",
|
||||
primarykey = "id",
|
||||
tableType = WeaTableType.NONE
|
||||
)
|
||||
public class EmployeeTableVO {
|
||||
|
||||
@OrganizationTableColumn(column = "id", display = false)
|
||||
private Long id;
|
||||
|
||||
@OrganizationTableColumn(text = "姓名", width = "50%", column = "lastname")
|
||||
private String lastname;
|
||||
|
||||
@OrganizationTableColumn(text = "性别", width = "50%", column = "sex")
|
||||
private String sex;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
package com.engine.organization.entity.employee.vo;
|
||||
|
||||
/**
|
||||
* @description: TODO
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/05/31
|
||||
* @version: 1.0
|
||||
*/
|
||||
public class EmployeeVO {
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 分部
|
||||
*/
|
||||
private String companyName;
|
||||
|
||||
/**
|
||||
* 部门
|
||||
*/
|
||||
private String departmentName;
|
||||
|
||||
/**
|
||||
* 直接上级
|
||||
*/
|
||||
private String manager;
|
||||
|
||||
}
|
||||
|
|
@ -97,4 +97,5 @@ public interface JobService {
|
|||
*/
|
||||
int deleteByIds(Collection<Long> ids);
|
||||
|
||||
Map<String, Object> getHrmListByJobId(Long jobId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import com.api.browser.bean.SearchConditionItem;
|
|||
import com.cloudstore.eccom.result.WeaResultMsg;
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.organization.component.OrganizationWeaTable;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.TopTab;
|
||||
import com.engine.organization.entity.scheme.dto.GradeDTO;
|
||||
import com.engine.organization.entity.scheme.param.GradeSearchParam;
|
||||
|
|
@ -131,12 +131,12 @@ public class GradeServiceImpl extends Service implements GradeService {
|
|||
levelBrowserItem.setValue(gradePO.getLevelId());
|
||||
|
||||
BrowserBean schemeBrowserBean = schemeBrowserItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> schemeMaps = getSchemeMapper().listSchemesByIds(QueryParam.builder().ids(gradePO.getSchemeId().toString()).build().getIds());
|
||||
List<Map<String, Object>> schemeMaps = getSchemeMapper().listSchemesByIds(DeleteParam.builder().ids(gradePO.getSchemeId().toString()).build().getIds());
|
||||
schemeBrowserBean.setReplaceDatas(schemeMaps);
|
||||
schemeBrowserItem.setBrowserConditionParam(schemeBrowserBean);
|
||||
|
||||
BrowserBean levelBrowserBean = levelBrowserItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> levelMaps = getLevelMapper().listLevelsByIds(QueryParam.builder().ids(gradePO.getLevelId()).build().getIds());
|
||||
List<Map<String, Object>> levelMaps = getLevelMapper().listLevelsByIds(DeleteParam.builder().ids(gradePO.getLevelId()).build().getIds());
|
||||
levelBrowserBean.setReplaceDatas(levelMaps);
|
||||
levelBrowserItem.setBrowserConditionParam(levelBrowserBean);
|
||||
|
||||
|
|
|
|||
|
|
@ -11,12 +11,13 @@ import com.cloudstore.eccom.result.WeaResultMsg;
|
|||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.organization.component.OrganizationWeaTable;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.company.bo.CompBO;
|
||||
import com.engine.organization.entity.company.po.CompPO;
|
||||
import com.engine.organization.entity.department.bo.DepartmentBO;
|
||||
import com.engine.organization.entity.department.dto.DepartmentListDTO;
|
||||
import com.engine.organization.entity.department.po.DepartmentPO;
|
||||
import com.engine.organization.entity.employee.vo.EmployeeTableVO;
|
||||
import com.engine.organization.entity.extend.bo.ExtendInfoBO;
|
||||
import com.engine.organization.entity.extend.po.ExtendInfoPO;
|
||||
import com.engine.organization.entity.job.bo.JobBO;
|
||||
|
|
@ -387,7 +388,7 @@ public class JobServiceImpl extends Service implements JobService {
|
|||
// 根据等级方案查询职等、职级
|
||||
List<GradePO> gradePOS = MapperProxyFactory.getProxy(GradeMapper.class).listGradesBySchemeId(jobPO.getSchemeId());
|
||||
for (GradePO gradePO : gradePOS) {
|
||||
List<Map<String, Object>> maps = MapperProxyFactory.getProxy(LevelMapper.class).listLevelsByIds(QueryParam.builder().ids(gradePO.getLevelId()).build().getIds());
|
||||
List<Map<String, Object>> maps = MapperProxyFactory.getProxy(LevelMapper.class).listLevelsByIds(DeleteParam.builder().ids(gradePO.getLevelId()).build().getIds());
|
||||
String levelNames = maps.stream().map(item -> (String) item.get("name")).collect(Collectors.joining(","));
|
||||
insertCount += getJobDTMapper().insertIgnoreNull(JobDTPO.builder().levelId(gradePO.getLevelId()).gradeId(gradePO.getId() + "").levelIdspan(levelNames).gradeIdspan(gradePO.getGradeName()).mainId(jobPO.getId()).creator((long) user.getUID()).deleteType(0).createTime(new Date()).updateTime(new Date()).build());
|
||||
}
|
||||
|
|
@ -444,6 +445,15 @@ public class JobServiceImpl extends Service implements JobService {
|
|||
return getJobMapper().deleteByIds(deleteIds);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getHrmListByJobId(Long jobId) {
|
||||
OrganizationWeaTable<EmployeeTableVO> table = new OrganizationWeaTable<>(user, EmployeeTableVO.class);
|
||||
WeaResultMsg result = new WeaResultMsg(false);
|
||||
result.putAll(table.makeDataResult());
|
||||
result.success();
|
||||
return result.getResultMap();
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加查询元素的父级元素
|
||||
*
|
||||
|
|
@ -557,7 +567,7 @@ public class JobServiceImpl extends Service implements JobService {
|
|||
// 添加部门的上级分部
|
||||
String parentCompS = deptTrees.stream().map(SearchTree::getParentComp).collect(Collectors.joining(","));
|
||||
if (!StringUtil.isEmpty(parentCompS)) {
|
||||
List<CompPO> compsByIds = getCompMapper().getCompsByIds(QueryParam.builder().ids(parentCompS).build().getIds());
|
||||
List<CompPO> compsByIds = getCompMapper().getCompsByIds(DeleteParam.builder().ids(parentCompS).build().getIds());
|
||||
if (CollectionUtils.isNotEmpty(compsByIds)) {
|
||||
filterComps.addAll(compsByIds);
|
||||
}
|
||||
|
|
@ -730,31 +740,31 @@ public class JobServiceImpl extends Service implements JobService {
|
|||
|
||||
if (null != jobPO.getParentComp()) {
|
||||
BrowserBean browserBean = parentCompBrowserItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> compMaps = getCompMapper().listCompsByIds(QueryParam.builder().ids(jobPO.getParentComp().toString()).build().getIds());
|
||||
List<Map<String, Object>> compMaps = getCompMapper().listCompsByIds(DeleteParam.builder().ids(jobPO.getParentComp().toString()).build().getIds());
|
||||
browserBean.setReplaceDatas(compMaps);
|
||||
parentCompBrowserItem.setBrowserConditionParam(browserBean);
|
||||
}
|
||||
if (null != jobPO.getParentDept()) {
|
||||
BrowserBean browserBean = parentDeptBrowserItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> deptMaps = getDepartmentMapper().listDeptsByIds(QueryParam.builder().ids(jobPO.getParentDept().toString()).build().getIds());
|
||||
List<Map<String, Object>> deptMaps = getDepartmentMapper().listDeptsByIds(DeleteParam.builder().ids(jobPO.getParentDept().toString()).build().getIds());
|
||||
browserBean.setReplaceDatas(deptMaps);
|
||||
parentDeptBrowserItem.setBrowserConditionParam(browserBean);
|
||||
}
|
||||
if (null != jobPO.getSequenceId()) {
|
||||
BrowserBean browserBean = sequenceBrowserItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> deptMaps = getSequenceMapper().listSequencesByIds(QueryParam.builder().ids(jobPO.getSequenceId().toString()).build().getIds());
|
||||
List<Map<String, Object>> deptMaps = getSequenceMapper().listSequencesByIds(DeleteParam.builder().ids(jobPO.getSequenceId().toString()).build().getIds());
|
||||
browserBean.setReplaceDatas(deptMaps);
|
||||
sequenceBrowserItem.setBrowserConditionParam(browserBean);
|
||||
}
|
||||
if (null != jobPO.getSchemeId()) {
|
||||
BrowserBean browserBean = schemeBrowserItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> deptMaps = getSchemeMapper().listSchemesByIds(QueryParam.builder().ids(jobPO.getSchemeId().toString()).build().getIds());
|
||||
List<Map<String, Object>> deptMaps = getSchemeMapper().listSchemesByIds(DeleteParam.builder().ids(jobPO.getSchemeId().toString()).build().getIds());
|
||||
browserBean.setReplaceDatas(deptMaps);
|
||||
schemeBrowserItem.setBrowserConditionParam(browserBean);
|
||||
}
|
||||
if (null != jobPO.getParentJob()) {
|
||||
BrowserBean browserBean = parentJobBrowserItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> deptMaps = getJobMapper().listJobsByIds(QueryParam.builder().ids(jobPO.getParentJob().toString()).build().getIds());
|
||||
List<Map<String, Object>> deptMaps = getJobMapper().listJobsByIds(DeleteParam.builder().ids(jobPO.getParentJob().toString()).build().getIds());
|
||||
browserBean.setReplaceDatas(deptMaps);
|
||||
schemeBrowserItem.setBrowserConditionParam(browserBean);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import com.api.browser.bean.SearchConditionItem;
|
|||
import com.cloudstore.eccom.result.WeaResultMsg;
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.organization.component.OrganizationWeaTable;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.TopTab;
|
||||
import com.engine.organization.entity.scheme.dto.LevelDTO;
|
||||
import com.engine.organization.entity.scheme.param.LevelSearchParam;
|
||||
|
|
@ -123,7 +123,7 @@ public class LevelServiceImpl extends Service implements LevelService {
|
|||
browserItem.setValue(levelPO.getSchemeId());
|
||||
|
||||
BrowserBean browserBean = browserItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> maps = getSchemeMapper().listSchemesByIds(QueryParam.builder().ids(levelPO.getSchemeId().toString()).build().getIds());
|
||||
List<Map<String, Object>> maps = getSchemeMapper().listSchemesByIds(DeleteParam.builder().ids(levelPO.getSchemeId().toString()).build().getIds());
|
||||
|
||||
browserBean.setReplaceDatas(maps);
|
||||
browserItem.setBrowserConditionParam(browserBean);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import com.api.browser.bean.SearchConditionItem;
|
|||
import com.cloudstore.eccom.result.WeaResultMsg;
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.organization.component.OrganizationWeaTable;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.postion.dto.PostInfoDTO;
|
||||
import com.engine.organization.entity.postion.param.PostInfoSearchParam;
|
||||
import com.engine.organization.entity.postion.po.PostInfoPO;
|
||||
|
|
@ -135,7 +135,7 @@ public class PostInfoServiceImpl extends Service implements PostInfoService {
|
|||
descriptionItem.setValue(postInfoPO.getDescription());
|
||||
|
||||
BrowserBean browserBean = postIdBrowser.getBrowserConditionParam();
|
||||
List<Map<String, Object>> maps = getPostMapper().listPostsByIds(QueryParam.builder().ids(postInfoPO.getPostId().toString()).build().getIds());
|
||||
List<Map<String, Object>> maps = getPostMapper().listPostsByIds(DeleteParam.builder().ids(postInfoPO.getPostId().toString()).build().getIds());
|
||||
|
||||
browserBean.setReplaceDatas(maps);
|
||||
postIdBrowser.setBrowserConditionParam(browserBean);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import com.api.browser.bean.SearchConditionItem;
|
|||
import com.cloudstore.eccom.result.WeaResultMsg;
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.organization.component.OrganizationWeaTable;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.TopTab;
|
||||
import com.engine.organization.entity.sequence.dto.SequenceDTO;
|
||||
import com.engine.organization.entity.sequence.param.SequenceSearchParam;
|
||||
|
|
@ -123,7 +123,7 @@ public class SequenceServiceImpl extends Service implements SequenceService {
|
|||
browserItem.setValue(sequencePO.getSchemeId());
|
||||
|
||||
BrowserBean browserBean = browserItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> maps = getSchemeMapper().listSchemesByIds(QueryParam.builder().ids(sequencePO.getSchemeId().toString()).build().getIds());
|
||||
List<Map<String, Object>> maps = getSchemeMapper().listSchemesByIds(DeleteParam.builder().ids(sequencePO.getSchemeId().toString()).build().getIds());
|
||||
|
||||
browserBean.setReplaceDatas(maps);
|
||||
browserItem.setBrowserConditionParam(browserBean);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import com.api.browser.bean.SearchConditionOption;
|
|||
import com.cloudstore.eccom.result.WeaResultMsg;
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.organization.component.OrganizationWeaTable;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.staff.bo.StaffPlanBO;
|
||||
import com.engine.organization.entity.staff.param.StaffPlanSearchParam;
|
||||
import com.engine.organization.entity.staff.po.StaffPlanPO;
|
||||
|
|
@ -162,7 +162,7 @@ public class StaffPlanServiceImpl extends Service implements StaffPlanService {
|
|||
timeEndItem.setValue(staffPlanPO.getTimeEnd());
|
||||
|
||||
BrowserBean browserBean = companyIdtItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> maps = getCompMapper().listCompsByIds(QueryParam.builder().ids(staffPlanPO.getCompanyId()).build().getIds());
|
||||
List<Map<String, Object>> maps = getCompMapper().listCompsByIds(DeleteParam.builder().ids(staffPlanPO.getCompanyId()).build().getIds());
|
||||
browserBean.setReplaceDatas(maps);
|
||||
companyIdtItem.setBrowserConditionParam(browserBean);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import com.api.browser.bean.SearchConditionOption;
|
|||
import com.cloudstore.eccom.result.WeaResultMsg;
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.organization.component.OrganizationWeaTable;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.staff.bo.StaffBO;
|
||||
import com.engine.organization.entity.staff.param.StaffSearchParam;
|
||||
import com.engine.organization.entity.staff.po.StaffPO;
|
||||
|
|
@ -178,22 +178,22 @@ public class StaffServiceImpl extends Service implements StaffService {
|
|||
OrganizationAssert.notNull(staffPO, "选择的数据不存在,或数据已删除");
|
||||
|
||||
BrowserBean planIdItemBean = planIdItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> planIdMaps = getStaffPlanMapper().listPlansByIds(QueryParam.builder().ids(staffPO.getPlanId().toString()).build().getIds());
|
||||
List<Map<String, Object>> planIdMaps = getStaffPlanMapper().listPlansByIds(DeleteParam.builder().ids(staffPO.getPlanId().toString()).build().getIds());
|
||||
planIdItemBean.setReplaceDatas(planIdMaps);
|
||||
planIdItem.setBrowserConditionParam(planIdItemBean);
|
||||
|
||||
BrowserBean compIdItemBean = compIdItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> compIdMaps = getCompMapper().listCompsByIds(QueryParam.builder().ids(staffPO.getPlanId().toString()).build().getIds());
|
||||
List<Map<String, Object>> compIdMaps = getCompMapper().listCompsByIds(DeleteParam.builder().ids(staffPO.getPlanId().toString()).build().getIds());
|
||||
compIdItemBean.setReplaceDatas(compIdMaps);
|
||||
compIdItem.setBrowserConditionParam(compIdItemBean);
|
||||
|
||||
BrowserBean deptIdItemBean = deptIdItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> deptIdMaps = getDepartmentMapper().listDeptsByIds(QueryParam.builder().ids(staffPO.getPlanId().toString()).build().getIds());
|
||||
List<Map<String, Object>> deptIdMaps = getDepartmentMapper().listDeptsByIds(DeleteParam.builder().ids(staffPO.getPlanId().toString()).build().getIds());
|
||||
deptIdItemBean.setReplaceDatas(deptIdMaps);
|
||||
deptIdItem.setBrowserConditionParam(deptIdItemBean);
|
||||
|
||||
BrowserBean jobIdItemBean = jobIdItem.getBrowserConditionParam();
|
||||
List<Map<String, Object>> jobIdMaps = getJobMapper().listJobsByIds(QueryParam.builder().ids(staffPO.getPlanId().toString()).build().getIds());
|
||||
List<Map<String, Object>> jobIdMaps = getJobMapper().listJobsByIds(DeleteParam.builder().ids(staffPO.getPlanId().toString()).build().getIds());
|
||||
jobIdItemBean.setReplaceDatas(jobIdMaps);
|
||||
jobIdItem.setBrowserConditionParam(jobIdItemBean);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package com.engine.organization.transmethod;
|
||||
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.mapper.comp.CompMapper;
|
||||
import com.engine.organization.util.db.MapperProxyFactory;
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ public class CompTransMethod {
|
|||
|
||||
public static String getSpanById(String planId) {
|
||||
CompMapper compMapper = MapperProxyFactory.getProxy(CompMapper.class);
|
||||
List<Map<String, Object>> maps = compMapper.listCompsByIds(QueryParam.builder().ids(planId).build().getIds());
|
||||
List<Map<String, Object>> maps = compMapper.listCompsByIds(DeleteParam.builder().ids(planId).build().getIds());
|
||||
String names = maps.stream().map(item -> (String) item.get("name")).collect(Collectors.joining(","));
|
||||
return names;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package com.engine.organization.transmethod;
|
||||
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.mapper.department.DepartmentMapper;
|
||||
import com.engine.organization.util.db.MapperProxyFactory;
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ public class DepartmentTransMethod {
|
|||
|
||||
public static String getSpanById(String planId) {
|
||||
DepartmentMapper departmentMapper = MapperProxyFactory.getProxy(DepartmentMapper.class);
|
||||
List<Map<String, Object>> maps = departmentMapper.listDeptsByIds(QueryParam.builder().ids(planId).build().getIds());
|
||||
List<Map<String, Object>> maps = departmentMapper.listDeptsByIds(DeleteParam.builder().ids(planId).build().getIds());
|
||||
String names = maps.stream().map(item -> (String) item.get("name")).collect(Collectors.joining(","));
|
||||
return names;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public class JobTransMethod {
|
|||
|
||||
public static String getSpanById(String planId) {
|
||||
//JobMapper compMapper = MapperProxyFactory.getProxy(CompMapper.class);
|
||||
//List<Map<String, Object>> maps = compMapper.listCompsByIds(QueryParam.builder().ids(planId).build().getIds());
|
||||
//List<Map<String, Object>> maps = compMapper.listCompsByIds(DeleteParam.builder().ids(planId).build().getIds());
|
||||
//String names = maps.stream().map(item -> (String) item.get("name")).collect(Collectors.joining(","));
|
||||
//return names;
|
||||
return "";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package com.engine.organization.transmethod;
|
||||
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.mapper.scheme.LevelMapper;
|
||||
import com.engine.organization.util.db.MapperProxyFactory;
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ public class LevelTransMethod {
|
|||
|
||||
public static String getLevelId(String levelId) {
|
||||
LevelMapper levelMapper = MapperProxyFactory.getProxy(LevelMapper.class);
|
||||
List<Map<String, Object>> maps = levelMapper.listLevelsByIds(QueryParam.builder().ids(levelId).build().getIds());
|
||||
List<Map<String, Object>> maps = levelMapper.listLevelsByIds(DeleteParam.builder().ids(levelId).build().getIds());
|
||||
String levelName = maps.stream().map(item -> (String) item.get("name")).collect(Collectors.joining(","));
|
||||
return levelName;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package com.engine.organization.transmethod;
|
||||
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.mapper.staff.StaffPlanMapper;
|
||||
import com.engine.organization.util.db.MapperProxyFactory;
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ public class StaffPlanTransMethod {
|
|||
|
||||
public static String getSpanById(String planId) {
|
||||
StaffPlanMapper planMapper = MapperProxyFactory.getProxy(StaffPlanMapper.class);
|
||||
List<Map<String, Object>> maps = planMapper.listPlansByIds(QueryParam.builder().ids(planId).build().getIds());
|
||||
List<Map<String, Object>> maps = planMapper.listPlansByIds(DeleteParam.builder().ids(planId).build().getIds());
|
||||
String names = maps.stream().map(item -> (String) item.get("name")).collect(Collectors.joining(","));
|
||||
return names;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.engine.organization.web;
|
|||
|
||||
import com.engine.common.util.ParamUtil;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.company.param.CompSearchParam;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import com.engine.organization.wrapper.CompWrapper;
|
||||
|
|
@ -124,7 +124,7 @@ public class CompController {
|
|||
@POST
|
||||
@Path("/deleteByIds")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QueryParam param) {
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody DeleteParam param) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(getCompWrapper(user).deleteByIds(param.getIds()));
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.engine.organization.web;
|
|||
|
||||
import com.engine.common.util.ParamUtil;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.department.param.DeptSearchParam;
|
||||
import com.engine.organization.entity.department.param.QuerySingleDeptListParam;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
|
|
@ -138,7 +138,7 @@ public class DepartmentController {
|
|||
@POST
|
||||
@Path("/deleteByIds")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QueryParam param) {
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody DeleteParam param) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(getDepartmentWrapper(user).deleteByIds(param.getIds()));
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.engine.organization.web;
|
|||
|
||||
import com.engine.common.util.ParamUtil;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.scheme.param.GradeSearchParam;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import com.engine.organization.wrapper.GradeWrapper;
|
||||
|
|
@ -122,7 +122,7 @@ public class GradeController {
|
|||
@POST
|
||||
@Path("/deleteByIds")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QueryParam param) {
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody DeleteParam param) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(getGradeWrapper(user).deleteByIds(param.getIds()));
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import com.alibaba.fastjson.JSON;
|
|||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.engine.common.util.ParamUtil;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.job.param.JobSearchParam;
|
||||
import com.engine.organization.entity.searchtree.SearchTreeParams;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
|
|
@ -15,10 +15,7 @@ import weaver.hrm.User;
|
|||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.*;
|
||||
import javax.ws.rs.core.Context;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import java.util.Map;
|
||||
|
|
@ -194,7 +191,7 @@ public class JobController {
|
|||
@POST
|
||||
@Path("/deleteByIds")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QueryParam param) {
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody DeleteParam param) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(getJobWrapper(user).deleteByIds(param.getIds()));
|
||||
|
|
@ -242,4 +239,31 @@ public class JobController {
|
|||
}
|
||||
|
||||
|
||||
@GET
|
||||
@Path("/getCopyForm")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult getCopyForm(@Context HttpServletRequest request, @Context HttpServletResponse response) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return getJobWrapper(user).getCopyForm();
|
||||
} catch (Exception e) {
|
||||
return ReturnResult.exceptionHandle(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@GET
|
||||
@Path("/getHrmListByJobId")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult getHrmListByJobId(@Context HttpServletRequest request, @Context HttpServletResponse response,
|
||||
@QueryParam("jobId") Long jobId) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return getJobWrapper(user).getHrmListByJobId(jobId);
|
||||
} catch (Exception e) {
|
||||
return ReturnResult.exceptionHandle(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.engine.organization.web;
|
|||
|
||||
import com.engine.common.util.ParamUtil;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.scheme.param.LevelSearchParam;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import com.engine.organization.wrapper.LevelWrapper;
|
||||
|
|
@ -122,7 +122,7 @@ public class LevelController {
|
|||
@POST
|
||||
@Path("/deleteByIds")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QueryParam param) {
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody DeleteParam param) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(getLevelWrapper(user).deleteByIds(param.getIds()));
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.engine.organization.web;
|
|||
|
||||
import com.engine.common.util.ParamUtil;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.postion.po.PostPO;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import com.engine.organization.wrapper.PostWrapper;
|
||||
|
|
@ -84,7 +84,7 @@ public class PostController {
|
|||
@POST
|
||||
@Path("/deleteByIds")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QueryParam param) {
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody DeleteParam param) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(getPostWrapper(user).deleteByIds(param.getIds()));
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.engine.organization.web;
|
|||
|
||||
import com.engine.common.util.ParamUtil;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.postion.param.PostInfoSearchParam;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import com.engine.organization.wrapper.PostInfoWrapper;
|
||||
|
|
@ -122,7 +122,7 @@ public class PostInfoController {
|
|||
@POST
|
||||
@Path("/deleteByIds")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QueryParam param) {
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody DeleteParam param) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(getPostInfoWrapper(user).deleteByIds(param.getIds()));
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.engine.organization.web;
|
|||
|
||||
import com.engine.common.util.ParamUtil;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.scheme.param.SchemeSearchParam;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import com.engine.organization.wrapper.SchemeWrapper;
|
||||
|
|
@ -128,7 +128,7 @@ public class SchemeController {
|
|||
@POST
|
||||
@Path("/deleteByIds")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QueryParam param) {
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody DeleteParam param) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
getSchemeWrapper(user).deleteByIds(param.getIds());
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.engine.organization.web;
|
|||
|
||||
import com.engine.common.util.ParamUtil;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.sequence.param.SequenceSearchParam;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import com.engine.organization.wrapper.SequenceWrapper;
|
||||
|
|
@ -122,7 +122,7 @@ public class SequenceController {
|
|||
@POST
|
||||
@Path("/deleteByIds")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QueryParam param) {
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody DeleteParam param) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(getSequenceWrapper(user).deleteByIds(param.getIds()));
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import com.alibaba.fastjson.JSON;
|
|||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.engine.common.util.ParamUtil;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.staff.param.StaffSearchParam;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import com.engine.organization.wrapper.StaffWrapper;
|
||||
|
|
@ -105,7 +105,7 @@ public class StaffController {
|
|||
@POST
|
||||
@Path("/deleteByIds")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QueryParam param) {
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody DeleteParam param) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(getStaffWrapper(user).deleteByIds(param.getIds()));
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import com.alibaba.fastjson.JSON;
|
|||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.engine.common.util.ParamUtil;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.QueryParam;
|
||||
import com.engine.organization.entity.DeleteParam;
|
||||
import com.engine.organization.entity.staff.param.StaffPlanSearchParam;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import com.engine.organization.wrapper.StaffPlanWrapper;
|
||||
|
|
@ -125,7 +125,7 @@ public class StaffPlanController {
|
|||
@POST
|
||||
@Path("/deleteByIds")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QueryParam param) {
|
||||
public ReturnResult deleteByIds(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody DeleteParam param) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(getStaffPlanWrapper(user).deleteByIds(param.getIds()));
|
||||
|
|
|
|||
|
|
@ -1,14 +1,19 @@
|
|||
package com.engine.organization.wrapper;
|
||||
|
||||
import com.api.browser.bean.SearchConditionItem;
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.organization.entity.job.param.JobSearchParam;
|
||||
import com.engine.organization.entity.searchtree.SearchTreeParams;
|
||||
import com.engine.organization.service.JobService;
|
||||
import com.engine.organization.service.impl.JobServiceImpl;
|
||||
import com.engine.organization.util.OrganizationFormItemUtil;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import weaver.hrm.User;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
|
|
@ -130,4 +135,25 @@ public class JobWrapper extends Service {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取复制表单
|
||||
* @return
|
||||
*/
|
||||
public ReturnResult getCopyForm() {
|
||||
List<SearchConditionItem> condition = new ArrayList<>();
|
||||
SearchConditionItem deptBrowserItem = OrganizationFormItemUtil.browserItem(user, 2, 16, 2, false, "复制到", "161", "department", "deptBrowser");
|
||||
deptBrowserItem.setRules("required|string");
|
||||
condition.add(deptBrowserItem);
|
||||
return ReturnResult.successed(condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据岗位获取人员
|
||||
* @param jobId
|
||||
* @return
|
||||
*/
|
||||
public ReturnResult getHrmListByJobId(Long jobId) {
|
||||
Map<String, Object> hrmListByJobId = getJobService(user).getHrmListByJobId(jobId);
|
||||
return ReturnResult.successed(hrmListByJobId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue