1.新增简历评级表

This commit is contained in:
lw 2024-07-05 09:46:22 +08:00
parent 067bafbd55
commit c93824e45c
6 changed files with 232 additions and 0 deletions

View File

@ -0,0 +1,35 @@
package cn.zeroerr.controller;
import cn.zeroerr.common.core.controller.BaseController;
import cn.zeroerr.common.core.domain.AjaxResult;
import cn.zeroerr.common.core.domain.entity.RecruitStructure;
import cn.zeroerr.common.core.domain.entity.SysUser;
import cn.zeroerr.domain.entity.PostGrade;
import cn.zeroerr.domain.entity.ResumeFollowRecord;
import cn.zeroerr.service.PostGradeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.time.LocalDate;
@RestController
@RequestMapping("/recruit/postGrade")
@Api(tags = "招聘管理-岗位评级")
public class RecruitPostGradeController extends BaseController {
@Autowired
private PostGradeService postGradeService;
// @PreAuthorize("@ss.hasAnyPermi('recruit:grade:add')")
// @PostMapping("/add")
// @ApiOperation(value = "增加《面试管理》简历跟进记录")
// public AjaxResult addPostGrade(@Validated @RequestBody PostGrade req) {
//
// }
}

View File

@ -0,0 +1,112 @@
package cn.zeroerr.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;
/**
*
* @TableName post_grade
*/
@TableName(value ="post_grade")
@Data
public class PostGrade implements Serializable {
/**
*
*/
@TableId(value = "grade_id", type = IdType.AUTO)
private Long gradeId;
/**
* 岗位id
*/
@TableField(value = "post_id")
private Long postId;
/**
* 岗位名
*/
@TableField(value = "post_name")
private String postName;
/**
* 申请日期
*/
@TableField(value = "apply_date")
private LocalDate applyDate;
/**
* 需求人数
*/
@TableField(value = "post_count")
private Integer postCount;
/**
* 0A 1B2C
*/
@TableField(value = "grade")
private Integer grade;
/**
* hr的id
*/
@TableField(value = "hr_id")
private Long hrId;
/**
* hr的名字
*/
@TableField(value = "hr_name")
private String hrName;
/**
* 部门id
*/
@TableField(value = "dept_id")
private Long deptId;
/**
* 部门名
*/
@TableField(value = "dept_name")
private String deptName;
/**
* 岗位评级的月份
*/
@TableField(value = "month")
private String month;
/**
* 新增日期
*/
@TableField(value = "create_date")
private LocalDate createDate;
/**
* 更新日期
*/
@TableField(value = "update_date")
private LocalDateTime updateDate;
/**
* 招聘到位周期
*/
@TableField(value = "cycle")
private Integer cycle;
/**
* 备注
*/
@TableField(value = "remark")
private String remark;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,18 @@
package cn.zeroerr.mapper;
import cn.zeroerr.domain.entity.PostGrade;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author Ze-java
* @description 针对表post_grade的数据库操作Mapper
* @createDate 2024-07-05 09:21:29
* @Entity cn.zeroerr.domain.entity.PostGrade
*/
public interface PostGradeMapper extends BaseMapper<PostGrade> {
}

View File

@ -0,0 +1,13 @@
package cn.zeroerr.service;
import cn.zeroerr.domain.entity.PostGrade;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author Ze-java
* @description 针对表post_grade的数据库操作Service
* @createDate 2024-07-05 09:21:29
*/
public interface PostGradeService extends IService<PostGrade> {
}

View File

@ -0,0 +1,22 @@
package cn.zeroerr.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zeroerr.domain.entity.PostGrade;
import cn.zeroerr.service.PostGradeService;
import cn.zeroerr.mapper.PostGradeMapper;
import org.springframework.stereotype.Service;
/**
* @author Ze-java
* @description 针对表post_grade的数据库操作Service实现
* @createDate 2024-07-05 09:21:29
*/
@Service
public class PostGradeServiceImpl extends ServiceImpl<PostGradeMapper, PostGrade>
implements PostGradeService{
}

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.zeroerr.mapper.PostGradeMapper">
<resultMap id="BaseResultMap" type="cn.zeroerr.domain.entity.PostGrade">
<id property="gradeId" column="grade_id" jdbcType="BIGINT"/>
<result property="postId" column="post_id" jdbcType="BIGINT"/>
<result property="postName" column="post_name" jdbcType="VARCHAR"/>
<result property="applyDate" column="apply_date" jdbcType="DATE"/>
<result property="postCount" column="post_count" jdbcType="INTEGER"/>
<result property="grade" column="grade" jdbcType="TINYINT"/>
<result property="hrId" column="hr_id" jdbcType="BIGINT"/>
<result property="hrName" column="hr_name" jdbcType="VARCHAR"/>
<result property="deptId" column="dept_id" jdbcType="BIGINT"/>
<result property="deptName" column="dept_name" jdbcType="VARCHAR"/>
<result property="month" column="month" jdbcType="VARCHAR"/>
<result property="createDate" column="create_date" jdbcType="DATE"/>
<result property="updateDate" column="update_date" jdbcType="TIMESTAMP"/>
<result property="cycle" column="cycle" jdbcType="INTEGER"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
grade_id,post_id,post_name,
apply_date,post_count,grade,
hr_id,hr_name,dept_id,
dept_name,month,create_date,
update_date,cycle,remark
</sql>
</mapper>