feat(employee): 添加员工离职状态字段
- 在WmsEmployeeInfo实体类中添加isLeave字段 - 在WmsEmployeeInfoBo业务对象中添加isLeave字段 - 在WmsEmployeeInfoVo视图对象中添加isLeave字段 - 在MyBatis映射文件中添加isLeave字段映射 - 在查询条件构造器中添加离职状态筛选逻辑
This commit is contained in:
@@ -96,4 +96,6 @@ public class WmsEmployeeInfo extends BaseEntity {
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
// 是否离职
|
||||
private Integer isLeave;
|
||||
}
|
||||
|
||||
@@ -105,4 +105,8 @@ public class WmsEmployeeInfoBo extends BaseEntity {
|
||||
private String remark;
|
||||
|
||||
|
||||
// 是否离职
|
||||
private Integer isLeave;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -124,4 +124,6 @@ public class WmsEmployeeInfoVo {
|
||||
private String remark;
|
||||
|
||||
|
||||
// 是否离职
|
||||
private Integer isLeave;
|
||||
}
|
||||
|
||||
@@ -76,6 +76,8 @@ public class WmsEmployeeInfoServiceImpl implements IWmsEmployeeInfoService {
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getRelationship()), WmsEmployeeInfo::getRelationship, bo.getRelationship());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getEmergencyContactPhone()), WmsEmployeeInfo::getEmergencyContactPhone, bo.getEmergencyContactPhone());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getSocialInsuranceType()), WmsEmployeeInfo::getSocialInsuranceType, bo.getSocialInsuranceType());
|
||||
// 是否离职
|
||||
lqw.eq(bo.getIsLeave() != null, WmsEmployeeInfo::getIsLeave, bo.getIsLeave());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user