Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
7d186580
Commit
7d186580
authored
Apr 08, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查设备是否引用,查询sql时清除mybatis缓存,强制开启新事务。减少干扰
parent
80eaba86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+1
-1
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+2
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
7d186580
...
...
@@ -2330,7 +2330,7 @@
WHERE tjvi."USE_UNIT_CREDIT_CODE" = #{useCode}
AND tjvi.is_delete = '0'
</select>
<select
id=
"countEquipInUseTimesWithOutZF"
resultType=
"java.lang.Integer"
>
<select
id=
"countEquipInUseTimesWithOutZF"
resultType=
"java.lang.Integer"
flushCache=
"true"
>
select
sum(inUseNumber)
from (
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
7d186580
...
...
@@ -85,6 +85,7 @@ import org.springframework.core.io.Resource;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.MediaType
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.Assert
;
import
org.springframework.util.CollectionUtils
;
...
...
@@ -2152,6 +2153,7 @@ public class CommonServiceImpl implements ICommonService {
}
@Override
@Transactional
(
propagation
=
Propagation
.
REQUIRES_NEW
)
public
Boolean
checkEquipIsUsed
(
String
record
)
{
Integer
useTime
=
commonMapper
.
countEquipInUseTimesWithOutZF
(
record
);
log
.
info
(
"检查设备是否被使用,设备:{},业务数:{}"
,
record
,
useTime
);
...
...
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