Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-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
赵啸非
sample-form-platform
Commits
5807c333
Commit
5807c333
authored
Nov 10, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加公共庫
parent
c8ef4948
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
sample-form-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
...als/xhx/module/matter/service/impl/MatterServiceImpl.java
+13
-13
No files found.
sample-form-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
View file @
5807c333
...
...
@@ -58,19 +58,19 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
this
.
validData
(
entity
,
context
);
}
@Override
protected
void
removeBefore
(
Long
[]
ids
,
Context
context
)
throws
AppException
{
List
<
MatterEntity
>
queryList
=
this
.
get
(
ids
,
context
);
if
(
CollectionUtils
.
isNotEmpty
(
queryList
))
{
int
recommendCount
=
paramService
.
getParamIntValue
(
ParamKey
.
MATTER_RECOMMEND_COUNT
);
for
(
MatterEntity
matterEntity
:
queryList
)
{
if
(
matterEntity
.
getIsRecommend
()
==
1
)
{
recommendCount
--;
}
}
paramService
.
setValueByKey
(
ParamKey
.
MATTER_RECOMMEND_COUNT
,
String
.
valueOf
(
recommendCount
));
}
}
//
@Override
//
protected void removeBefore(Long[] ids, Context context) throws AppException {
//
List<MatterEntity> queryList = this.get(ids, context);
//
if (CollectionUtils.isNotEmpty(queryList)) {
//
int recommendCount = paramService.getParamIntValue(ParamKey.MATTER_RECOMMEND_COUNT);
//
for (MatterEntity matterEntity : queryList) {
//
if (matterEntity.getIsRecommend() == 1) {
//
recommendCount--;
//
}
//
}
//
paramService.setValueByKey(ParamKey.MATTER_RECOMMEND_COUNT, String.valueOf(recommendCount));
//
}
//
}
@Override
protected
void
findAfter
(
MatterEntity
entity
,
PageInfo
pageInfo
,
Context
context
,
List
<
MatterEntity
>
list
)
throws
AppException
{
...
...
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