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
162244fe
Commit
162244fe
authored
Oct 11, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
98fd5272
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
CartRedisServiceImpl.java
...ava/com/egolm/shop/service/impl/CartRedisServiceImpl.java
+6
-3
No files found.
src/main/java/com/egolm/shop/service/impl/CartRedisServiceImpl.java
View file @
162244fe
...
@@ -130,12 +130,17 @@ public class CartRedisServiceImpl implements CartRedisService {
...
@@ -130,12 +130,17 @@ public class CartRedisServiceImpl implements CartRedisService {
Set
<
String
>
chooseGifts
=
new
HashSet
<
String
>();
Set
<
String
>
chooseGifts
=
new
HashSet
<
String
>();
Set
<
String
>
promosNo
=
new
HashSet
<
String
>();
Set
<
String
>
promosNo
=
new
HashSet
<
String
>();
boolean
isOrnament
=
false
;
boolean
isOrnament
=
false
;
boolean
isInvalid
=
false
;
if
(
datas
!=
null
&&
datas
.
size
()
>
0
)
{
if
(
datas
!=
null
&&
datas
.
size
()
>
0
)
{
for
(
Map
<
String
,
Object
>
data
:
datas
)
{
for
(
Map
<
String
,
Object
>
data
:
datas
)
{
String
sGoodsTag
=
(
String
)
data
.
get
(
"sGoodsTag"
);
String
sGoodsTag
=
(
String
)
data
.
get
(
"sGoodsTag"
);
if
(
sGoodsTag
!=
null
&&
sGoodsTag
.
contains
(
"门店装饰"
))
{
if
(
sGoodsTag
!=
null
&&
sGoodsTag
.
contains
(
"门店装饰"
))
{
isOrnament
=
true
;
isOrnament
=
true
;
}
}
Integer
invalid
=
(
Integer
)(
Integer
)
data
.
get
(
"isInvalid"
);
if
(
invalid
==
1
)
{
isInvalid
=
true
;
}
Integer
nTag_CG
=
(
Integer
)
data
.
get
(
"nTag_CG"
);
Integer
nTag_CG
=
(
Integer
)
data
.
get
(
"nTag_CG"
);
if
(
nTag_CG
!=
null
&&
(
nTag_CG
&
16
)
==
16
)
{
if
(
nTag_CG
!=
null
&&
(
nTag_CG
&
16
)
==
16
)
{
data
.
put
(
"published"
,
1
);
data
.
put
(
"published"
,
1
);
...
@@ -194,6 +199,7 @@ public class CartRedisServiceImpl implements CartRedisService {
...
@@ -194,6 +199,7 @@ public class CartRedisServiceImpl implements CartRedisService {
this
.
processPromoGoods
(
promos
,
shopNo
);
this
.
processPromoGoods
(
promos
,
shopNo
);
rjx
.
set
(
"promoData"
,
Util
.
listToMM
(
promos
,
"promoNo"
));
rjx
.
set
(
"promoData"
,
Util
.
listToMM
(
promos
,
"promoNo"
));
rjx
.
set
(
"isOrnament"
,
isOrnament
);
rjx
.
set
(
"isOrnament"
,
isOrnament
);
rjx
.
set
(
"isInvalid"
,
isInvalid
);
this
.
processPayAmount
(
rjx
);
this
.
processPayAmount
(
rjx
);
this
.
cacheData
(
orgNo
,
shopNo
,
terminal
,
rjx
);
this
.
cacheData
(
orgNo
,
shopNo
,
terminal
,
rjx
);
return
rjx
;
return
rjx
;
...
@@ -671,7 +677,6 @@ public class CartRedisServiceImpl implements CartRedisService {
...
@@ -671,7 +677,6 @@ public class CartRedisServiceImpl implements CartRedisService {
product
.
put
(
"warehouseNo"
,
pm
.
get
(
"sWarehouseNO"
));
product
.
put
(
"warehouseNo"
,
pm
.
get
(
"sWarehouseNO"
));
}
else
{
}
else
{
logger
.
error
(
"商品资料不完整"
+
contractNo
+
"$"
+
goodsId
);
logger
.
error
(
"商品资料不完整"
+
contractNo
+
"$"
+
goodsId
);
throw
new
XException
(
"商品已失效"
,
501
);
}
}
}
}
for
(
Map
<
String
,
Object
>
product
:
giftList
)
{
for
(
Map
<
String
,
Object
>
product
:
giftList
)
{
...
@@ -689,7 +694,6 @@ public class CartRedisServiceImpl implements CartRedisService {
...
@@ -689,7 +694,6 @@ public class CartRedisServiceImpl implements CartRedisService {
product
.
put
(
"nTag"
,
pm
.
get
(
"nTag"
));
product
.
put
(
"nTag"
,
pm
.
get
(
"nTag"
));
}
else
{
}
else
{
logger
.
error
(
"商品资料不完整"
+
contractNo
+
"$"
+
goodsId
);
logger
.
error
(
"商品资料不完整"
+
contractNo
+
"$"
+
goodsId
);
throw
new
XException
(
"商品已失效"
,
501
);
}
}
}
}
for
(
Map
<
String
,
Object
>
groupInfo
:
groupList
)
{
for
(
Map
<
String
,
Object
>
groupInfo
:
groupList
)
{
...
@@ -708,7 +712,6 @@ public class CartRedisServiceImpl implements CartRedisService {
...
@@ -708,7 +712,6 @@ public class CartRedisServiceImpl implements CartRedisService {
product
.
put
(
"warehouseNo"
,
pm
.
get
(
"sWarehouseNO"
));
product
.
put
(
"warehouseNo"
,
pm
.
get
(
"sWarehouseNO"
));
}
else
{
}
else
{
logger
.
error
(
"商品资料不完整"
+
contractNo
+
"$"
+
goodsId
);
logger
.
error
(
"商品资料不完整"
+
contractNo
+
"$"
+
goodsId
);
throw
new
XException
(
"商品已失效"
,
501
);
}
}
}
}
}
}
...
...
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