入职流程完成
This commit is contained in:
@@ -41,10 +41,7 @@ public class EmployeeOnboarding extends BaseEntity {
|
||||
* 入职日期
|
||||
*/
|
||||
private Date joiningDate;
|
||||
/**
|
||||
* 试用期结束日期
|
||||
*/
|
||||
private Date probationPeriodEnd;
|
||||
|
||||
|
||||
private String address;
|
||||
|
||||
@@ -52,42 +49,7 @@ public class EmployeeOnboarding extends BaseEntity {
|
||||
* 直属经理ID
|
||||
*/
|
||||
private Long managerId;
|
||||
/**
|
||||
* 是否提交入职资料
|
||||
*/
|
||||
private Integer documentsSubmitted;
|
||||
/**
|
||||
* 是否完成入职培训
|
||||
*/
|
||||
private Integer orientationCompleted;
|
||||
/**
|
||||
* 入职状态(pending,completed,onboarding)
|
||||
*/
|
||||
private Long joiningStatus;
|
||||
/**
|
||||
* 是否完成招聘与面试
|
||||
*/
|
||||
private Integer recruitmentCompleted;
|
||||
/**
|
||||
* 是否已发放Offer
|
||||
*/
|
||||
private Integer offerIssued;
|
||||
/**
|
||||
* 是否已签署合同
|
||||
*/
|
||||
private Integer contractSigned;
|
||||
/**
|
||||
* 入职材料/工作准备是否完成
|
||||
*/
|
||||
private Integer materialsPrepared;
|
||||
/**
|
||||
* 是否完成入职培训
|
||||
*/
|
||||
private Integer trainingCompleted;
|
||||
/**
|
||||
* 是否完成工作条件准备(权限分配、工位等)
|
||||
*/
|
||||
private Integer workConditionsPrepared;
|
||||
|
||||
/**
|
||||
* 最高学历
|
||||
*/
|
||||
@@ -129,10 +91,6 @@ public class EmployeeOnboarding extends BaseEntity {
|
||||
* 体重
|
||||
*/
|
||||
private Long weight;
|
||||
/**
|
||||
* 编制类型
|
||||
*/
|
||||
private String staffType;
|
||||
/**
|
||||
* 紧急联系人1
|
||||
*/
|
||||
|
||||
@@ -46,65 +46,11 @@ public class EmployeeOnboardingBo extends BaseEntity {
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date joiningDate;
|
||||
|
||||
/**
|
||||
* 试用期结束日期
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Date probationPeriodEnd;
|
||||
|
||||
/**
|
||||
* 直属经理ID
|
||||
*/
|
||||
private Long managerId;
|
||||
|
||||
/**
|
||||
* 是否提交入职资料
|
||||
*/
|
||||
private Integer documentsSubmitted;
|
||||
|
||||
/**
|
||||
* 是否完成入职培训
|
||||
*/
|
||||
private Integer orientationCompleted;
|
||||
|
||||
/**
|
||||
* 入职状态(pending,completed,onboarding)
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private Long joiningStatus;
|
||||
|
||||
/**
|
||||
* 是否完成招聘与面试
|
||||
*/
|
||||
private Integer recruitmentCompleted;
|
||||
|
||||
/**
|
||||
* 是否已发放Offer
|
||||
*/
|
||||
private Integer offerIssued;
|
||||
|
||||
/**
|
||||
* 是否已签署合同
|
||||
*/
|
||||
private Integer contractSigned;
|
||||
|
||||
/**
|
||||
* 入职材料/工作准备是否完成
|
||||
*/
|
||||
private Integer materialsPrepared;
|
||||
|
||||
/**
|
||||
* 是否完成入职培训
|
||||
*/
|
||||
private Integer trainingCompleted;
|
||||
|
||||
/**
|
||||
* 是否完成工作条件准备(权限分配、工位等)
|
||||
*/
|
||||
private Integer workConditionsPrepared;
|
||||
|
||||
/**
|
||||
* 最高学历
|
||||
*/
|
||||
@@ -154,10 +100,6 @@ public class EmployeeOnboardingBo extends BaseEntity {
|
||||
*/
|
||||
private Long weight;
|
||||
|
||||
/**
|
||||
* 编制类型
|
||||
*/
|
||||
private String staffType;
|
||||
|
||||
/**
|
||||
* 紧急联系人1
|
||||
|
||||
@@ -48,11 +48,6 @@ public class EmployeeOnboardingVo extends EmployeeOnboarding {
|
||||
@ExcelProperty(value = "入职日期")
|
||||
private Date joiningDate;
|
||||
|
||||
/**
|
||||
* 试用期结束日期
|
||||
*/
|
||||
@ExcelProperty(value = "试用期结束日期")
|
||||
private Date probationPeriodEnd;
|
||||
|
||||
/**
|
||||
* 直属经理ID
|
||||
@@ -60,62 +55,6 @@ public class EmployeeOnboardingVo extends EmployeeOnboarding {
|
||||
@ExcelProperty(value = "直属经理ID")
|
||||
private Long managerId;
|
||||
|
||||
/**
|
||||
* 是否提交入职资料
|
||||
*/
|
||||
@ExcelProperty(value = "是否提交入职资料")
|
||||
private Integer documentsSubmitted;
|
||||
|
||||
/**
|
||||
* 是否完成入职培训
|
||||
*/
|
||||
@ExcelProperty(value = "是否完成入职培训")
|
||||
private Integer orientationCompleted;
|
||||
|
||||
/**
|
||||
* 入职状态(pending,completed,onboarding)
|
||||
*/
|
||||
@ExcelProperty(value = "入职状态(pending,completed,onboarding)", converter = ExcelDictConvert.class)
|
||||
@ExcelDictFormat(dictType = "joining_status")
|
||||
private Long joiningStatus;
|
||||
|
||||
/**
|
||||
* 是否完成招聘与面试
|
||||
*/
|
||||
@ExcelProperty(value = "是否完成招聘与面试")
|
||||
private Integer recruitmentCompleted;
|
||||
|
||||
/**
|
||||
* 是否已发放Offer
|
||||
*/
|
||||
@ExcelProperty(value = "是否已发放Offer")
|
||||
private Integer offerIssued;
|
||||
|
||||
/**
|
||||
* 是否已签署合同
|
||||
*/
|
||||
@ExcelProperty(value = "是否已签署合同")
|
||||
private Integer contractSigned;
|
||||
|
||||
/**
|
||||
* 入职材料/工作准备是否完成
|
||||
*/
|
||||
@ExcelProperty(value = "入职材料/工作准备是否完成")
|
||||
private Integer materialsPrepared;
|
||||
|
||||
/**
|
||||
* 是否完成入职培训
|
||||
*/
|
||||
@ExcelProperty(value = "是否完成入职培训")
|
||||
private Integer trainingCompleted;
|
||||
|
||||
/**
|
||||
* 是否完成工作条件准备(权限分配、工位等)
|
||||
*/
|
||||
@ExcelProperty(value = "是否完成工作条件准备", converter = ExcelDictConvert.class)
|
||||
@ExcelDictFormat(readConverterExp = "权=限分配、工位等")
|
||||
private Integer workConditionsPrepared;
|
||||
|
||||
/**
|
||||
* 最高学历
|
||||
*/
|
||||
@@ -170,12 +109,6 @@ public class EmployeeOnboardingVo extends EmployeeOnboarding {
|
||||
@ExcelProperty(value = "体重")
|
||||
private Long weight;
|
||||
|
||||
/**
|
||||
* 编制类型
|
||||
*/
|
||||
@ExcelProperty(value = "编制类型")
|
||||
private String staffType;
|
||||
|
||||
/**
|
||||
* 紧急联系人1
|
||||
*/
|
||||
|
||||
@@ -13,4 +13,5 @@ import com.ruoyi.oa.domain.vo.EmployeeOnboardingVo;
|
||||
*/
|
||||
public interface EmployeeOnboardingMapper extends BaseMapperPlus<EmployeeOnboardingMapper, EmployeeOnboarding, EmployeeOnboardingVo> {
|
||||
|
||||
Boolean updateByUserId(EmployeeOnboarding update);
|
||||
}
|
||||
|
||||
@@ -83,17 +83,7 @@ public class EmployeeOnboardingServiceImpl implements IEmployeeOnboardingService
|
||||
LambdaQueryWrapper<EmployeeOnboarding> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(bo.getUserId() != null, EmployeeOnboarding::getUserId, bo.getUserId());
|
||||
lqw.eq(bo.getJoiningDate() != null, EmployeeOnboarding::getJoiningDate, bo.getJoiningDate());
|
||||
lqw.eq(bo.getProbationPeriodEnd() != null, EmployeeOnboarding::getProbationPeriodEnd, bo.getProbationPeriodEnd());
|
||||
lqw.eq(bo.getManagerId() != null, EmployeeOnboarding::getManagerId, bo.getManagerId());
|
||||
lqw.eq(bo.getDocumentsSubmitted() != null, EmployeeOnboarding::getDocumentsSubmitted, bo.getDocumentsSubmitted());
|
||||
lqw.eq(bo.getOrientationCompleted() != null, EmployeeOnboarding::getOrientationCompleted, bo.getOrientationCompleted());
|
||||
lqw.eq(bo.getJoiningStatus() != null, EmployeeOnboarding::getJoiningStatus, bo.getJoiningStatus());
|
||||
lqw.eq(bo.getRecruitmentCompleted() != null, EmployeeOnboarding::getRecruitmentCompleted, bo.getRecruitmentCompleted());
|
||||
lqw.eq(bo.getOfferIssued() != null, EmployeeOnboarding::getOfferIssued, bo.getOfferIssued());
|
||||
lqw.eq(bo.getContractSigned() != null, EmployeeOnboarding::getContractSigned, bo.getContractSigned());
|
||||
lqw.eq(bo.getMaterialsPrepared() != null, EmployeeOnboarding::getMaterialsPrepared, bo.getMaterialsPrepared());
|
||||
lqw.eq(bo.getTrainingCompleted() != null, EmployeeOnboarding::getTrainingCompleted, bo.getTrainingCompleted());
|
||||
lqw.eq(bo.getWorkConditionsPrepared() != null, EmployeeOnboarding::getWorkConditionsPrepared, bo.getWorkConditionsPrepared());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
@@ -118,7 +108,8 @@ public class EmployeeOnboardingServiceImpl implements IEmployeeOnboardingService
|
||||
public Boolean updateByBo(EmployeeOnboardingBo bo) {
|
||||
EmployeeOnboarding update = BeanUtil.toBean(bo, EmployeeOnboarding.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
|
||||
return baseMapper.updateByUserId(update);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user