Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
24eea324
Commit
24eea324
authored
Nov 04, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
5a5b0351
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
BranchCompanyGiveBiz.java
...thub/wxiaoqi/security/admin/biz/BranchCompanyGiveBiz.java
+6
-2
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/BranchCompanyGiveBiz.java
View file @
24eea324
...
...
@@ -27,6 +27,7 @@ public class BranchCompanyGiveBiz extends BaseBiz<BranchCompanyGiveMapper, Branc
if
(
branchCompanyGive1
==
null
){
insertSelectiveRe
(
branchCompanyGive
);
}
else
{
branchCompanyGive1
.
setId
(
branchCompanyGive1
.
getId
());
updateSelectiveById
(
branchCompanyGive
);
}
Integer
companyId
=
branchCompanyGive
.
getCompanyId
();
...
...
@@ -34,10 +35,13 @@ public class BranchCompanyGiveBiz extends BaseBiz<BranchCompanyGiveMapper, Branc
if
(
branchCompany1
!=
null
){
BranchCompany
branchCompany
=
new
BranchCompany
();
branchCompany
.
setId
(
companyId
);
Integer
giveNum
=
branchCompany1
.
getGiveNum
()
==
null
?
0
:
branchCompany1
.
getGiveNum
();
if
(
isDel
==
1
){
branchCompany
.
setGiveNum
(
branchCompany1
.
getGiveNum
()-
1
);
giveNum
=
giveNum
>
0
?
(
giveNum
-
1
):
0
;
branchCompany
.
setGiveNum
(
giveNum
);
}
else
{
branchCompany
.
setGiveNum
(
branchCompany1
.
getGiveNum
()+
1
);
giveNum
=
giveNum
+
1
;
branchCompany
.
setGiveNum
(
giveNum
);
}
branchCompanyBiz
.
addOrUpd
(
branchCompany
);
}
...
...
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