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
4f687412
Commit
4f687412
authored
Sep 25, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
黑名单用户待处理交换订单不能超过3个
parent
bf19100b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/ExchangeApplyOrderServiceImpl.java
...h/wx/impl/distribution/ExchangeApplyOrderServiceImpl.java
+7
-0
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/ExchangeApplyOrderServiceImpl.java
View file @
4f687412
...
@@ -44,6 +44,8 @@ public class ExchangeApplyOrderServiceImpl implements ExchangeApplyOrderService
...
@@ -44,6 +44,8 @@ public class ExchangeApplyOrderServiceImpl implements ExchangeApplyOrderService
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ExchangeApplyOrderServiceImpl
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ExchangeApplyOrderServiceImpl
.
class
);
private
static
final
List
<
Long
>
BLACK_USER_LIST
=
Arrays
.
asList
(
40151043L
,
39965054L
);
@Autowired
@Autowired
ExchangeApplyOrderDetailDao
exchangeApplyOrderDetailDao
;
ExchangeApplyOrderDetailDao
exchangeApplyOrderDetailDao
;
...
@@ -82,6 +84,11 @@ public class ExchangeApplyOrderServiceImpl implements ExchangeApplyOrderService
...
@@ -82,6 +84,11 @@ public class ExchangeApplyOrderServiceImpl implements ExchangeApplyOrderService
if
(
CollectionUtils
.
isEmpty
(
supplierItemList
))
{
if
(
CollectionUtils
.
isEmpty
(
supplierItemList
))
{
return
Result
.
failed
(
"请先上传藏品"
);
return
Result
.
failed
(
"请先上传藏品"
);
}
}
if
(
BLACK_USER_LIST
.
contains
(
dto
.
getUserId
()))
{
if
(
exchangeApplyOrderDao
.
countPreHandleOrderOfCommit
(
dto
.
getUserId
())
>=
3
)
{
return
Result
.
failed
(
"待处理交换订单不能超过3个"
);
}
}
SupplierItem
targetSupplierItem
=
supplierItemDao
.
findById
(
dto
.
getTargetItemId
());
SupplierItem
targetSupplierItem
=
supplierItemDao
.
findById
(
dto
.
getTargetItemId
());
dto
.
setTargetUserId
(
targetSupplierItem
.
getCreatorId
());
dto
.
setTargetUserId
(
targetSupplierItem
.
getCreatorId
());
Date
now
=
new
Date
();
Date
now
=
new
Date
();
...
...
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