Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-staff
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 87a4a3d3
authored
Jan 21, 2026
by
叶立庆
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v5.6.0' of
http://192.168.3.233:8090/dj/rpc-staff
into v5.6.0
2 parents
21a0c2c4
27111c83
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
207 additions
and
11 deletions
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/perfSalary/PerfRuleExportDTO.java
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/perfSalary/PerfRuleExportInfoDTO.java
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/model/perfSalary/EffectiveReferralReview.java
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewRemote.java
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/PerfRuleRemote.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/mapper/perfSalary/PerformanceEvaluationMapper.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewRemoteImpl.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/PerfRuleRemoteImpl.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewService.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/PerformanceEvaluationService.java
rpc-dj-staff/src/main/resources/META-INF/orm/EffectiveReferralReviewMapper.xml
rpc-dj-staff/src/main/resources/META-INF/orm/PerformanceEvaluationMapper.xml
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/perfSalary/PerfRuleExportDTO.java
0 → 100644
View file @
87a4a3d
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
;
}
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/perfSalary/PerfRuleExportInfoDTO.java
0 → 100644
View file @
87a4a3d
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
;
}
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/model/perfSalary/EffectiveReferralReview.java
View file @
87a4a3d
...
...
@@ -60,7 +60,6 @@ public class EffectiveReferralReview implements Serializable {
* 复核时间-月份
*/
@ApiModelProperty
(
notes
=
"复核时间-月份"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
String
reviewMonth
;
/**
...
...
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewRemote.java
View file @
87a4a3d
...
...
@@ -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
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/PerfRuleRemote.java
View file @
87a4a3d
...
...
@@ -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
();
}
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/mapper/perfSalary/PerformanceEvaluationMapper.java
View file @
87a4a3d
...
...
@@ -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
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/EffectiveReferralReviewRemoteImpl.java
View file @
87a4a3d
...
...
@@ -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
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/remote/perfSalary/PerfRuleRemoteImpl.java
View file @
87a4a3d
...
...
@@ -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 {
}
}
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/EffectiveReferralReviewService.java
View file @
87a4a3d
...
...
@@ -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;
}
}
*/
/**
* 根据条件查询单条有效引荐数记录
...
...
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/perfSalary/PerformanceEvaluationService.java
View file @
87a4a3d
...
...
@@ -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
rpc-dj-staff/src/main/resources/META-INF/orm/EffectiveReferralReviewMapper.xml
View file @
87a4a3d
...
...
@@ -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
...
...
rpc-dj-staff/src/main/resources/META-INF/orm/PerformanceEvaluationMapper.xml
View file @
87a4a3d
...
...
@@ -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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment