记得上下班打卡 | 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
e435dbae
Commit
e435dbae
authored
Dec 30, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
13171a6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
GoblinStoreMarketPurchaseRelationVo.java
...ce/goblin/dto/vo/GoblinStoreMarketPurchaseRelationVo.java
+28
-0
GoblinStorePurchasingServiceImpl.java
...service/impl/manage/GoblinStorePurchasingServiceImpl.java
+4
-1
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinStoreMarketPurchaseRelationVo.java
0 → 100644
View file @
e435dbae
package
com
.
liquidnet
.
service
.
goblin
.
dto
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
@ApiModel
(
value
=
"GoblinStoreMarketPurchaseRelationVo"
,
description
=
"商铺活动-限时秒杀配置-商品下的款式"
)
@Data
public
class
GoblinStoreMarketPurchaseRelationVo
implements
Serializable
,
Cloneable
{
private
static
final
long
serialVersionUID
=
2353354057235207502L
;
@ApiModelProperty
(
position
=
11
,
value
=
"spuId"
)
private
String
spuId
;
@ApiModelProperty
(
position
=
12
,
value
=
"skuId 几盒"
)
private
List
<
String
>
skuList
;
private
static
final
GoblinStoreMarketPurchaseRelationVo
obj
=
new
GoblinStoreMarketPurchaseRelationVo
();
public
static
GoblinStoreMarketPurchaseRelationVo
getNew
()
{
try
{
return
(
GoblinStoreMarketPurchaseRelationVo
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GoblinStoreMarketPurchaseRelationVo
();
}
}
}
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStorePurchasingServiceImpl.java
View file @
e435dbae
...
@@ -176,12 +176,12 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS
...
@@ -176,12 +176,12 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS
GoblinMarketRelationVo
relationVo
=
GoblinMarketRelationVo
.
getNew
();
GoblinMarketRelationVo
relationVo
=
GoblinMarketRelationVo
.
getNew
();
relationVo
.
setSpuId
(
params
.
getSpuId
());
relationVo
.
setSpuId
(
params
.
getSpuId
());
List
<
String
>
skuList
=
CollectionUtil
.
arrayListString
();
List
<
String
>
skuList
=
CollectionUtil
.
arrayListString
();
List
<
String
>
marketSkuList
=
CollectionUtil
.
arrayListString
();
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
sqls
.
add
(
SqlMapping
.
get
(
"goblin.store.market.insertRelation"
));
sqls
.
add
(
SqlMapping
.
get
(
"goblin.store.market.insertRelation"
));
LinkedList
<
Object
[]>
sqlsData
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlsData
=
CollectionUtil
.
linkedListObjectArr
();
for
(
GoblinStorePurchaseItemParam
item
:
params
.
getGoblinStorePurchaseItemParam
())
{
for
(
GoblinStorePurchaseItemParam
item
:
params
.
getGoblinStorePurchaseItemParam
())
{
String
purchaseId
=
IDGenerator
.
nextMilliId2
();
String
purchaseId
=
IDGenerator
.
nextMilliId2
();
skuList
.
add
(
item
.
getSkuId
());
GoblinStoreMarketPurchasing
bean
=
GoblinStoreMarketPurchasing
.
getNew
();
GoblinStoreMarketPurchasing
bean
=
GoblinStoreMarketPurchasing
.
getNew
();
bean
.
setStoreId
(
params
.
getStoreId
());
bean
.
setStoreId
(
params
.
getStoreId
());
bean
.
setStoreMarketId
(
params
.
getStoreMarketId
());
bean
.
setStoreMarketId
(
params
.
getStoreMarketId
());
...
@@ -211,10 +211,13 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS
...
@@ -211,10 +211,13 @@ public class GoblinStorePurchasingServiceImpl implements IGoblinStorePurchasingS
//mysql
//mysql
sqlsData
.
add
(
new
Object
[]{
purchaseId
,
bean
.
getStoreMarketId
(),
bean
.
getSpuId
(),
bean
.
getSpuId
(),
bean
.
getStoreId
(),
bean
.
getPriceMarketing
(),
sqlsData
.
add
(
new
Object
[]{
purchaseId
,
bean
.
getStoreMarketId
(),
bean
.
getSpuId
(),
bean
.
getSpuId
(),
bean
.
getStoreId
(),
bean
.
getPriceMarketing
(),
bean
.
getStockMarketing
(),
bean
.
getBuyFactor
(),
bean
.
getBuyRoster
(),
bean
.
getBuyLimit
(),
bean
.
getDelFlag
(),
bean
.
getCreatedAt
()});
bean
.
getStockMarketing
(),
bean
.
getBuyFactor
(),
bean
.
getBuyRoster
(),
bean
.
getBuyLimit
(),
bean
.
getDelFlag
(),
bean
.
getCreatedAt
()});
marketSkuList
.
add
(
skuVo
.
getSkuId
());
skuList
.
add
(
item
.
getSkuId
());
}
}
//mongo
//mongo
GoblinGoodsInfoVo
spuVo
=
goblinRedisUtils
.
getGoodsInfoVo
(
params
.
getSpuId
());
GoblinGoodsInfoVo
spuVo
=
goblinRedisUtils
.
getGoodsInfoVo
(
params
.
getSpuId
());
spuVo
.
setSpuId
(
marketSpuId
);
spuVo
.
setSpuId
(
marketSpuId
);
spuVo
.
setSkuIdList
(
marketSkuList
);
spuVo
.
setMarketId
(
GoblinStatusConst
.
MarketPreStatus
.
MARKET_PRE_PURCHASE
.
getValue
().
concat
(
params
.
getStoreMarketId
()));
spuVo
.
setMarketId
(
GoblinStatusConst
.
MarketPreStatus
.
MARKET_PRE_PURCHASE
.
getValue
().
concat
(
params
.
getStoreMarketId
()));
goblinMongoUtils
.
setGoodsInfoVo
(
spuVo
);
goblinMongoUtils
.
setGoodsInfoVo
(
spuVo
);
//redis
//redis
...
...
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