1.修改保存是create_time为空情况
2.修改职务录用是,修改岗位申请表录用状态
This commit is contained in:
@@ -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