联查岗位 请求方式

pull/54/MERGE^2
dxfeng 3 years ago
parent 8bfedbd2a7
commit 0282af7be6

@ -48,13 +48,15 @@ public class DepartmentController {
} }
} }
@POST @GET
@Path("/getJobListByPid") @Path("/getJobListByPid")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
public ReturnResult getJobListByPid(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody QuerySingleDeptListParam querySingleDeptListParam) { public ReturnResult getJobListByPid(@Context HttpServletRequest request, @Context HttpServletResponse response) {
try { try {
User user = HrmUserVarify.getUser(request, response); User user = HrmUserVarify.getUser(request, response);
return ReturnResult.successed(getDepartmentWrapper(user).getJobListByPid(querySingleDeptListParam)); Map<String, Object> map = ParamUtil.request2Map(request);
String parentDept = (String) map.get("parentDept");
return ReturnResult.successed(getDepartmentWrapper(user).getJobListByPid(QuerySingleDeptListParam.builder().parentDept(Long.parseLong(parentDept)).build()));
} catch (Exception e) { } catch (Exception e) {
return ReturnResult.exceptionHandle(e.getMessage()); return ReturnResult.exceptionHandle(e.getMessage());
} }

Loading…
Cancel
Save