Commit 45201585 by 284718418@qq.com

1.添加招聘管理-微信公众平台表

2.招聘管理-已淘汰列表功能代码
parent fa885b8a
......@@ -116,12 +116,12 @@
</dependency>
<!-- optional这个需要为 true 热部署才有效 -->
<!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-devtools</artifactId>-->
<!--<optional>true</optional>-->
<!--<scope>runtime</scope>-->
<!--</dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>runtime</scope>
</dependency>
<!-- swagger2 -->
<dependency>
......@@ -310,7 +310,13 @@
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>3.3.0</version>
<version>3.4.1</version>
</dependency>
<!-- mybatis-plus-join -->
<dependency>
<groupId>com.github.yulichang</groupId>
<artifactId>mybatis-plus-join</artifactId>
<version>1.2.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok-maven-plugin -->
......
package cn.timer.api.bean.zpgl;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
......@@ -9,10 +10,7 @@ import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.*;
import java.util.Date;
......@@ -349,5 +347,18 @@ public class ZpglRcxx extends Model<ZpglRcxx> {
*/
@ApiModelProperty(value = "附加操作:0无,1加入人才库")
private Integer ifrck;
/**
* 逻辑删除标记0.未删除 1.删除
*/
@ApiModelProperty(value = "逻辑删除标记0.未删除 1.删除")
private Integer deleteFlag;
/**
* 淘汰原因
*/
@Transient
@TableField(exist = false)
@ApiModelProperty(value = "淘汰原因")
private String failCause;
}
package cn.timer.api.bean.zpgl;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* 招聘管理职位信息表
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-21 15:14:40
*/
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "zpgl_wxgzpt_emp_rcxx")
@Data
public class ZpglWxgzptEmpRcxx extends Model<ZpglWxgzptEmpRcxx> {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@Id
@GeneratedValue
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "编号")
private Integer id;
/**
* 人才信息ID
*/
@ApiModelProperty(value = "人才信息ID")
private Integer zpglRcxxId;
/**
* 员工档案表ID
*/
@ApiModelProperty(value = "员工档案表ID")
private Integer ygglMainEmpId;
/**
* 微信openid
*/
@ApiModelProperty(value = "微信openid")
private String openid;
/**
* 微信unionid
*/
@ApiModelProperty(value = "微信unionid")
private String unionid;
/**
* 组织机构代码
*/
@ApiModelProperty(value = "组织机构代码")
private String orgCode;
/**
* 逻辑删除标记0.未删除 1.删除
*/
@ApiModelProperty(value = "逻辑删除标记0.未删除 1.删除")
private Integer deleteFlag;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间")
private Date updateTime;
}
package cn.timer.api.bean.zpgl;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
......@@ -9,10 +10,7 @@ import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.*;
/**
* 招聘管理职位信息表
......@@ -132,5 +130,10 @@ public class ZpglZwxx extends Model<ZpglZwxx> {
*/
@ApiModelProperty(value = "组织机构代码")
private String orgCode;
/**
* 逻辑删除标记0.未删除 1.删除
*/
@ApiModelProperty(value = "逻辑删除标记0.未删除 1.删除")
private Integer deleteFlag;
}
......@@ -39,6 +39,11 @@ public class ZpglServiceImpl implements ZpglService {
zpglMslcLog.setUserName(userBean.getQyzxEmpLogin().getUsername());
String detail = "";
switch (zpglRcxxDto.getStatus()) {
case 1:
//待初筛 填充字段
detail = ZpglMessageTemplate.print(ZpglMessageTemplate.FILTERING, new String[]{
userBean.getQyzxEmpLogin().getUsername()});
break;
case 2:
//初筛通过 填充字段
zpglRcxx.setIfrck(zpglRcxxDto.getIfrck());
......
......@@ -3,6 +3,7 @@ package cn.timer.api.dao.zpgl;
import cn.timer.api.bean.zpgl.ZpglRcxx;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.yulichang.base.MPJBaseMapper;
import org.springframework.stereotype.Repository;
/**
......@@ -13,6 +14,6 @@ import org.springframework.stereotype.Repository;
* @date 2022-03-08 15:14:40
*/
@Repository
public interface ZpglRcxxMapper extends BaseMapper<ZpglRcxx> {
public interface ZpglRcxxMapper extends MPJBaseMapper<ZpglRcxx> {
}
package cn.timer.api.dao.zpgl;
import cn.timer.api.bean.zpgl.ZpglWxgzptEmpRcxx;
import com.github.yulichang.base.MPJBaseMapper;
import org.springframework.stereotype.Repository;
/**
* 招聘管理人才信息表
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-21 15:14:40
*/
@Repository
public interface ZpglWxgzptEmpRcxxMapper extends MPJBaseMapper<ZpglWxgzptEmpRcxx> {
}
......@@ -34,9 +34,9 @@ public class ZpglRcxxDto implements Serializable{
private Integer id;
/**
* 状态 1:待初筛 2:初筛通过 3:已安排面试 4:已面试 5:面试通过 6:拟录用 7:已发Offer 8:待入职 9已淘汰
* 状态 1:待初筛 2:初筛通过 3:已安排面试 4:已面试 5:面试通过 6:拟录用 7:已发Offer 8:待入职 9已淘汰 10已入职
*/
@ApiModelProperty(value = "状态 1:待初筛 2:初筛通过 3:已安排面试 4:已面试 5:面试通过 6:拟录用 7:已发Offer 8:待入职 9已淘汰")
@ApiModelProperty(value = "状态 1:待初筛 2:初筛通过 3:已安排面试 4:已面试 5:面试通过 6:拟录用 7:已发Offer 8:待入职 9已淘汰 10已入职")
private Integer status;
/**
......
package cn.timer.api.dto.zpgl;
import cn.timer.api.config.exception.Regular;
import cn.timer.api.config.exception.ValidationMsg;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;
/**
* @author wuqingjun
* @email 284718418@qq.com
* @date 2021-12-27 10:05:49
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ZpglRcxxEntryDto implements Serializable{
private static final long serialVersionUID = -1230023773946171911L;
/**
* 人才信息Id
*/
@NotNull(message = ValidationMsg.NOTNULL)
@ApiModelProperty(value = "人才信息Id")
private Integer id;
/**
* 状态 1:待初筛 2:初筛通过 3:已安排面试 4:已面试 5:面试通过 6:拟录用 7:已发Offer 8:待入职 9已淘汰 10已入职
*/
@ApiModelProperty(value = "状态 1:待初筛 2:初筛通过 3:已安排面试 4:已面试 5:面试通过 6:拟录用 7:已发Offer 8:待入职 9已淘汰 10已入职")
private Integer status;
/**
* 入职日期
*/
@ApiModelProperty(value = "入职日期")
private Date yjrzTime;
/**
* 部门岗位ID
*/
@ApiModelProperty(value = "部门岗位ID")
private Integer bmgwId;
/**
* 员工工号
*/
@ApiModelProperty(value = "员工工号")
private String customNum;
@NotBlank(message = ValidationMsg.NOTBLANK)
@ApiModelProperty(value="员工姓名",example="华仔")
private String name;
/*@NotBlank(message = ValidationMsg.NOTBLANK)
@Pattern(regexp= Regular.PHONE,message = ValidationMsg.PATTERN)*/
@ApiModelProperty(value="手机号",example="101")
private String phone;
// @NotNull(message = ValidationMsg.NOTNULL)
@ApiModelProperty(value="证件类型 0:身份证;1:港澳居民来往内地通行证;2:台湾居民来往大陆通行证;3:外国护照;4:其他",example="0")
private Integer zjType = 0;
// @NotBlank(message = ValidationMsg.NOTBLANK)
@ApiModelProperty(value="证件号码 ",example="证件号码")
private String zjNum;
@NotNull(message = ValidationMsg.NOTNULL)
@ApiModelProperty(value="工作性质 0全职、1实习生、2兼职、3劳务派遣、4劳务、5派遣、6外包、7退休返聘",example="0")
private Integer jobType;
@JSONField(format="yyyy-MM-dd")
@ApiModelProperty(value="入职日期 ",example="客户注册后的时间为入职时间")
private Date rzTime;
@NotNull(message = ValidationMsg.NOTNULL)
@ApiModelProperty(value="试用期 0:无试用期;1:1个月;2:2个月;3:3个月;4:4个月;5:5个月;6:6个月(有试用期显示选项)",example="0")
private Integer syq;
@NotNull(message = ValidationMsg.NOTNULL)
@ApiModelProperty(value="性别 0:男;1:女",example="0")
private Integer sex;
@NotNull(message = ValidationMsg.NOTNULL)
@ApiModelProperty(value="合同公司id",example="0")
private Integer zpglCompanyId;
@ApiModelProperty(value="工作地点id",example="0")
private Integer zpglGzddId;
@NotNull(message = ValidationMsg.NOTNULL)
@ApiModelProperty(value="职级id",example="0")
private Integer zpglZjId;
@NotNull(message = ValidationMsg.NOTNULL)
@ApiModelProperty(value="员工状态:1试用 2正式",example="0")
private Integer beforeLeavingSts;
@ApiModelProperty(value="考勤组id",example="0")
private Integer attgroupid;
}
......@@ -8,7 +8,7 @@ package cn.timer.api.utils;
*/
public class ZpglMessageTemplate {
public static final String FILTERING = "";
public static final String FILTERING = "{0} 将候选人状态从[已淘汰]更改为[待初筛].";
public static final String FILTER_PASS ="{0} 将候选人状态从[待初筛]更改为[初筛通过].";
//,面试地址:{4}
public static final String INTERVIEW ="{0} 为候选人安排了现场面试.面试轮次:第{1}轮,面试时间{2},面试官:{3}";
......
......@@ -66,6 +66,7 @@
<result property="updateTime" column="update_time"/>
<result property="area" column="aera"/>
<result property="ifrck" column="ifrck"/>
<result property="deleteFlag" column="delete_flag"/>
</resultMap>
</mapper>
\ No newline at end of file
<?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.timer.api.dao.zpgl.ZpglWxgzptEmpRcxxMapper">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="cn.timer.api.bean.zpgl.ZpglWxgzptEmpRcxx" id="zpglWxgzptEmpRcxxMap">
<result property="id" column="id"/>
<result property="zpglRcxxId" column="zpgl_rcxx_id"/>
<result property="ygglMainEmpId" column="yggl_main_emp_id"/>
<result property="openid" column="openid"/>
<result property="unionid" column="unionid"/>
<result property="orgCode" column="org_code"/>
<result property="deleteFlag" column="delete_flag"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
</resultMap>
</mapper>
\ No newline at end of file
......@@ -25,6 +25,7 @@
<result property="urgentStatus" column="urgent_status"/>
<result property="status" column="status"/>
<result property="orgCode" column="org_code"/>
<result property="deleteFlag" column="delete_flag"/>
</resultMap>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment