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 c7157ca4
authored
Jan 22, 2026
by
林冲
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
web后台答复申诉
1 parent
3e59c3f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
3 deletions
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/model/StaffSalaryAppealApplyRecord.java
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/StaffSalaryAppealApplyRecordService.java
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/model/StaffSalaryAppealApplyRecord.java
View file @
c7157ca
...
@@ -104,6 +104,13 @@ public class StaffSalaryAppealApplyRecord implements Serializable {
...
@@ -104,6 +104,13 @@ public class StaffSalaryAppealApplyRecord implements Serializable {
@Column
(
name
=
"pad_record_num"
)
@Column
(
name
=
"pad_record_num"
)
private
Integer
padRecordNum
;
private
Integer
padRecordNum
;
/**
* 触客数
*/
@ApiModelProperty
(
notes
=
"触客数"
)
@Column
(
name
=
"shop_count"
)
private
Integer
shopCount
;
/**
/**
* 申诉修改平板录音数
* 申诉修改平板录音数
*/
*/
...
...
rpc-dj-staff/src/main/java/cn/com/glsx/dj/staff/service/StaffSalaryAppealApplyRecordService.java
View file @
c7157ca
...
@@ -19,10 +19,13 @@ import cn.com.glsx.dj.staff.model.SalaryAppealApplyAttachment;
...
@@ -19,10 +19,13 @@ import cn.com.glsx.dj.staff.model.SalaryAppealApplyAttachment;
import
cn.com.glsx.dj.staff.model.StaffMonthBdmCount
;
import
cn.com.glsx.dj.staff.model.StaffMonthBdmCount
;
import
cn.com.glsx.dj.staff.model.StaffSalaryAppealApplyRecord
;
import
cn.com.glsx.dj.staff.model.StaffSalaryAppealApplyRecord
;
import
cn.com.glsx.dj.staff.model.perfSalary.AttendanceSummary
;
import
cn.com.glsx.dj.staff.model.perfSalary.AttendanceSummary
;
import
cn.com.glsx.dj.staff.service.perfSalary.AttendanceSummaryService
;
import
cn.com.glsx.dj.staff.service.salary.StaffMonthSalarySlipService
;
import
cn.com.glsx.dj.staff.service.staffPerformance.PerformanceTimeCycleService
;
import
cn.com.glsx.dj.staff.service.staffPerformance.PerformanceTimeCycleService
;
import
cn.com.glsx.dj.staff.util.DateUtils
;
import
cn.com.glsx.dj.staff.util.DateUtils
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
import
cn.com.glsx.framework.core.enums.StatusEnum
;
import
cn.com.glsx.framework.core.enums.StatusEnum
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.Page
;
...
@@ -33,6 +36,8 @@ import org.springframework.beans.BeanUtils;
...
@@ -33,6 +36,8 @@ import org.springframework.beans.BeanUtils;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.support.TransactionSynchronizationAdapter
;
import
org.springframework.transaction.support.TransactionSynchronizationManager
;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.entity.Example
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -68,6 +73,12 @@ public class StaffSalaryAppealApplyRecordService {
...
@@ -68,6 +73,12 @@ public class StaffSalaryAppealApplyRecordService {
@Resource
@Resource
private
PerformanceTimeCycleService
performanceTimeCycleService
;
private
PerformanceTimeCycleService
performanceTimeCycleService
;
@Resource
private
AttendanceSummaryService
attendanceSummaryService
;
@Resource
private
StaffMonthSalarySlipService
staffMonthSalarySlipService
;
/**
/**
* 新增申诉
* 新增申诉
*/
*/
...
@@ -221,8 +232,14 @@ public class StaffSalaryAppealApplyRecordService {
...
@@ -221,8 +232,14 @@ public class StaffSalaryAppealApplyRecordService {
public
Boolean
webReply
(
StaffSalaryAppealApplyRecordDTO
dto
)
{
public
Boolean
webReply
(
StaffSalaryAppealApplyRecordDTO
dto
)
{
log
.
info
(
"webReply start, dto:{}"
,
dto
);
log
.
info
(
"webReply start, dto:{}"
,
dto
);
try
{
try
{
StaffSalaryAppealApplyRecord
record
=
new
StaffSalaryAppealApplyRecord
();
StaffSalaryAppealApplyRecord
record
=
staffSalaryAppealApplyRecordMapper
.
selectByPrimaryKey
(
dto
.
getId
());
record
.
setId
(
dto
.
getId
());
if
(
record
==
null
)
{
log
.
error
(
"不存在的申诉记录,id:{}"
,
dto
.
getId
());
throw
new
RpcServiceException
(
DefaultErrorEnum
.
DATABASE_ERROR
,
"申诉记录不存在"
);
}
if
(
Objects
.
equals
(
record
.
getDealStatus
(),
2
))
{
throw
new
RpcServiceException
(
DefaultErrorEnum
.
DATA_INVALID
,
"申诉已处理"
);
}
record
.
setConfirmActualAttendanceDays
(
dto
.
getConfirmActualAttendanceDays
());
record
.
setConfirmActualAttendanceDays
(
dto
.
getConfirmActualAttendanceDays
());
record
.
setConfirmPadRecordNum
(
dto
.
getConfirmPadRecordNum
());
record
.
setConfirmPadRecordNum
(
dto
.
getConfirmPadRecordNum
());
record
.
setReplyContent
(
dto
.
getReplyContent
());
record
.
setReplyContent
(
dto
.
getReplyContent
());
...
@@ -232,7 +249,42 @@ public class StaffSalaryAppealApplyRecordService {
...
@@ -232,7 +249,42 @@ public class StaffSalaryAppealApplyRecordService {
record
.
setUpdatedDate
(
new
Date
());
record
.
setUpdatedDate
(
new
Date
());
int
result
=
staffSalaryAppealApplyRecordMapper
.
updateByPrimaryKeySelective
(
record
);
int
result
=
staffSalaryAppealApplyRecordMapper
.
updateByPrimaryKeySelective
(
record
);
return
result
>
0
;
if
(
result
<
1
)
{
throw
new
RpcServiceException
(
DefaultErrorEnum
.
DATABASE_ERROR
,
"更新失败"
);
}
// 事务提交后异步执行同步操作
TransactionSynchronizationManager
.
registerSynchronization
(
new
TransactionSynchronizationAdapter
()
{
@Override
public
void
afterCommit
()
{
try
{
if
(
Objects
.
equals
(
record
.
getAppealType
(),
1
))
{
// 同步考勤数据
log
.
info
(
"id:{}, type:{},同步考勤数据"
,
dto
.
getId
(),
record
.
getAppealType
());
attendanceSummaryService
.
confirmUpdateAppealAttendance
(
record
.
getStaffPhone
(),
record
.
getAppealMonth
(),
record
.
getConfirmActualAttendanceDays
());
}
else
if
(
Objects
.
equals
(
record
.
getAppealType
(),
2
))
{
// 同步平板数据
log
.
info
(
"id:{}, type:{},同步平板数据"
,
dto
.
getId
(),
record
.
getAppealType
());
StaffMonthBdmCount
bdmCount
=
new
StaffMonthBdmCount
();
bdmCount
.
setStaffPhone
(
record
.
getStaffPhone
());
bdmCount
.
setStaffName
(
record
.
getStaffName
());
bdmCount
.
setDeductMonth
(
record
.
getAppealMonth
());
bdmCount
.
setBehaviorDeductType
((
byte
)
2
);
Integer
behaviorCount
=
Math
.
abs
(
record
.
getConfirmPadRecordNum
()
-
record
.
getShopCount
());
bdmCount
.
setBehaviorCount
(
behaviorCount
);
bdmCount
.
setShopCount
(
record
.
getShopCount
());
bdmCount
.
setRecordingCount
(
record
.
getConfirmPadRecordNum
());
bdmCount
.
setUpdatedBy
(
dto
.
getUpdatedBy
());
staffMonthSalarySlipService
.
insertOrUpdateStaffMonthBdmCount
(
bdmCount
);
}
else
{
log
.
info
(
"id:{}, type:{},未知的申诉类型"
,
dto
.
getId
(),
record
.
getAppealType
());
}
}
catch
(
Exception
e
)
{
log
.
error
(
"事务提交后异步执行同步操作失败, id:{}, type:{}"
,
dto
.
getId
(),
record
.
getAppealType
(),
e
);
}
}
});
return
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"webReply error"
,
e
);
log
.
error
(
"webReply error"
,
e
);
throw
new
RpcServiceException
(
"web后台答复失败:"
+
e
.
getMessage
());
throw
new
RpcServiceException
(
"web后台答复失败:"
+
e
.
getMessage
());
...
...
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