Commit 87a4a3d3 by 叶立庆

Merge branch 'v5.6.0' of http://192.168.3.233:8090/dj/rpc-staff into v5.6.0

2 parents 21a0c2c4 27111c83
package cn.com.glsx.dj.staff.dto.perfSalary;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class PerfRuleExportDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 绩效月份-(评分月份)
*/
@ApiModelProperty("绩效月份-(评分月份)")
private String evaluationMonth;
}
package cn.com.glsx.dj.staff.dto.perfSalary;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class PerfRuleExportInfoDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 姓名
*/
private String name;
/**
* 入职门店
*/
private String merchantName;
/**
* 入职岗位
*/
private String oIdJobPost;
/**
* 上级领导
*/
private String superiorLeaderName;
/**
* 入职时间
*/
private String entryDate;
/**
* 离职时间
*/
private String leaveDate;
/**
* 工资标准
*/
private String salaryStandard;
/**
* 应出勤天数
*/
private String expectedAttendanceDays;
/**
* 实际出勤(H)
*/
private String actualAttendanceH;
/**
* 确认实际出勤(H)
*/
private String confirmedAttendanceH;
/**
* 迟到早退(H)
*/
private String lateEarlyHours;
/**
* 缺卡(次)
*/
private String missingPunchCount;
/**
* 实际出勤(天)
*/
private String actualAttendanceDays;
/**
* 确认实际出勤(天)
*/
private String confirmedAttendanceDays;
/**
* 基本工资
*/
private String basicSalary;
/**
* 绩效工资
*/
private String performanceSalary;
/**
* 底薪
*/
private String baseSalary;
/**
* 绩效等级
*/
private String performanceGrade;
/**
* 绩效月份
*/
private String performanceMonth;
}
......@@ -60,7 +60,6 @@ public class EffectiveReferralReview implements Serializable {
* 复核时间-月份
*/
@ApiModelProperty(notes = "复核时间-月份")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private String reviewMonth;
/**
......
......@@ -34,7 +34,7 @@ public interface EffectiveReferralReviewRemote {
@ApiResponse("复核结果")
RpcResponse<Boolean> effectiveReferralAudit(@NotNull EffectiveReferralReviewCommonDTO dto);
@ApiMethod("web端有效引荐导出数据查询")
/* @ApiMethod("web端有效引荐导出数据查询")
@ApiParam(name = "pagination", notes = "分页查询信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("导出数据列表")
RpcResponse<String> effectiveReferralExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination);
......@@ -42,5 +42,5 @@ public interface EffectiveReferralReviewRemote {
@ApiMethod("web端有效引荐复核导出数据查询")
@ApiParam(name = "pagination", notes = "分页查询信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("复核导出数据列表")
RpcResponse<String> effectiveReferralAuditExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination);
RpcResponse<String> effectiveReferralAuditExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination);*/
}
\ No newline at end of file
......@@ -65,6 +65,11 @@ public interface PerfRuleRemote {
RpcResponse<Boolean> perfAppraisalBatchSubmit(PerfAppraisalBatchSubmitReqDTO perfAppraisalBatchSubmitReqDTO);
/**
* 导出 对应评分月份的绩效
*/
RpcResponse<List<PerfRuleExportInfoDTO>> perfRuleExport(PerfRuleExportDTO dto);
/**
* 考勤数据清洗
*/
RpcResponse<Boolean> attendanceDataCleansing();
......@@ -83,4 +88,6 @@ public interface PerfRuleRemote {
* 每月自动评绩效
*/
RpcResponse<Boolean> autoPerfEvaluation();
}
......@@ -35,4 +35,5 @@ public interface PerformanceEvaluationMapper extends OreMapper<PerformanceEvalua
List<String> querySuperiorLeaderMobilePhoneLeader(@Param("date") String date);
List<PerfRuleExportInfoDTO> perfRuleExport(PerfRuleExportDTO dto);
}
\ No newline at end of file
......@@ -58,7 +58,7 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
}
}
@Override
/*@Override
public RpcResponse<String> effectiveReferralExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination) {
try{
return RpcResponse.success(effectiveReferralReviewService.effectiveReferralExportData(pagination));
......@@ -76,5 +76,5 @@ public class EffectiveReferralReviewRemoteImpl implements EffectiveReferralRevie
log.error(e.getMessage(),e);
return RpcResponse.error(e);
}
}
}*/
}
\ No newline at end of file
......@@ -171,6 +171,19 @@ public class PerfRuleRemoteImpl implements PerfRuleRemote {
}
/**
* 导出 对应评分月份的绩效
*/
@Override
public RpcResponse<List<PerfRuleExportInfoDTO>> perfRuleExport(PerfRuleExportDTO dto) {
try {
return RpcResponse.success(performanceEvaluationService.perfRuleExport(dto));
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
/**
* 考勤数据清洗
*/
@Override
......@@ -207,4 +220,6 @@ public class PerfRuleRemoteImpl implements PerfRuleRemote {
}
}
......@@ -101,10 +101,8 @@ public class EffectiveReferralReviewService {
EffectiveReferralReview effectiveReferralReview = new EffectiveReferralReview();
Date curDate = new Date();
//将curDate 转化为 yyyy-MM
String format = DateUtil.format(curDate, "yyyy-MM");
effectiveReferralReview.setId(dto.getId());
effectiveReferralReview.setReviewedEffectiveCount(dto.getReviewedEffectiveCount());
effectiveReferralReview.setReviewMonth(format);
effectiveReferralReview.setIsReviewed(1);
effectiveReferralReview.setReviewedBy(dto.getUpdatedBy());
effectiveReferralReview.setReviewedName(dto.getUpdatedBy());
......@@ -114,13 +112,13 @@ public class EffectiveReferralReviewService {
effectiveReferralReviewMapper.updateByPrimaryKeySelective(effectiveReferralReview);
}
public String effectiveReferralExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination) {
/*public String effectiveReferralExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination) {
return null;
}
public String effectiveReferralAuditExportData(RpcPagination<EffectiveReferralReviewCommonDTO> pagination) {
return null;
}
}*/
/**
* 根据条件查询单条有效引荐数记录
......
......@@ -310,4 +310,11 @@ public class PerformanceEvaluationService {
}
return true;
}
/**
* 导出 对应评分月份的绩效
*/
public List<PerfRuleExportInfoDTO> perfRuleExport(PerfRuleExportDTO dto) {
return performanceEvaluationMapper.perfRuleExport(dto);
}
}
\ No newline at end of file
......@@ -82,8 +82,8 @@
AND dclsm.merchant_name LIKE CONCAT('%', #{merchantName},
'%')
</if>
<if test="createdDate != null and createdDate != ''">
AND DATE_FORMAT(serr.created_date, '%Y-%m') = #{createdDate}
<if test="reviewMonth != null and reviewMonth != ''">
AND serr.review_month = #{reviewMonth}
</if>
GROUP BY
serr.merchant_id
......
......@@ -515,4 +515,36 @@
and handle_status = 0
</select>
<select id="perfRuleExport" resultType="cn.com.glsx.dj.staff.dto.perfSalary.PerfRuleExportInfoDTO">
SELECT spe.name AS name,
spe.merchant_name AS merchantName,
spe.oId_job_post AS oIdJobPost,
spe.superior_leader_name AS superiorLeaderName,
spe.entry_date AS entryDate,
spe.leave_date AS leaveDate,
IF(spe.is_probation = 1 AND spe.is_correction = 0, spe.before_correction_basic_salary,
spe.after_correction_basic_salary) AS salaryStandard,
sas.expected_attendance_days AS expectedAttendanceDays,
COALESCE(sas.actual_attendance_days, 0) * 8 AS actualAttendanceH,
COALESCE(sas.appeal_attendance_days, 0) * 8 AS confirmedAttendanceH,
sas.late_early_hours AS lateEarlyHours,
sas.missing_punch_count AS missingPunchCount,
sas.actual_attendance_days AS actualAttendanceDays,
sas.appeal_attendance_days AS confirmedAttendanceDays,
spe.basic_salary AS basicSalary,
spe.performance_salary AS performanceSalary,
spe.base_salary AS baseSalary,
IF(spe.adopt_type = 2, spe.manual_grade_code, spe.auto_grade_code) AS performanceGrade,
spe.evaluation_month AS performanceMonth
FROM sal_performance_evaluation spe
LEFT JOIN sal_attendance_summary sas
ON spe.mobile_phone = sas.mobile_phone
AND spe.evaluation_month = sas.attendance_month
AND sas.deleted_flag = 'N'
WHERE spe.deleted_flag = 'N'
AND spe.evaluation_month = #{evaluationMonth}
ORDER BY IF(name REGEXP '^[A-Za-z]', CONVERT(name USING gbk), CONVERT(CONVERT(name USING gbk) USING utf8mb4)),
name;
</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!