Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fill-system
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
廖旭伟
fill-system
Commits
bb9181e3
Commit
bb9181e3
authored
Nov 18, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重构部分功能模块
parent
2a958fdc
Pipeline
#2319
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
fill-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterDatumServiceImpl.java
...hx/module/matter/service/impl/MatterDatumServiceImpl.java
+0
-9
fill-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
...als/xhx/module/matter/service/impl/MatterServiceImpl.java
+1
-1
No files found.
fill-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterDatumServiceImpl.java
View file @
bb9181e3
...
...
@@ -142,9 +142,6 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
if
(
StringUtils
.
isEmpty
(
entity
.
getTemplatePath
()))
{
throw
new
AppException
(
"样表模板地址不能为空"
);
}
entity
.
setTotal
(
0
);
entity
.
setSort
(
0
);
entity
.
setIsRecommend
(
0
);
//生成样表预览图片
String
rootPath
=
this
.
filePath
.
endsWith
(
"/"
)
?
this
.
filePath
:
this
.
filePath
+
"/"
;
String
samplePath
=
rootPath
+
entity
.
getSamplePath
();
...
...
@@ -168,12 +165,6 @@ public class MatterDatumServiceImpl extends AbstractCRUDServiceImpl<MatterDatumD
super
.
saveBefore
(
entity
,
context
);
}
@Override
protected
void
updateBefore
(
MatterDatumEntity
entity
,
Context
context
)
throws
AppException
{
entity
.
setIsRecommend
(
null
);
this
.
validData
(
entity
,
context
);
}
@Override
public
int
remove
(
Long
id
,
Context
context
)
throws
AppException
{
this
.
removeBefore
(
id
,
context
);
...
...
fill-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
View file @
bb9181e3
...
...
@@ -117,7 +117,7 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
throw
new
AppException
(
"数据已更改,请重试"
);
}
String
msg
=
"推荐成功!"
;
int
recommendCount
=
this
.
count
(
new
MatterQuery
().
siteId
(
matterEntity
.
getSiteId
()).
isRecommend
(
YesNoEnum
.
YES
.
getValue
()),
null
);
int
recommendCount
=
this
.
count
(
new
MatterQuery
().
siteId
(
matterEntity
.
getSiteId
()).
isRecommend
(
YesNoEnum
.
YES
.
getValue
()),
context
);
if
(
matterEntity
.
getIsRecommend
()
==
YesNoEnum
.
NO
.
getValue
())
{
if
(
recommendCount
>=
RECOMMEND_COUNT
)
{
throw
new
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