Commit 54bc5319 by 284718418@qq.com

单个添加候选人

parent 68025ef7
...@@ -208,10 +208,10 @@ public class ZpglRcxx extends Model<ZpglRcxx> { ...@@ -208,10 +208,10 @@ public class ZpglRcxx extends Model<ZpglRcxx> {
@ApiModelProperty(value = "处分,违法,犯罪记录") @ApiModelProperty(value = "处分,违法,犯罪记录")
private String record; private String record;
/** /**
* 招聘渠道 * 招聘渠道ID
*/ */
@ApiModelProperty(value = "招聘渠道") @ApiModelProperty(value = "招聘渠道ID")
private String recruitmentchannels; private Integer zpglZpqdId;
/** /**
* 文件名 * 文件名
*/ */
......
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-28 15:14:40
*/
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "zpgl_zpqd")
@Data
public class ZpglZpqd extends Model<ZpglZpqd> {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@Id
@GeneratedValue
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "编号")
private Integer id;
/**
* 工作地点
*/
@ApiModelProperty(value = "工作地点")
private String zpqdName;
/**
* 逻辑删除标记0.未删除 1.删除
*/
@ApiModelProperty(value = "逻辑删除标记0.未删除 1.删除")
private Integer deleteFlag;
/**
* 创建者
*/
@ApiModelProperty(value = "创建者")
private Integer createUserId;
/**
* 更新者
*/
@ApiModelProperty(value = "更新者")
private Integer updateUserId;
/**
* 组织机构代码
*/
@ApiModelProperty(value = "组织机构代码")
private Integer orgCode;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
* 更新时间
*/
@ApiModelProperty(value = "更新时间")
private Date updateTime;
}
...@@ -150,7 +150,7 @@ public class ZpglController { ...@@ -150,7 +150,7 @@ public class ZpglController {
* @return * @return
*/ */
@GetMapping(value = "/zwxx/{deleteFlag}") @GetMapping(value = "/zwxx/{deleteFlag}")
@ApiOperation(value = "2.职位信息", httpMethod = "GET", notes = "职位信息") @ApiOperation(value = "2.职位信息", httpMethod = "GET", notes = "职位信息deleteFlag:0")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
public Result<Object> zwxx(@CurrentUser UserBean userBean,@PathVariable Integer deleteFlag) { public Result<Object> zwxx(@CurrentUser UserBean userBean,@PathVariable Integer deleteFlag) {
try { try {
......
package cn.timer.api.controller.zpgl;
import cn.timer.api.bean.zpgl.ZpglZpqd;
import cn.timer.api.config.annotation.CurrentUser;
import cn.timer.api.config.annotation.UserBean;
import cn.timer.api.config.exception.CustomException;
import cn.timer.api.utils.Result;
import cn.timer.api.utils.ResultUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.transaction.Transactional;
import java.util.List;
/**
* 招聘管理
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-28 15:14:40
*/
@Api(tags = "招聘管理")
@Transactional(rollbackOn = Exception.class)
@RestController
@RequestMapping(value = "/zpgl", produces = {"application/json"})
public class ZpglZpqdController {
/**
* 招聘-招聘渠道字典
*
* @param
* @return
*/
@GetMapping(value = "/zpqd")
@ApiOperation(value = "1.招聘渠道字典", httpMethod = "GET", notes = "招聘渠道字典")
@ApiOperationSupport(order = 1)
public Result<Object> zpqd(@CurrentUser UserBean userBean) {
try {
QueryWrapper<ZpglZpqd> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ZpglZpqd::getDeleteFlag, 0).eq(ZpglZpqd::getOrgCode, userBean.getOrgCode());
List<ZpglZpqd> zpglZpqd = ZpglZpqd.builder().build().selectList(queryWrapper);
return ResultUtil.data(zpglZpqd, "查询成功");
} catch (Exception e) {
e.printStackTrace();
throw new CustomException("招聘-招聘渠道字典失败");
}
}
/**
* 招聘-添加招聘渠道
*
* @param
* @return
*/
@PostMapping(value = "/zpqd/save")
@ApiOperation(value = "2.招聘-添加招聘渠道", httpMethod = "POST", notes = "招聘-添加招聘渠道")
@ApiOperationSupport(order = 2)
public Result<Object> save(@CurrentUser UserBean userBean, @RequestBody ZpglZpqd zpglZpqd) {
try {
zpglZpqd.setCreateUserId(userBean.getEmpNum());
zpglZpqd.setUpdateUserId(userBean.getEmpNum());
zpglZpqd.setOrgCode(userBean.getOrgCode());
return zpglZpqd.insert() ? ResultUtil.success() : ResultUtil.error();
} catch (Exception e) {
e.printStackTrace();
throw new CustomException("招聘-添加招聘渠道失败");
}
}
}
package cn.timer.api.dao.zpgl;
import cn.timer.api.bean.zpgl.ZpglZpqd;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* 招聘管理职级字典表
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-28 15:14:40
*/
@Repository
public interface ZpglZpqdMapper extends BaseMapper<ZpglZpqd> {
}
...@@ -198,10 +198,10 @@ public class InterviewApplicationDto implements Serializable { ...@@ -198,10 +198,10 @@ public class InterviewApplicationDto implements Serializable {
@ApiModelProperty(value = "处分,违法,犯罪记录") @ApiModelProperty(value = "处分,违法,犯罪记录")
private String record; private String record;
/** /**
* 招聘渠道 * 招聘渠道ID
*/ */
@ApiModelProperty(value = "招聘渠道") @ApiModelProperty(value = "招聘渠道ID")
private String recruitmentchannels; private Integer zpglZpqdId;
/** /**
* 联系人信息 * 联系人信息
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<result property="hobby" column="hobby"/> <result property="hobby" column="hobby"/>
<result property="reward" column="reward"/> <result property="reward" column="reward"/>
<result property="record" column="record"/> <result property="record" column="record"/>
<result property="recruitmentchannels" column="recruitmentchannels"/> <result property="zpglZpqdId" column="zpgl_zpqd_id"/>
<result property="fileName" column="file_name"/> <result property="fileName" column="file_name"/>
<result property="filePath" column="file_path"/> <result property="filePath" column="file_path"/>
<result property="remarks" column="remarks"/> <result property="remarks" column="remarks"/>
......
<?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.ZpglZpqdMapper">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="cn.timer.api.bean.zpgl.ZpglZpqd" id="zpglZpqdMap">
<result property="id" column="id"/>
<result property="zpqdName" column="zj_name"/>
<result property="deleteFlag" column="delete_flag"/>
<result property="createUserId" column="create_user_id"/>
<result property="updateUserId" column="update_user_id"/>
<result property="orgCode" column="org_code"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
</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