Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-common
Overview
Overview
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
isc-v3.1-tmp
isc-common
Commits
9cb60f60
Commit
9cb60f60
authored
Oct 30, 2024
by
zhoujunpeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加lock和unlock方法transName强制大写
parent
5407d0de
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
DBLckBizLocker.java
...a/com/brilliance/isc/common/lock/impl/DBLckBizLocker.java
+3
-3
LckComponent.java
...ava/com/brilliance/isc/common/lock/impl/LckComponent.java
+2
-1
No files found.
isc-common-service-public/src/main/java/com/brilliance/isc/common/lock/impl/DBLckBizLocker.java
View file @
9cb60f60
package
com
.
brilliance
.
isc
.
common
.
lock
.
impl
;
package
com
.
brilliance
.
isc
.
common
.
lock
.
impl
;
import
com.brilliance.isc.common.util.StringUtils
;
import
com.brilliance.isc.bo.Lck
;
import
com.brilliance.isc.bo.Lck
;
import
com.brilliance.isc.bo.Stb
;
import
com.brilliance.isc.bo.Stb
;
import
com.brilliance.isc.mda.dao.StbMapper
;
import
com.brilliance.isc.mda.dao.StbMapper
;
import
com.brilliance.isc.vo.manager.StbVo
;
import
com.brilliance.isc.vo.manager.StbVo
;
import
org.redisson.api.RBucket
;
import
org.
apache.commons.lang3.StringUtils
;
import
org.
redisson.api.RBucket
;
import
org.redisson.api.RedissonClient
;
import
org.redisson.api.RedissonClient
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -209,7 +209,7 @@ public class DBLckBizLocker extends AbstractBizLocker {
...
@@ -209,7 +209,7 @@ public class DBLckBizLocker extends AbstractBizLocker {
@Override
@Override
public
boolean
unlockAllOfTrans
(
String
transName
,
String
userId
)
{
public
boolean
unlockAllOfTrans
(
String
transName
,
String
userId
)
{
Lck
lck
=
new
Lck
();
Lck
lck
=
new
Lck
();
lck
.
setLcktrn
(
transName
);
lck
.
setLcktrn
(
StringUtils
.
upperCase
(
transName
)
);
lck
.
setLckusr
(
userId
);
lck
.
setLckusr
(
userId
);
int
cnt
=
lckComponent
.
deleteLckByUserAndTrn
(
lck
);
int
cnt
=
lckComponent
.
deleteLckByUserAndTrn
(
lck
);
logger
.
info
(
"解除{}用户在{}交易的所有锁定,影响行数{}"
,
userId
,
transName
,
cnt
);
logger
.
info
(
"解除{}用户在{}交易的所有锁定,影响行数{}"
,
userId
,
transName
,
cnt
);
...
...
isc-common-service-public/src/main/java/com/brilliance/isc/common/lock/impl/LckComponent.java
View file @
9cb60f60
package
com
.
brilliance
.
isc
.
common
.
lock
.
impl
;
package
com
.
brilliance
.
isc
.
common
.
lock
.
impl
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
com.brilliance.isc.bo.Lck
;
import
com.brilliance.isc.bo.Lck
;
...
@@ -36,7 +37,7 @@ public class LckComponent {
...
@@ -36,7 +37,7 @@ public class LckComponent {
public
Lck
lockInfo2Lck
(
LockInfo
lockInfo
){
public
Lck
lockInfo2Lck
(
LockInfo
lockInfo
){
Lck
dataLck
=
new
Lck
();
Lck
dataLck
=
new
Lck
();
dataLck
.
setLckdattim
(
new
Date
());
dataLck
.
setLckdattim
(
new
Date
());
dataLck
.
setLcktrn
(
lockInfo
.
getTrnName
(
));
dataLck
.
setLcktrn
(
StringUtils
.
upperCase
(
lockInfo
.
getTrnName
()
));
dataLck
.
setLckusr
(
lockInfo
.
getUsrId
());
dataLck
.
setLckusr
(
lockInfo
.
getUsrId
());
dataLck
.
setLckstr
(
lockInfo
.
genLockKey
());
dataLck
.
setLckstr
(
lockInfo
.
genLockKey
());
if
(
lockInfo
.
isReentrant
()){
if
(
lockInfo
.
isReentrant
()){
...
...
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