Commit 47af1ba9 by 张富康

feat(perfSalary): 添加绩效考核详情及相关字段优化

- PerfAppraisalDetailDTO中调整字段类型,新增多项考勤和工资相关字段
- 删除冗余字段merchantId、auto/manualStarCount和isLeaving等
- PerformanceEvaluationMapper新增perfAppraisalDetail查询方法及SQL映射
- PerformanceEvaluationService新增绩效考核详情接口perfAppraisalDetail
- PerfRuleRemoteImpl实现远程调用绩效考核详情方法
- 优化日期字段格式由Date改为String,简化数据处理逻辑
- 统一导入包的方式,简化代码结构
1 parent 41aa581d
package cn.com.glsx.dj.staff.dto.perfSalary;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
......@@ -8,7 +7,6 @@ import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 员工绩效详情
......@@ -34,12 +32,6 @@ public class PerfAppraisalDetailDTO implements Serializable {
private String name;
/**
* 门店id
*/
@ApiModelProperty(notes = "门店id")
private Integer merchantId;
/**
* 门店名称
*/
@ApiModelProperty(notes = "门店名称")
......@@ -49,8 +41,7 @@ public class PerfAppraisalDetailDTO implements Serializable {
* 评分月份(yyyy-mm)
*/
@ApiModelProperty(notes = "评分月份(yyyy-mm)")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date evaluationMonth;
private String evaluationMonth;
/**
* 绩效等级-系统自动设置
......@@ -70,11 +61,6 @@ public class PerfAppraisalDetailDTO implements Serializable {
@ApiModelProperty(notes = "分数范围-系统自动设置")
private String autoScoreSymbolValue;
/**
* 星数-系统自动设置
*/
@ApiModelProperty(notes = "星数-系统自动设置")
private Integer autoStarCount;
/**
* 绩效等级-手动设置
......@@ -94,11 +80,6 @@ public class PerfAppraisalDetailDTO implements Serializable {
@ApiModelProperty(notes = "分数范围-手动设置")
private String manualScoreSymbolValue;
/**
* 星数-手动设置
*/
@ApiModelProperty(notes = "星数-手动设置")
private Integer manualStarCount;
/**
* 手动维护最终绩效金额(0-10000)
......@@ -113,31 +94,56 @@ public class PerfAppraisalDetailDTO implements Serializable {
private Integer isAutoPerformance;
/**
* 绩效工资
* 转正前工资
*/
@ApiModelProperty(notes = "绩效工资")
private BigDecimal performanceSalary;
@ApiModelProperty(notes = "转正前工资")
private BigDecimal beforeCorrectionBasicSalary;
/**
* 转正前底薪
* 转正后工资
*/
@ApiModelProperty(notes = "转正前底薪")
private BigDecimal beforeCorrectionBasicSalary;
@ApiModelProperty(notes = "转正后工资")
private BigDecimal afterCorrectionBasicSalary;
/**
* 转正后底薪
* 底薪占工资占比 默认0.7
*/
@ApiModelProperty(notes = "转正后底薪")
private BigDecimal afterCorrectionBasicSalary;
@ApiModelProperty(notes = "底薪占工资占比 默认0.7")
private BigDecimal basicSalaryRatio;
/**
* 考勤计算后-试用期阶段工资
*/
@ApiModelProperty(notes = "考勤计算后-试用期阶段工资")
private BigDecimal afterAttendanceProbationBasicSalary;
/**
* 考勤计算后-转正后阶段工资
*/
@ApiModelProperty(notes = "考勤计算后-转正后阶段工资")
private BigDecimal afterAttendanceRegularBasicSalary;
/**
* 考勤计算后底薪 todz 考勤申诉成功后需要更新该字段
* 考勤计算后-考勤工资(未乘0.7系数的底薪)
*/
@ApiModelProperty(notes = "考勤计算后底薪")
private BigDecimal afterAttendanceBasicSalary;
@ApiModelProperty(notes = "考勤计算后-考勤工资(未乘0.7系数的底薪)")
private BigDecimal afterAttendanceTotalBasicSalary;
/**
* 基本工资(底薪+绩效工资)
* 底薪 = 考勤计算后-考勤工资 x basic_salary_ratio
*/
@ApiModelProperty(notes = "底薪")
private BigDecimal baseSalary;
/**
* 绩效工资 = 考勤计算后-合计工资 x (1 - basic_salary_ratio) x 评分系数
*/
@ApiModelProperty(notes = "绩效工资")
private BigDecimal performanceSalary;
/**
* 基本工资 = (底薪 + 绩效工资)
*/
@ApiModelProperty(notes = "基本工资(底薪+绩效工资)")
private BigDecimal basicSalary;
......@@ -149,18 +155,22 @@ public class PerfAppraisalDetailDTO implements Serializable {
private BigDecimal totalGrossSalary;
/**
* 该月产值
*/
@ApiModelProperty(notes = "该月产值")
private BigDecimal outputValue;
/**
* 入职日期
*/
@ApiModelProperty(notes = "入职日期")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date entryDate;
@ApiModelProperty(notes = "入职日期 yyyy-MM-dd")
private String entryDate;
/**
* 转正日期
*/
@ApiModelProperty(notes = "转正日期")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date correctionDate;
@ApiModelProperty(notes = "转正日期 yyyy-MM-dd")
private String correctionDate;
/**
* 是否该月入职:1-是,0-否
......@@ -169,9 +179,9 @@ public class PerfAppraisalDetailDTO implements Serializable {
private Integer isEntry;
/**
* 是否试用期:1-是,0-否
* 该月是否试用期:1-是,0-否
*/
@ApiModelProperty(notes = "是否试用期:1-是,0-否")
@ApiModelProperty(notes = "该月是否试用期:1-是,0-否")
private Integer isProbation;
/**
......@@ -180,12 +190,6 @@ public class PerfAppraisalDetailDTO implements Serializable {
@ApiModelProperty(notes = "是否当月转正 1-是,0-否")
private Integer isCorrection;
/**
* 该月是否离职 1-是,0-否
*/
@ApiModelProperty(notes = "该月是否离职 1-是,0-否")
private Integer isLeaving;
/**
* 自动绩效配置id
......
package cn.com.glsx.dj.staff.mapper.perfSalary;
import cn.com.glsx.dj.staff.dto.perfSalary.AppraisalInfoDTO;
import cn.com.glsx.dj.staff.dto.perfSalary.AutoPerformRuleResultDTO;
import cn.com.glsx.dj.staff.dto.perfSalary.PerfAppraisalStatisticsCardDTO;
import cn.com.glsx.dj.staff.dto.perfSalary.PerfRuleReqDTO;
import cn.com.glsx.dj.staff.dto.perfSalary.*;
import cn.com.glsx.dj.staff.model.perfSalary.PerformanceEvaluation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......@@ -23,4 +20,6 @@ public interface PerformanceEvaluationMapper extends OreMapper<PerformanceEvalua
List<AppraisalInfoDTO> perfAppraisalList(PerfRuleReqDTO perfRuleReqDTO);
AutoPerformRuleResultDTO perfAppraisalAutoDetectResult(PerfRuleReqDTO perfRuleReqDTO);
PerfAppraisalDetailDTO perfAppraisalDetail(PerfRuleReqDTO perfRuleReqDTO);
}
\ No newline at end of file
......@@ -110,11 +110,20 @@ public class PerfRuleRemoteImpl implements PerfRuleRemote {
*/
@Override
public RpcResponse<PerfAppraisalDetailDTO> perfAppraisalDetail(PerfRuleReqDTO perfRuleReqDTO) {
return null;
try {
return RpcResponse.success(performanceEvaluationService.perfAppraisalDetail(perfRuleReqDTO));
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
/**
* 绩效考核-提交-单个处理
* todz 员工列表
*/
/**
* 绩效考核-提交-单个处理 todz 校验
*/
@Override
public RpcResponse<Boolean> perfAppraisalSingleSubmit(PerfAppraisalSubmitReqDTO perfAppraisalSubmitReqDTO) {
......
package cn.com.glsx.dj.staff.service.perfSalary;
import cn.com.glsx.dj.staff.dto.perfSalary.AppraisalInfoDTO;
import cn.com.glsx.dj.staff.dto.perfSalary.AutoPerformRuleResultDTO;
import cn.com.glsx.dj.staff.dto.perfSalary.PerfAppraisalStatisticsCardDTO;
import cn.com.glsx.dj.staff.dto.perfSalary.PerfRuleReqDTO;
import cn.com.glsx.dj.staff.dto.perfSalary.*;
import cn.com.glsx.dj.staff.mapper.perfSalary.PerformanceEvaluationMapper;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import lombok.extern.slf4j.Slf4j;
......@@ -48,4 +45,11 @@ public class PerformanceEvaluationService {
public AutoPerformRuleResultDTO perfAppraisalAutoDetectResult(PerfRuleReqDTO perfRuleReqDTO) {
return performanceEvaluationMapper.perfAppraisalAutoDetectResult(perfRuleReqDTO);
}
/**
* 绩效考核详情
*/
public PerfAppraisalDetailDTO perfAppraisalDetail(PerfRuleReqDTO perfRuleReqDTO) {
return performanceEvaluationMapper.perfAppraisalDetail(perfRuleReqDTO);
}
}
\ No newline at end of file
......@@ -365,4 +365,49 @@
and spe.mobile_phone = #{mobilePhone}
</select>
<select id="perfAppraisalDetail" resultType="cn.com.glsx.dj.staff.dto.perfSalary.PerfAppraisalDetailDTO">
select id as id,
mobile_phone as mobilePhone,
name as name,
merchant_name as merchantName,
evaluation_month as evaluationMonth,
auto_grade_code as autoGradeCode,
auto_reward_coefficient as autoRewardCoefficient,
auto_score_symbol_value as autoScoreSymbolValue,
manual_grade_code as manualGradeCode,
manual_reward_coefficient as manualRewardCoefficient,
manual_score_symbol_value as manualScoreSymbolValue,
manual_final_performance_amount as manualFinalPerformanceAmount,
is_auto_performance as isAutoPerformance,
before_correction_basic_salary as beforeCorrectionBasicSalary,
after_correction_basic_salary as afterCorrectionBasicSalary,
basic_salary_ratio as basicSalaryRatio,
after_attendance_probation_basic_salary as afterAttendanceProbationBasicSalary,
after_attendance_regular_basic_salary as afterAttendanceRegularBasicSalary,
after_attendance_total_basic_salary as afterAttendanceTotalBasicSalary,
base_salary as baseSalary,
performance_salary as performanceSalary,
basic_salary as basicSalary,
total_gross_salary as totalGrossSalary,
output_value as outputValue,
entry_date as entryDate,
correction_date as correctionDate,
is_entry as isEntry,
is_probation as isProbation,
is_correction as isCorrection,
auto_performance_config_id as autoPerformanceConfigId,
performance_grade_uuid as performanceGradeUuid,
auto_grade_type as autoGradeType,
submit_count as submitCount,
handle_status as handleStatus,
adopt_type as adoptType,
amount_calculation_type as amountCalculationType,
superior_leader_mobile_phone as superiorLeaderMobilePhone
from sal_performance_evaluation
where deleted_flag = 'N'
and superior_leader_mobile_phone = #{regionManagerMobilePhone}
and evaluation_month = #{queryMonth}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!