1.修改保存是create_time为空情况
2.修改职务录用是,修改岗位申请表录用状态
This commit is contained in:
		| @@ -5,9 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField; | ||||
| import com.baomidou.mybatisplus.annotation.TableId; | ||||
| import com.baomidou.mybatisplus.annotation.TableName; | ||||
|  | ||||
| import java.util.Date; | ||||
|  | ||||
| import com.fasterxml.jackson.annotation.JsonFormat; | ||||
| import com.ruoyi.common.core.domain.BaseEntity; | ||||
| import io.swagger.annotations.ApiModelProperty; | ||||
| import lombok.Data; | ||||
| @@ -49,9 +47,8 @@ public class EmployeeConfirm extends BaseEntity { | ||||
| 	/** | ||||
| 	 * 入职日期 | ||||
| 	 */ | ||||
| 	@JsonFormat(pattern = "yyyy-MM-dd") | ||||
| 	@ApiModelProperty("入职日期") | ||||
| 	private Date entryDate; | ||||
| 	private String entryDate; | ||||
| 	/** | ||||
| 	 * 联系电话 | ||||
| 	 */ | ||||
| @@ -63,4 +60,12 @@ public class EmployeeConfirm extends BaseEntity { | ||||
| 	@ApiModelProperty("劳动合同期限") | ||||
| 	private String contractTerm; | ||||
|  | ||||
| 	@ApiModelProperty("工作id") | ||||
| 	private Long jobId; | ||||
|  | ||||
| 	/** | ||||
| 	 * 申请id | ||||
| 	 */ | ||||
| 	@TableField(exist = false) | ||||
| 	private Long applyId; | ||||
| } | ||||
|   | ||||
| @@ -38,4 +38,6 @@ public class JobApply extends BaseEntity | ||||
|     @ApiModelProperty("匹配度") | ||||
|     private Long matchingDegree; | ||||
|  | ||||
|     @ApiModelProperty("是否录用 0录用 2或null未录用") | ||||
|     private String hire; | ||||
| } | ||||
|   | ||||
| @@ -11,4 +11,5 @@ public class CandidateVO extends AppUser { | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd") | ||||
|     private Date applyDate; | ||||
|     private Integer matchingDegree; | ||||
|     private String applyId; | ||||
| } | ||||
|   | ||||
| @@ -1,7 +1,9 @@ | ||||
| package com.ruoyi.cms.service.impl; | ||||
|  | ||||
| import com.ruoyi.cms.domain.EmployeeConfirm; | ||||
| import com.ruoyi.cms.domain.JobApply; | ||||
| import com.ruoyi.cms.mapper.EmployeeConfirmMapper; | ||||
| import com.ruoyi.cms.mapper.JobApplyMapper; | ||||
| import com.ruoyi.cms.service.EmployeeConfirmService; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.stereotype.Service; | ||||
| @@ -15,6 +17,8 @@ public class EmployeeConfirmServiceImpl implements EmployeeConfirmService { | ||||
|  | ||||
|     @Autowired | ||||
|     EmployeeConfirmMapper employeeConfirmMapper; | ||||
|     @Autowired | ||||
|     private JobApplyMapper jobApplyMapper; | ||||
|  | ||||
|     @Override | ||||
|     public List<EmployeeConfirm> getEmployeeConfirmList(EmployeeConfirm employeeConfirm) { | ||||
| @@ -23,7 +27,14 @@ public class EmployeeConfirmServiceImpl implements EmployeeConfirmService { | ||||
|  | ||||
|     @Override | ||||
|     public int insertEmployeeConfirm(EmployeeConfirm employeeConfirm) { | ||||
|         return employeeConfirmMapper.insert(employeeConfirm); | ||||
|         int t=employeeConfirmMapper.insert(employeeConfirm); | ||||
|         if(t>0){ | ||||
|             JobApply apply=new JobApply(); | ||||
|             apply.setId(employeeConfirm.getApplyId()); | ||||
|             apply.setHire("0"); | ||||
|             jobApplyMapper.updateById(apply); | ||||
|         } | ||||
|         return t; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|   | ||||
		Reference in New Issue
	
	Block a user