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
e9cf68b6
Commit
e9cf68b6
authored
May 16, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
折扣品截止日期
parent
dead75f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+15
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
e9cf68b6
...
@@ -274,9 +274,11 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -274,9 +274,11 @@ public class SupplierItemServiceImpl implements SupplierItemService {
}
}
@Override
@Override
public
Result
findDiscountList
(
SupplierItemRequestDto
dto
)
{
public
Result
findDiscountList
(
SupplierItemRequestDto
dto
)
{
try
{
try
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
SupplierItemRequestDto
searchDto
=
new
SupplierItemRequestDto
();
SupplierItemRequestDto
searchDto
=
new
SupplierItemRequestDto
();
searchDto
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
DISCOUNT
.
getCode
());
searchDto
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
DISCOUNT
.
getCode
());
searchDto
.
setIsDeleted
(
false
);
searchDto
.
setIsDeleted
(
false
);
...
@@ -293,7 +295,19 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -293,7 +295,19 @@ public class SupplierItemServiceImpl implements SupplierItemService {
supplierItemVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
supplierItemVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
supplierItemVoList
.
add
(
supplierItemVo
);
supplierItemVoList
.
add
(
supplierItemVo
);
});
});
return
Result
.
success
(
PageSearchResult
.
of
(
pageInfo
,
supplierItemVoList
));
if
(!
CollectionUtils
.
isEmpty
(
supplierItemList
))
{
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
);
Date
endTime
=
calendar
.
getTime
();
map
.
put
(
"endTime"
,
endTime
);
}
map
.
put
(
"dataList"
,
PageSearchResult
.
of
(
pageInfo
,
supplierItemVoList
));
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"查询首页促销商品列表失败 error : {}"
,
e
);
logger
.
error
(
"查询首页促销商品列表失败 error : {}"
,
e
);
}
}
...
...
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