Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
an-plus-hr
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
anjia-hr
an-plus-hr
Commits
bd1dc723
Commit
bd1dc723
authored
Nov 24, 2025
by
刘斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 完善分库事务
parent
ccfdbde4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
EmployeeInfoServImpl.java
...java/com/anplus/hr/service/impl/EmployeeInfoServImpl.java
+4
-1
No files found.
admin/src/main/java/com/anplus/hr/service/impl/EmployeeInfoServImpl.java
View file @
bd1dc723
...
...
@@ -459,7 +459,7 @@ public class EmployeeInfoServImpl extends ServiceImpl<EmployeeInfoMapper, Employ
* @return 是否申请成功
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@
DS
Transactional
(
rollbackFor
=
Exception
.
class
)
public
Boolean
applyEntry
(
EmployeeEntryApplyParam
param
)
{
EmployeeInfo
employeeInfo
=
employeeInfoMapper
.
selectById
(
param
.
getId
());
if
(
Objects
.
equals
(
employeeInfo
.
getEntryApplyStatus
(),
HrFlowEnum
.
WAITING
.
getStatus
()))
{
...
...
@@ -490,6 +490,7 @@ public class EmployeeInfoServImpl extends ServiceImpl<EmployeeInfoMapper, Employ
* @return 是否申请成功
*/
@Override
@DSTransactional
(
rollbackFor
=
Exception
.
class
)
public
Boolean
applyTransfer
(
EmployeeTransferApplyParam
param
)
{
EmployeeInfo
employeeInfo
=
employeeInfoMapper
.
selectById
(
param
.
getId
());
if
(
Objects
.
equals
(
employeeInfo
.
getTransferApplyStatus
(),
HrFlowEnum
.
WAITING
.
getStatus
()))
{
...
...
@@ -573,6 +574,7 @@ public class EmployeeInfoServImpl extends ServiceImpl<EmployeeInfoMapper, Employ
* @return 是否申请成功
*/
@Override
@DSTransactional
(
rollbackFor
=
Exception
.
class
)
public
Boolean
applyRegular
(
EmployeeRegularApplyParam
param
)
{
EmployeeInfo
employeeInfo
=
employeeInfoMapper
.
selectById
(
param
.
getId
());
if
(
Objects
.
equals
(
employeeInfo
.
getRegularApplyStatus
(),
HrFlowEnum
.
WAITING
.
getStatus
()))
{
...
...
@@ -635,6 +637,7 @@ public class EmployeeInfoServImpl extends ServiceImpl<EmployeeInfoMapper, Employ
* @return 是否申请成功
*/
@Override
@DSTransactional
(
rollbackFor
=
Exception
.
class
)
public
Boolean
applyRenewalContract
(
EmployeeRenewalContractApplyParam
param
)
{
EmployeeInfo
employeeInfo
=
employeeInfoMapper
.
selectById
(
param
.
getId
());
if
(
Objects
.
equals
(
employeeInfo
.
getRenewalApplyStatus
(),
HrFlowEnum
.
WAITING
.
getStatus
()))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment