Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjs-bd-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
s_guodong
gjjs-bd-common
Commits
99e094af
Commit
99e094af
authored
Aug 03, 2023
by
吴佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改计数器从CNT表中获取数据
parent
d87d4169
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
countermapper.xml
gjjs-bd-business/src/main/resources/mapper/countermapper.xml
+3
-3
No files found.
gjjs-bd-business/src/main/resources/mapper/countermapper.xml
View file @
99e094af
...
...
@@ -3,15 +3,15 @@
<mapper
namespace=
"com.brilliance.mda.support.mybatis.count.mapper.CounterMapper"
>
<insert
id=
"insertNewCounter"
>
insert into C
OU(COUNAM,COUVAL,COU
STP) values(#{nam},#{start},#{stp})
insert into C
NT(NAM,VAL,
STP) values(#{nam},#{start},#{stp})
</insert>
<select
id=
"getCountValWithUpdate"
resultType=
"java.lang.Integer"
>
select
COUVAL from COU where COU
NAM = #{nam} for update
select
VAL from CNT where
NAM = #{nam} for update
</select>
<update
id=
"updateCounter"
>
update C
OU set COUVAL = COUVAL + COUSTP where COU
NAM = #{nam}
update C
NT set VAL = VAL + STP where
NAM = #{nam}
</update>
<select
id=
"seqNextval"
resultType=
"java.lang.Integer"
>
...
...
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