Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
agent-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
agent-platform
Commits
89acb2fd
Commit
89acb2fd
authored
Apr 29, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新申报次数
parent
a014102c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
agent-manager/src/main/java/com/mortals/xhx/module/declare/service/impl/DeclareServiceImpl.java
...s/xhx/module/declare/service/impl/DeclareServiceImpl.java
+13
-0
No files found.
agent-manager/src/main/java/com/mortals/xhx/module/declare/service/impl/DeclareServiceImpl.java
View file @
89acb2fd
...
...
@@ -8,6 +8,7 @@ import com.mortals.xhx.common.code.DeclareStatusEnum;
import
com.mortals.xhx.module.category.model.CategoryEntity
;
import
com.mortals.xhx.module.category.service.CategoryService
;
import
com.mortals.xhx.module.company.model.CompanyEntity
;
import
com.mortals.xhx.module.company.model.CompanyQuery
;
import
com.mortals.xhx.module.company.service.CompanyService
;
import
com.mortals.xhx.module.declare.model.*
;
import
com.mortals.xhx.module.declare.service.DeclareFinImagesService
;
...
...
@@ -137,9 +138,20 @@ public class DeclareServiceImpl extends AbstractCRUDServiceImpl<DeclareDao, Decl
}).
count
();
declareFinImagesService
.
save
(
entity
.
getDeclareFinImagesList
());
}
//更新帮办数量
updateCompanyCount
(
entity
,
context
);
super
.
saveAfter
(
entity
,
context
);
}
private
void
updateCompanyCount
(
DeclareEntity
entity
,
Context
context
)
{
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getCompanyId
()))
{
int
count
=
this
.
count
(
new
DeclareQuery
().
companyId
(
entity
.
getCompanyId
()),
context
);
companyService
.
update
(
new
CompanyQuery
().
id
(
entity
.
getId
()).
declarationCount
(
count
),
context
);
}
}
@Override
protected
void
updateAfter
(
DeclareEntity
entity
,
Context
context
)
throws
AppException
{
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getDeclareImagesList
()))
{
...
...
@@ -167,6 +179,7 @@ public class DeclareServiceImpl extends AbstractCRUDServiceImpl<DeclareDao, Decl
}).
count
();
declareFinImagesService
.
save
(
entity
.
getDeclareFinImagesList
());
}
updateCompanyCount
(
entity
,
context
);
super
.
updateAfter
(
entity
,
context
);
}
...
...
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