Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
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
quanku
qk_backend
Commits
d509817b
Commit
d509817b
authored
Sep 15, 2023
by
muhong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/quanku_0914'
parents
f456d403
4de26a90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
+2
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxItemController.java
...pi/src/main/java/com/wwdz/ch/wx/web/WxItemController.java
+0
-6
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ItemServiceImpl.java
View file @
d509817b
...
@@ -305,7 +305,7 @@ public class ItemServiceImpl implements ItemService {
...
@@ -305,7 +305,7 @@ public class ItemServiceImpl implements ItemService {
// 新增藏品记录
// 新增藏品记录
Item
item
=
new
Item
();
Item
item
=
new
Item
();
item
.
setName
(
dto
.
getName
());
item
.
setName
(
dto
.
getName
());
item
.
setCid
(
dto
.
getCid
());
item
.
setCid
(
Objects
.
isNull
(
dto
.
getCid
())
?
0
:
dto
.
getCid
());
item
.
setIsOnSale
(
false
);
item
.
setIsOnSale
(
false
);
item
.
setIsStd
(
false
);
item
.
setIsStd
(
false
);
item
.
setSort
(
100
);
item
.
setSort
(
100
);
...
@@ -566,7 +566,7 @@ public class ItemServiceImpl implements ItemService {
...
@@ -566,7 +566,7 @@ public class ItemServiceImpl implements ItemService {
}
}
item
.
setName
(
dto
.
getName
());
item
.
setName
(
dto
.
getName
());
item
.
setCid
(
dto
.
getCid
());
item
.
setCid
(
Objects
.
isNull
(
dto
.
getCid
())
?
0
:
dto
.
getCid
());
item
.
setImages
(
dto
.
getImages
());
item
.
setImages
(
dto
.
getImages
());
item
.
setVideos
(
""
);
item
.
setVideos
(
""
);
if
(
StringUtils
.
isNotBlank
(
dto
.
getVideos
()))
{
if
(
StringUtils
.
isNotBlank
(
dto
.
getVideos
()))
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxItemController.java
View file @
d509817b
...
@@ -89,9 +89,6 @@ public class WxItemController {
...
@@ -89,9 +89,6 @@ public class WxItemController {
if
(
Objects
.
isNull
(
dto
.
getUserId
())
||
dto
.
getUserId
().
equals
(
0L
))
{
if
(
Objects
.
isNull
(
dto
.
getUserId
())
||
dto
.
getUserId
().
equals
(
0L
))
{
return
Result
.
failed
(
"用户id不能为空"
);
return
Result
.
failed
(
"用户id不能为空"
);
}
}
if
(
Objects
.
isNull
(
dto
.
getCid
()))
{
return
Result
.
failed
(
"分类id不能为空"
);
}
if
(
StringUtils
.
isBlank
(
dto
.
getName
()))
{
if
(
StringUtils
.
isBlank
(
dto
.
getName
()))
{
return
Result
.
failed
(
"请输入标题"
);
return
Result
.
failed
(
"请输入标题"
);
}
}
...
@@ -112,9 +109,6 @@ public class WxItemController {
...
@@ -112,9 +109,6 @@ public class WxItemController {
if
(
Objects
.
isNull
(
dto
.
getUserId
())
||
dto
.
getUserId
().
equals
(
0L
))
{
if
(
Objects
.
isNull
(
dto
.
getUserId
())
||
dto
.
getUserId
().
equals
(
0L
))
{
return
Result
.
failed
(
"用户id不能为空"
);
return
Result
.
failed
(
"用户id不能为空"
);
}
}
if
(
Objects
.
isNull
(
dto
.
getCid
()))
{
return
Result
.
failed
(
"分类id不能为空"
);
}
if
(
StringUtils
.
isBlank
(
dto
.
getName
()))
{
if
(
StringUtils
.
isBlank
(
dto
.
getName
()))
{
return
Result
.
failed
(
"请输入标题"
);
return
Result
.
failed
(
"请输入标题"
);
}
}
...
...
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