记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
eabdb68e
Commit
eabdb68e
authored
Dec 28, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交部分代码
parent
def8141a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
GoblinSelfZhengzaiController.java
...troller/zhengzai/goblin/GoblinSelfZhengzaiController.java
+16
-3
GoblinZhengzaiMarketServiceImpl.java
...i/goblin/service/imp/GoblinZhengzaiMarketServiceImpl.java
+1
-1
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/goblin/GoblinS
torePurchasing
Controller.java
→
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/goblin/GoblinS
elfZhengzai
Controller.java
View file @
eabdb68e
...
...
@@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
import
java.time.LocalDateTime
;
import
java.util.List
;
/**
...
...
@@ -22,7 +23,7 @@ import java.util.List;
@RestController
@Api
(
tags
=
"活动-正在下单"
)
@RequestMapping
(
"goblin/marketing"
)
public
class
GoblinS
torePurchasing
Controller
extends
BaseController
{
public
class
GoblinS
elfZhengzai
Controller
extends
BaseController
{
@Autowired
IGoblinZhengzaiMarketService
goblinZhengzaiMarketService
;
...
...
@@ -44,8 +45,20 @@ public class GoblinStorePurchasingController extends BaseController {
@RequestParam
(
value
=
"startTime"
,
required
=
false
)
String
st
,
@RequestParam
(
value
=
"endTime"
,
required
=
false
)
String
et
,
@RequestParam
(
value
=
"createdAt"
,
required
=
false
)
String
ct
)
{
startPage
();
LocalDateTime
now
=
LocalDateTime
.
now
();
List
<
GoblinSelfMarketing
>
list
=
goblinZhengzaiMarketService
.
zhengzaiList
(
page
,
purchaseName
,
status
,
st
,
et
,
ct
).
getData
();
startPage
();
for
(
GoblinSelfMarketing
item
:
list
)
{
if
(
item
.
getStatus
()
!=
7
)
{
if
(
now
.
isBefore
(
item
.
getStartTime
()))
{
item
.
setStatus
(
0
);
}
else
if
(
now
.
isAfter
(
item
.
getEndTime
()))
{
item
.
setStatus
(
2
);
}
else
{
item
.
setStatus
(
1
);
}
}
}
return
getDataTable
(
list
);
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/imp/GoblinZhengzaiMarketServiceImpl.java
View file @
eabdb68e
...
...
@@ -38,7 +38,7 @@ public class GoblinZhengzaiMarketServiceImpl implements IGoblinZhengzaiMarketSer
@Override
public
ResponseDto
<
List
<
GoblinSelfMarketing
>>
zhengzaiList
(
int
page
,
String
purchaseName
,
int
status
,
String
st
,
String
et
,
String
ct
)
{
LambdaUpdateWrapper
<
GoblinSelfMarketing
>
queryMapper
=
Wrappers
.
lambdaUpdate
(
GoblinSelfMarketing
.
getNew
());
LambdaUpdateWrapper
<
GoblinSelfMarketing
>
queryMapper
=
Wrappers
.
lambdaUpdate
(
GoblinSelfMarketing
.
getNew
())
.
eq
(
GoblinSelfMarketing:
:
getDelFlag
,
0
)
;
switch
(
status
)
{
case
0
:
//未开始
queryMapper
.
lt
(
GoblinSelfMarketing:
:
getStartTime
,
DateUtil
.
getNowTime
());
...
...
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