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
6a15e86b
Commit
6a15e86b
authored
Jun 05, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
专场自动开始
parent
4aad7cd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
...h/wx/impl/distribution/SpecialPerformanceServiceImpl.java
+12
-3
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
View file @
6a15e86b
...
...
@@ -49,17 +49,27 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
@Override
public
Result
findInfo
(
SpecialPerformanceRequestDto
dto
)
{
try
{
SpecialPerformanceVo
specialPerformanceVo
=
new
SpecialPerformanceVo
();
SpecialPerformance
specialPerformance
=
specialPerformanceDao
.
findByType
(
dto
.
getType
());
if
(
specialPerformance
==
null
)
{
return
Result
.
success
(
specialPerformanceVo
);
}
Date
now
=
new
Date
();
if
(
now
.
after
(
specialPerformance
.
getEndTime
()))
{
SpecialPerformance
updateDto
=
new
SpecialPerformance
();
updateDto
.
setId
(
dto
.
getSpecialPerformance
Id
());
updateDto
.
setId
(
specialPerformance
.
get
Id
());
updateDto
.
setState
(
DistributionEnum
.
AuctionStateEnum
.
END
.
getCode
());
updateDto
.
setUpdateTime
(
now
);
specialPerformanceDao
.
update
(
updateDto
);
specialPerformance
.
setState
(
DistributionEnum
.
AuctionStateEnum
.
END
.
getCode
());
}
else
if
(
now
.
after
(
specialPerformance
.
getStartTime
()))
{
SpecialPerformance
updateDto
=
new
SpecialPerformance
();
updateDto
.
setId
(
specialPerformance
.
getId
());
updateDto
.
setState
(
DistributionEnum
.
AuctionStateEnum
.
IN_AUCTION
.
getCode
());
updateDto
.
setUpdateTime
(
now
);
specialPerformanceDao
.
update
(
updateDto
);
specialPerformance
.
setState
(
DistributionEnum
.
AuctionStateEnum
.
IN_AUCTION
.
getCode
());
}
int
specialPerformanceId
=
specialPerformance
.
getId
();
SpecialPerformanceConfigRequestDto
specialPerformanceConfigRequestDto
=
new
SpecialPerformanceConfigRequestDto
();
specialPerformanceConfigRequestDto
.
setPage
(
dto
.
getPage
());
...
...
@@ -67,7 +77,6 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
specialPerformanceConfigRequestDto
.
setSpecialPerformanceId
(
specialPerformanceId
);
List
<
SpecialPerformanceConfig
>
list
=
specialPerformanceConfigDao
.
findList
(
specialPerformanceConfigRequestDto
);
PageInfo
pageInfo
=
new
PageInfo
<>(
list
);
SpecialPerformanceVo
specialPerformanceVo
=
new
SpecialPerformanceVo
();
specialPerformanceVo
.
setTotalItemNum
(
pageInfo
.
getTotal
());
specialPerformanceVo
.
setSpecialPerformanceId
(
specialPerformanceId
);
specialPerformanceVo
.
setTitle
(
specialPerformance
.
getTitle
());
...
...
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