refactor(perf): 将员工绩效薪资信息整合到WMS员工模块中
- 删除独立的员工绩效薪资信息相关文件(接口、实体类、业务对象、控制器、映射器) - 在WMS员工信息实体中新增底薪、岗位绩效基数和岗位系数字段 - 在WMS员工信息业务对象中添加对应的薪资相关属性 - 更新数据库映射文件,增加薪资字段的映射关系 - 修改WMS员工服务实现,添加对新增薪资字段的查询条件支持 - 在WMS员工信息视图对象中增加薪资相关字段并配置Excel导出属性
This commit is contained in:
@@ -1,99 +0,0 @@
|
||||
package com.klp.perf.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
import com.klp.common.core.controller.BaseController;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.klp.common.core.domain.R;
|
||||
import com.klp.common.core.validate.AddGroup;
|
||||
import com.klp.common.core.validate.EditGroup;
|
||||
import com.klp.common.enums.BusinessType;
|
||||
import com.klp.common.utils.poi.ExcelUtil;
|
||||
import com.klp.perf.domain.vo.PerfEmployeeInfoVo;
|
||||
import com.klp.perf.domain.bo.PerfEmployeeInfoBo;
|
||||
import com.klp.perf.service.IPerfEmployeeInfoService;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 员工绩效薪资基本信息
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/perf/employeeInfo")
|
||||
public class PerfEmployeeInfoController extends BaseController {
|
||||
|
||||
private final IPerfEmployeeInfoService iPerfEmployeeInfoService;
|
||||
|
||||
/**
|
||||
* 查询员工绩效薪资基本信息列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<PerfEmployeeInfoVo> list(PerfEmployeeInfoBo bo, PageQuery pageQuery) {
|
||||
return iPerfEmployeeInfoService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出员工绩效薪资基本信息列表
|
||||
*/
|
||||
@Log(title = "员工绩效薪资基本信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(PerfEmployeeInfoBo bo, HttpServletResponse response) {
|
||||
List<PerfEmployeeInfoVo> list = iPerfEmployeeInfoService.queryList(bo);
|
||||
ExcelUtil.exportExcel(list, "员工绩效薪资基本信息", PerfEmployeeInfoVo.class, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取员工绩效薪资基本信息详细信息
|
||||
*
|
||||
* @param id 主键
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfEmployeeInfoVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfEmployeeInfoService.queryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增员工绩效薪资基本信息
|
||||
*/
|
||||
@Log(title = "员工绩效薪资基本信息", businessType = BusinessType.INSERT)
|
||||
@RepeatSubmit()
|
||||
@PostMapping()
|
||||
public R<Void> add(@Validated(AddGroup.class) @RequestBody PerfEmployeeInfoBo bo) {
|
||||
return toAjax(iPerfEmployeeInfoService.insertByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改员工绩效薪资基本信息
|
||||
*/
|
||||
@Log(title = "员工绩效薪资基本信息", businessType = BusinessType.UPDATE)
|
||||
@RepeatSubmit()
|
||||
@PutMapping()
|
||||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody PerfEmployeeInfoBo bo) {
|
||||
return toAjax(iPerfEmployeeInfoService.updateByBo(bo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除员工绩效薪资基本信息
|
||||
*
|
||||
* @param ids 主键串
|
||||
*/
|
||||
@Log(title = "员工绩效薪资基本信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfEmployeeInfoService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
package com.klp.perf.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.klp.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 员工绩效薪资基本信息对象 perf_employee_info
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("perf_employee_info")
|
||||
public class PerfEmployeeInfo extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(value = "id")
|
||||
private Long id;
|
||||
/**
|
||||
* 关联现有员工表主键
|
||||
*/
|
||||
private Long employeeId;
|
||||
/**
|
||||
* 关联 perf_dept.id (冗余,便于按部门查询)
|
||||
*/
|
||||
private Long deptId;
|
||||
/**
|
||||
* 岗位/工种
|
||||
*/
|
||||
private String positionName;
|
||||
/**
|
||||
* 底薪(元)
|
||||
*/
|
||||
private BigDecimal baseSalary;
|
||||
/**
|
||||
* 岗位绩效基数(元), 默认≈底薪×20%
|
||||
*/
|
||||
private BigDecimal perfBase;
|
||||
/**
|
||||
* 默认岗位系数(初始值,后续月度由绩效自动覆盖)
|
||||
*/
|
||||
private BigDecimal posCoeffDefault;
|
||||
/**
|
||||
* 是否在职 1=在职 0=离职
|
||||
*/
|
||||
private Long isActive;
|
||||
/**
|
||||
* 删除标志(0=正常,1=已删除)
|
||||
*/
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
package com.klp.perf.domain.bo;
|
||||
|
||||
import com.klp.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 员工绩效薪资基本信息业务对象 perf_employee_info
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class PerfEmployeeInfoBo extends BaseEntity {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 关联现有员工表主键
|
||||
*/
|
||||
private Long employeeId;
|
||||
|
||||
/**
|
||||
* 关联 perf_dept.id (冗余,便于按部门查询)
|
||||
*/
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 岗位/工种
|
||||
*/
|
||||
private String positionName;
|
||||
|
||||
/**
|
||||
* 底薪(元)
|
||||
*/
|
||||
private BigDecimal baseSalary;
|
||||
|
||||
/**
|
||||
* 岗位绩效基数(元), 默认≈底薪×20%
|
||||
*/
|
||||
private BigDecimal perfBase;
|
||||
|
||||
/**
|
||||
* 默认岗位系数(初始值,后续月度由绩效自动覆盖)
|
||||
*/
|
||||
private BigDecimal posCoeffDefault;
|
||||
|
||||
/**
|
||||
* 是否在职 1=在职 0=离职
|
||||
*/
|
||||
private Long isActive;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
package com.klp.perf.domain.vo;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.klp.common.annotation.ExcelDictFormat;
|
||||
import com.klp.common.convert.ExcelDictConvert;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* 员工绩效薪资基本信息视图对象 perf_employee_info
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class PerfEmployeeInfoVo {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ExcelProperty(value = "")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 关联现有员工表主键
|
||||
*/
|
||||
@ExcelProperty(value = "关联现有员工表主键")
|
||||
private Long employeeId;
|
||||
|
||||
/**
|
||||
* 关联 perf_dept.id (冗余,便于按部门查询)
|
||||
*/
|
||||
@ExcelProperty(value = "关联 perf_dept.id (冗余,便于按部门查询)")
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 岗位/工种
|
||||
*/
|
||||
@ExcelProperty(value = "岗位/工种")
|
||||
private String positionName;
|
||||
|
||||
/**
|
||||
* 底薪(元)
|
||||
*/
|
||||
@ExcelProperty(value = "底薪(元)")
|
||||
private BigDecimal baseSalary;
|
||||
|
||||
/**
|
||||
* 岗位绩效基数(元), 默认≈底薪×20%
|
||||
*/
|
||||
@ExcelProperty(value = "岗位绩效基数(元), 默认≈底薪×20%")
|
||||
private BigDecimal perfBase;
|
||||
|
||||
/**
|
||||
* 默认岗位系数(初始值,后续月度由绩效自动覆盖)
|
||||
*/
|
||||
@ExcelProperty(value = "默认岗位系数(初始值,后续月度由绩效自动覆盖)")
|
||||
private BigDecimal posCoeffDefault;
|
||||
|
||||
/**
|
||||
* 是否在职 1=在职 0=离职
|
||||
*/
|
||||
@ExcelProperty(value = "是否在职 1=在职 0=离职")
|
||||
private Long isActive;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package com.klp.perf.mapper;
|
||||
|
||||
import com.klp.perf.domain.PerfEmployeeInfo;
|
||||
import com.klp.perf.domain.vo.PerfEmployeeInfoVo;
|
||||
import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* 员工绩效薪资基本信息Mapper接口
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
public interface PerfEmployeeInfoMapper extends BaseMapperPlus<PerfEmployeeInfoMapper, PerfEmployeeInfo, PerfEmployeeInfoVo> {
|
||||
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
package com.klp.perf.service;
|
||||
|
||||
import com.klp.perf.domain.PerfEmployeeInfo;
|
||||
import com.klp.perf.domain.vo.PerfEmployeeInfoVo;
|
||||
import com.klp.perf.domain.bo.PerfEmployeeInfoBo;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 员工绩效薪资基本信息Service接口
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
public interface IPerfEmployeeInfoService {
|
||||
|
||||
/**
|
||||
* 查询员工绩效薪资基本信息
|
||||
*/
|
||||
PerfEmployeeInfoVo queryById(Long id);
|
||||
|
||||
/**
|
||||
* 查询员工绩效薪资基本信息列表
|
||||
*/
|
||||
TableDataInfo<PerfEmployeeInfoVo> queryPageList(PerfEmployeeInfoBo bo, PageQuery pageQuery);
|
||||
|
||||
/**
|
||||
* 查询员工绩效薪资基本信息列表
|
||||
*/
|
||||
List<PerfEmployeeInfoVo> queryList(PerfEmployeeInfoBo bo);
|
||||
|
||||
/**
|
||||
* 新增员工绩效薪资基本信息
|
||||
*/
|
||||
Boolean insertByBo(PerfEmployeeInfoBo bo);
|
||||
|
||||
/**
|
||||
* 修改员工绩效薪资基本信息
|
||||
*/
|
||||
Boolean updateByBo(PerfEmployeeInfoBo bo);
|
||||
|
||||
/**
|
||||
* 校验并批量删除员工绩效薪资基本信息信息
|
||||
*/
|
||||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
|
||||
}
|
||||
@@ -1,115 +0,0 @@
|
||||
package com.klp.perf.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.klp.common.core.page.TableDataInfo;
|
||||
import com.klp.common.core.domain.PageQuery;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.klp.common.utils.StringUtils;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.klp.perf.domain.bo.PerfEmployeeInfoBo;
|
||||
import com.klp.perf.domain.vo.PerfEmployeeInfoVo;
|
||||
import com.klp.perf.domain.PerfEmployeeInfo;
|
||||
import com.klp.perf.mapper.PerfEmployeeInfoMapper;
|
||||
import com.klp.perf.service.IPerfEmployeeInfoService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* 员工绩效薪资基本信息Service业务层处理
|
||||
*
|
||||
* @author klp
|
||||
* @date 2026-07-07
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Service
|
||||
public class PerfEmployeeInfoServiceImpl implements IPerfEmployeeInfoService {
|
||||
|
||||
private final PerfEmployeeInfoMapper baseMapper;
|
||||
|
||||
/**
|
||||
* 查询员工绩效薪资基本信息
|
||||
*/
|
||||
@Override
|
||||
public PerfEmployeeInfoVo queryById(Long id){
|
||||
return baseMapper.selectVoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询员工绩效薪资基本信息列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<PerfEmployeeInfoVo> queryPageList(PerfEmployeeInfoBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<PerfEmployeeInfo> lqw = buildQueryWrapper(bo);
|
||||
Page<PerfEmployeeInfoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询员工绩效薪资基本信息列表
|
||||
*/
|
||||
@Override
|
||||
public List<PerfEmployeeInfoVo> queryList(PerfEmployeeInfoBo bo) {
|
||||
LambdaQueryWrapper<PerfEmployeeInfo> lqw = buildQueryWrapper(bo);
|
||||
return baseMapper.selectVoList(lqw);
|
||||
}
|
||||
|
||||
private LambdaQueryWrapper<PerfEmployeeInfo> buildQueryWrapper(PerfEmployeeInfoBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<PerfEmployeeInfo> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(bo.getEmployeeId() != null, PerfEmployeeInfo::getEmployeeId, bo.getEmployeeId());
|
||||
lqw.eq(bo.getDeptId() != null, PerfEmployeeInfo::getDeptId, bo.getDeptId());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getPositionName()), PerfEmployeeInfo::getPositionName, bo.getPositionName());
|
||||
lqw.eq(bo.getBaseSalary() != null, PerfEmployeeInfo::getBaseSalary, bo.getBaseSalary());
|
||||
lqw.eq(bo.getPerfBase() != null, PerfEmployeeInfo::getPerfBase, bo.getPerfBase());
|
||||
lqw.eq(bo.getPosCoeffDefault() != null, PerfEmployeeInfo::getPosCoeffDefault, bo.getPosCoeffDefault());
|
||||
lqw.eq(bo.getIsActive() != null, PerfEmployeeInfo::getIsActive, bo.getIsActive());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增员工绩效薪资基本信息
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(PerfEmployeeInfoBo bo) {
|
||||
PerfEmployeeInfo add = BeanUtil.toBean(bo, PerfEmployeeInfo.class);
|
||||
validEntityBeforeSave(add);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (flag) {
|
||||
bo.setId(add.getId());
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改员工绩效薪资基本信息
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(PerfEmployeeInfoBo bo) {
|
||||
PerfEmployeeInfo update = BeanUtil.toBean(bo, PerfEmployeeInfo.class);
|
||||
validEntityBeforeSave(update);
|
||||
return baseMapper.updateById(update) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存前的数据校验
|
||||
*/
|
||||
private void validEntityBeforeSave(PerfEmployeeInfo entity){
|
||||
//TODO 做一些数据校验,如唯一约束
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除员工绩效薪资基本信息
|
||||
*/
|
||||
@Override
|
||||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
||||
if(isValid){
|
||||
//TODO 做一些业务上的校验,判断是否需要校验
|
||||
}
|
||||
return baseMapper.deleteBatchIds(ids) > 0;
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
<?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="com.klp.perf.mapper.PerfEmployeeInfoMapper">
|
||||
|
||||
<resultMap type="com.klp.perf.domain.PerfEmployeeInfo" id="PerfEmployeeInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="employeeId" column="employee_id"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<result property="positionName" column="position_name"/>
|
||||
<result property="baseSalary" column="base_salary"/>
|
||||
<result property="perfBase" column="perf_base"/>
|
||||
<result property="posCoeffDefault" column="pos_coeff_default"/>
|
||||
<result property="isActive" column="is_active"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -6,6 +6,7 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
/**
|
||||
@@ -86,6 +87,18 @@ public class WmsEmployeeInfo extends BaseEntity {
|
||||
* 社保类型(三险/五险)
|
||||
*/
|
||||
private String socialInsuranceType;
|
||||
/**
|
||||
* 底薪(元)
|
||||
*/
|
||||
private BigDecimal baseSalary;
|
||||
/**
|
||||
* 岗位绩效基数(元), 默认≈底薪×20%
|
||||
*/
|
||||
private BigDecimal perfBase;
|
||||
/**
|
||||
* 默认岗位系数(初始值,后续月度由绩效自动覆盖)
|
||||
*/
|
||||
private BigDecimal posCoeffDefault;
|
||||
/**
|
||||
* 逻辑删除标识:0=正常,1=已删
|
||||
*/
|
||||
|
||||
@@ -6,6 +6,7 @@ import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
@@ -114,6 +115,21 @@ public class WmsEmployeeInfoBo extends BaseEntity {
|
||||
*/
|
||||
private String socialInsuranceType;
|
||||
|
||||
/**
|
||||
* 底薪(元)
|
||||
*/
|
||||
private BigDecimal baseSalary;
|
||||
|
||||
/**
|
||||
* 岗位绩效基数(元), 默认≈底薪×20%
|
||||
*/
|
||||
private BigDecimal perfBase;
|
||||
|
||||
/**
|
||||
* 默认岗位系数(初始值,后续月度由绩效自动覆盖)
|
||||
*/
|
||||
private BigDecimal posCoeffDefault;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.klp.domain.vo;
|
||||
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
@@ -117,6 +118,24 @@ public class WmsEmployeeInfoVo {
|
||||
*/
|
||||
private String socialInsuranceType;
|
||||
|
||||
/**
|
||||
* 底薪(元)
|
||||
*/
|
||||
@ExcelProperty(value = "底薪(元)")
|
||||
private BigDecimal baseSalary;
|
||||
|
||||
/**
|
||||
* 岗位绩效基数(元), 默认≈底薪×20%
|
||||
*/
|
||||
@ExcelProperty(value = "岗位绩效基数(元)")
|
||||
private BigDecimal perfBase;
|
||||
|
||||
/**
|
||||
* 默认岗位系数(初始值,后续月度由绩效自动覆盖)
|
||||
*/
|
||||
@ExcelProperty(value = "默认岗位系数")
|
||||
private BigDecimal posCoeffDefault;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
|
||||
@@ -81,6 +81,9 @@ 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.getBaseSalary() != null, WmsEmployeeInfo::getBaseSalary, bo.getBaseSalary());
|
||||
lqw.eq(bo.getPerfBase() != null, WmsEmployeeInfo::getPerfBase, bo.getPerfBase());
|
||||
lqw.eq(bo.getPosCoeffDefault() != null, WmsEmployeeInfo::getPosCoeffDefault, bo.getPosCoeffDefault());
|
||||
// 是否离职
|
||||
lqw.eq(bo.getIsLeave() != null, WmsEmployeeInfo::getIsLeave, bo.getIsLeave());
|
||||
// 离职时间范围查询
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
<result property="relationship" column="relationship"/>
|
||||
<result property="emergencyContactPhone" column="emergency_contact_phone"/>
|
||||
<result property="socialInsuranceType" column="social_insurance_type"/>
|
||||
<result property="baseSalary" column="base_salary"/>
|
||||
<result property="perfBase" column="perf_base"/>
|
||||
<result property="posCoeffDefault" column="pos_coeff_default"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
|
||||
Reference in New Issue
Block a user