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
a309c49f
Commit
a309c49f
authored
Sep 02, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkIsMine,userId为空时返回false
parent
a90373c5
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/distribution/SelfPageServiceImpl.java
...com/wwdz/ch/wx/impl/distribution/SelfPageServiceImpl.java
+2
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/SelfPageController.java
...a/com/wwdz/ch/wx/web/distribution/SelfPageController.java
+0
-6
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SelfPageServiceImpl.java
View file @
a309c49f
...
...
@@ -232,7 +232,7 @@ public class SelfPageServiceImpl implements SelfPageService {
Long
itemUserId
;
if
(
dto
.
getTargetUserId
()
!=
null
)
{
itemUserId
=
dto
.
getTargetUserId
();
if
(
itemUserId
.
longValue
()
!=
dto
.
getUserId
())
{
if
(
dto
.
getUserId
()
==
null
||
itemUserId
.
longValue
()
!=
dto
.
getUserId
())
{
map
.
put
(
"isMine"
,
false
);
}
else
{
map
.
put
(
"isMine"
,
true
);
...
...
@@ -240,7 +240,7 @@ public class SelfPageServiceImpl implements SelfPageService {
}
else
{
CollectionShareRecord
collectionShareRecord
=
collectionShareRecordDao
.
findById
(
dto
.
getShareRecordId
());
itemUserId
=
collectionShareRecord
.
getItemUserId
();
if
(
itemUserId
.
longValue
()
!=
dto
.
getUserId
())
{
if
(
dto
.
getUserId
()
!=
null
||
itemUserId
.
longValue
()
!=
dto
.
getUserId
())
{
map
.
put
(
"isMine"
,
false
);
}
else
{
map
.
put
(
"isMine"
,
true
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/SelfPageController.java
View file @
a309c49f
...
...
@@ -91,12 +91,6 @@ public class SelfPageController {
@PostMapping
(
"/checkIsMine"
)
public
Result
checkIsMine
(
@RequestBody
SelfPageRequestDto
dto
)
{
logger
.
info
(
"分销商查询自己购买的订单信息,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
Validator
validator
=
new
Validator
(
FormHandler
.
ofEntity
(
dto
));
validator
.
set
(
"userId"
,
"用户id"
).
must
().
number
()
.
end
();
if
(!
validator
.
isValid
())
{
return
Result
.
failed
(
validator
.
getErrorInfo
());
}
return
selfPageService
.
checkIsMine
(
dto
);
}
...
...
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