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
658f1c8c
Commit
658f1c8c
authored
Sep 30, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限时放漏
parent
1ad3def9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/ExchangeServiceImpl.java
...com/wwdz/ch/wx/impl/distribution/ExchangeServiceImpl.java
+4
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+2
-4
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/ExchangeServiceImpl.java
View file @
658f1c8c
...
...
@@ -248,6 +248,10 @@ public class ExchangeServiceImpl implements ExchangeService {
if
(
orderNum
>
0
)
{
return
Result
.
failed
(
"可直接换的商品每人限换一单"
);
}
//限换一件
if
(
dto
.
getExchangeItemNum
()
!=
null
&&
dto
.
getExchangeItemNum
()
>
1
)
{
return
Result
.
failed
(
"可直接换的商品每人只能换一件"
);
}
if
(
dto
.
getIsMultiple
())
{
//多商品场景在受理方订单中出现,别人用多件商品换受理方的一件商品,对于受理方而言等于是一个订单买了多件商品,
...
...
@@ -265,7 +269,6 @@ public class ExchangeServiceImpl implements ExchangeService {
logger
.
info
(
"商品id:{}, 库存不足"
,
exchangeItemId
);
return
Result
.
failed
(
"库存不足"
);
}
}
List
<
ItemSimpleDto
>
itemSimpleDtoList
=
dto
.
getItemList
();
//查询用户藏品的价值
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
658f1c8c
...
...
@@ -390,9 +390,8 @@ public class SupplierItemServiceImpl implements SupplierItemService {
try
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
SupplierItemRequestDto
searchDto
=
new
SupplierItemRequestDto
();
searchDto
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
DISCOUNT
.
getCode
());
searchDto
.
setIsDeleted
(
false
);
searchDto
.
setIsOnSale
(
true
);
searchDto
.
setIds
(
Arrays
.
asList
(
328960426L
,
328960421L
,
328960422L
,
328960423L
,
328960424L
,
328959739L
,
328960425L
,
328960419L
,
328960418L
,
328960417L
,
328960416L
,
328960415L
,
328960414L
,
328960413L
));
List
<
SupplierItem
>
supplierItemList
=
supplierItemDao
.
findList
(
searchDto
);
PageInfo
pageInfo
=
new
PageInfo
(
supplierItemList
);
List
<
SupplierItemVo
>
supplierItemVoList
=
new
ArrayList
<>();
...
...
@@ -409,7 +408,6 @@ public class SupplierItemServiceImpl implements SupplierItemService {
Date
startTime
=
supplierItemList
.
get
(
0
).
getCreateTime
();
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
startTime
);
calendar
.
add
(
Calendar
.
DAY_OF_YEAR
,
5
);
calendar
.
set
(
Calendar
.
HOUR_OF_DAY
,
23
);
calendar
.
set
(
Calendar
.
MINUTE
,
59
);
calendar
.
set
(
Calendar
.
SECOND
,
59
);
...
...
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