Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
Details
Activity
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
曲欣亮
shop
Commits
df0288d9
Commit
df0288d9
authored
Sep 29, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
55c6830a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
PromoController.java
src/main/java/com/egolm/shop/controller/PromoController.java
+11
-0
No files found.
src/main/java/com/egolm/shop/controller/PromoController.java
View file @
df0288d9
...
...
@@ -60,14 +60,24 @@ public class PromoController {
@GetMapping
(
"getGroupGoodsDetail"
)
public
Object
getGroupGoodsDetail
(
String
orgNo
,
String
shopNo
,
String
promoPaperNO
,
String
promoGroupNO
)
{
Integer
status
=
0
;
String
statusDesc
=
"正常活动"
;
Date
now
=
new
Date
();
Map
<
String
,
Object
>
promoMap
=
service
.
getPromoDetail
(
promoPaperNO
);
Date
dPromoBeginDate
=
(
Date
)
promoMap
.
get
(
"dPromoBeginDate"
);
Date
dPromoEndDate
=
(
Date
)
promoMap
.
get
(
"dPromoEndDate"
);
Integer
nTag
=
((
Number
)
promoMap
.
get
(
"nTag"
)).
intValue
();
if
(
now
.
compareTo
(
dPromoBeginDate
)
<
0
)
{
status
=
1
;
statusDesc
=
"活动未开始"
;
}
else
if
(
now
.
compareTo
(
dPromoEndDate
)
>
0
)
{
status
=
2
;
statusDesc
=
"活动已结束"
;
}
else
if
((
nTag
&
2
)
!=
2
)
{
status
=
3
;
statusDesc
=
"活动未审核"
;
}
else
if
((
nTag
&
1
)
==
1
)
{
status
=
4
;
statusDesc
=
"活动已删除"
;
}
List
<
Map
<
String
,
Object
>>
list
=
service
.
getGroupGoodsDetail
(
orgNo
,
shopNo
,
promoPaperNO
,
promoGroupNO
);
BigDecimal
nTotalRealAmount
=
BigDecimal
.
ZERO
;
...
...
@@ -85,6 +95,7 @@ public class PromoController {
promoMap
.
put
(
"nTotalPayAmount"
,
nTotalPayAmount
);
promoMap
.
put
(
"nTotalQty"
,
nTotalQty
);
promoMap
.
put
(
"status"
,
status
);
promoMap
.
put
(
"statusDesc"
,
statusDesc
);
promoMap
.
put
(
"sPromoGrouoNO"
,
promoGroupNO
);
List
<
Map
<
String
,
Object
>>
DLPicList
=
service
.
getGroupPicList
(
"DL"
,
promoPaperNO
,
promoGroupNO
);
List
<
Map
<
String
,
Object
>>
BNPicList
=
service
.
getGroupPicList
(
"BN"
,
promoPaperNO
,
promoGroupNO
);
...
...
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