新增查看所有审批通过的JD
This commit is contained in:
parent
7b7e282e18
commit
4b56200d3f
|
@ -372,6 +372,16 @@ public class RecruitProcessController extends BaseController {
|
|||
}
|
||||
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('recruit:jd:list')")
|
||||
@GetMapping("/jd/list")
|
||||
@ApiOperation(value = "审批-《我已审批》分页/条件查询获取表单")
|
||||
public TableDataInfo jdList(RecruitProcessTask task) {
|
||||
startPage();
|
||||
List<RecruitProcessTask> taskList = recruitProcessTaskService.listAllPass(task);
|
||||
//把taskList的taskId变成字符串
|
||||
return getDataTable(taskList);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/pending/getHr")
|
||||
@ApiOperation(value = "审批-《待我审批》查询所有的hr")
|
||||
|
|
|
@ -44,6 +44,8 @@ public interface RecruitProcessTaskMapper extends BaseMapper<RecruitProcessTask>
|
|||
void updateReapply(@Param("taskId") String taskId);
|
||||
|
||||
void updateUnBindHR(@Param("taskId") String taskId);
|
||||
|
||||
List<RecruitProcessTask> listAllPass(RecruitProcessTask task);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -44,4 +44,6 @@ public interface RecruitProcessTaskService extends IService<RecruitProcessTask>
|
|||
void updateReapply(String taskId);
|
||||
|
||||
void updateUnBindHR(String taskId);
|
||||
|
||||
List<RecruitProcessTask> listAllPass(RecruitProcessTask task);
|
||||
}
|
||||
|
|
|
@ -146,6 +146,11 @@ public class RecruitProcessTaskServiceImpl extends ServiceImpl<RecruitProcessTas
|
|||
recruitProcessTaskMapper.updateUnBindHR(taskId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RecruitProcessTask> listAllPass(RecruitProcessTask task) {
|
||||
return recruitProcessTaskMapper.listAllPass(task);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 处理流程节点
|
||||
|
|
|
@ -266,4 +266,20 @@
|
|||
update recruit_process_task set hr_id=null ,hr_name=null where task_id=#{taskId}
|
||||
</update>
|
||||
|
||||
<select id="listAllPass" resultMap="BaseResultMap">
|
||||
select * from recruit_process_task where status='approved'
|
||||
<if test="postName != null and postName != ''">
|
||||
and post_name like concat('%', #{postName}, '%')
|
||||
</if>
|
||||
<if test="applyDate != null">
|
||||
and apply_date = #{applyDate}
|
||||
</if>
|
||||
<if test="deptId != null">
|
||||
and dept_id = #{deptId}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
and status = #{status}
|
||||
</if>
|
||||
order by apply_date desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue