记得上下班打卡 | 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
8d5bbc69
Commit
8d5bbc69
authored
Mar 05, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_goblin' into dev_goblin
parents
9f950c25
3634694e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
47 additions
and
38 deletions
+47
-38
GoblinStoreMgtGoodsEditSkuParam.java
...ce/goblin/dto/manage/GoblinStoreMgtGoodsEditSkuParam.java
+6
-1
liquidnet-service-adam.yml
...et-bus-config/liquidnet-config/liquidnet-service-adam.yml
+4
-4
liquidnet-service-candy.yml
...t-bus-config/liquidnet-config/liquidnet-service-candy.yml
+4
-4
liquidnet-service-chime.yml
...t-bus-config/liquidnet-config/liquidnet-service-chime.yml
+4
-4
liquidnet-service-kylin.yml
...t-bus-config/liquidnet-config/liquidnet-service-kylin.yml
+4
-4
liquidnet-service-order.yml
...t-bus-config/liquidnet-config/liquidnet-service-order.yml
+4
-4
liquidnet-service-slime.yml
...t-bus-config/liquidnet-config/liquidnet-service-slime.yml
+4
-4
liquidnet-service-stone.yml
...t-bus-config/liquidnet-config/liquidnet-service-stone.yml
+4
-4
GoblinStoreMgtGoodsServiceImpl.java
...n/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
+11
-7
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+2
-2
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtGoodsEditSkuParam.java
View file @
8d5bbc69
...
@@ -106,6 +106,11 @@ public class GoblinStoreMgtGoodsEditSkuParam implements Serializable {
...
@@ -106,6 +106,11 @@ public class GoblinStoreMgtGoodsEditSkuParam implements Serializable {
public
GoblinGoodsSkuInfoVo
initEditAddGoodsSkuInfoVo
()
{
public
GoblinGoodsSkuInfoVo
initEditAddGoodsSkuInfoVo
()
{
GoblinGoodsSkuInfoVo
vo
=
GoblinGoodsSkuInfoVo
.
getNew
();
GoblinGoodsSkuInfoVo
vo
=
GoblinGoodsSkuInfoVo
.
getNew
();
List
<
GoblinGoodsSpecDto
>
skuSpecList
=
this
.
getSkuSpecList
();
vo
.
setName
(
""
);
for
(
GoblinGoodsSpecDto
goblinGoodsSpecDto
:
skuSpecList
)
{
vo
.
setName
(
vo
.
getName
().
concat
(
goblinGoodsSpecDto
.
getSpecVname
()));
}
vo
.
setSkuPic
(
this
.
getSkuPic
());
vo
.
setSkuPic
(
this
.
getSkuPic
());
vo
.
setSkuIsbn
(
this
.
getSkuIsbn
());
vo
.
setSkuIsbn
(
this
.
getSkuIsbn
());
vo
.
setStock
(
this
.
getStock
());
vo
.
setStock
(
this
.
getStock
());
...
@@ -120,7 +125,7 @@ public class GoblinStoreMgtGoodsEditSkuParam implements Serializable {
...
@@ -120,7 +125,7 @@ public class GoblinStoreMgtGoodsEditSkuParam implements Serializable {
vo
.
setStoreId
(
this
.
getStoreId
());
vo
.
setStoreId
(
this
.
getStoreId
());
vo
.
setSkuValidity
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
this
.
getSkuValidity
()));
vo
.
setSkuValidity
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
this
.
getSkuValidity
()));
vo
.
setSkuAppear
(
this
.
getSkuAppear
());
vo
.
setSkuAppear
(
this
.
getSkuAppear
());
vo
.
setSkuSpecList
(
this
.
getSkuSpecList
()
);
vo
.
setSkuSpecList
(
skuSpecList
);
return
vo
;
return
vo
;
}
}
}
}
liquidnet-bus-config/liquidnet-config/liquidnet-service-adam.yml
View file @
8d5bbc69
...
@@ -91,10 +91,10 @@ spring:
...
@@ -91,10 +91,10 @@ spring:
# -----------------------------------------------------------
# -----------------------------------------------------------
global-auth
:
global-auth
:
exclude-url-pattern
:
# 模式I(与模式II互斥)
exclude-url-pattern
:
# 模式I(与模式II互斥)
#
- ${liquidnet.info.context}/doc.html
-
${liquidnet.info.context}/doc.html
#
- ${liquidnet.info.context}/webjars/**
-
${liquidnet.info.context}/webjars/**
#
- ${liquidnet.info.context}/swagger-resources/**
-
${liquidnet.info.context}/swagger-resources/**
#
- ${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/ath/check
-
${liquidnet.info.context}/ath/check
-
${liquidnet.info.context}/login/*
-
${liquidnet.info.context}/login/*
-
${liquidnet.info.context}/ts
-
${liquidnet.info.context}/ts
...
...
liquidnet-bus-config/liquidnet-config/liquidnet-service-candy.yml
View file @
8d5bbc69
...
@@ -90,10 +90,10 @@ spring:
...
@@ -90,10 +90,10 @@ spring:
# -----------------------------------------------------------
# -----------------------------------------------------------
global-auth
:
global-auth
:
exclude-url-pattern
:
# 模式I(与模式II互斥)
exclude-url-pattern
:
# 模式I(与模式II互斥)
#
- ${liquidnet.info.context}/doc.html
-
${liquidnet.info.context}/doc.html
#
- ${liquidnet.info.context}/webjars/**
-
${liquidnet.info.context}/webjars/**
#
- ${liquidnet.info.context}/swagger-resources/**
-
${liquidnet.info.context}/swagger-resources/**
#
- ${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/candy-coupon/useBack
-
${liquidnet.info.context}/candy-coupon/useBack
-
${liquidnet.info.context}/candy-coupon/useBackJxl
-
${liquidnet.info.context}/candy-coupon/useBackJxl
oncheck-url-pattern
:
oncheck-url-pattern
:
...
...
liquidnet-bus-config/liquidnet-config/liquidnet-service-chime.yml
View file @
8d5bbc69
...
@@ -83,10 +83,10 @@ spring:
...
@@ -83,10 +83,10 @@ spring:
# -----------------------------------------------------------
# -----------------------------------------------------------
global-auth
:
global-auth
:
exclude-url-pattern
:
# 模式I(与模式II互斥)
exclude-url-pattern
:
# 模式I(与模式II互斥)
#
- ${liquidnet.info.context}/doc.html
-
${liquidnet.info.context}/doc.html
#
- ${liquidnet.info.context}/webjars/**
-
${liquidnet.info.context}/webjars/**
#
- ${liquidnet.info.context}/swagger-resources/**
-
${liquidnet.info.context}/swagger-resources/**
#
- ${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/user/register
-
${liquidnet.info.context}/user/register
-
${liquidnet.info.context}/user/userLikeOperation
-
${liquidnet.info.context}/user/userLikeOperation
-
${liquidnet.info.context}/user/userDislikeOperation
-
${liquidnet.info.context}/user/userDislikeOperation
...
...
liquidnet-bus-config/liquidnet-config/liquidnet-service-kylin.yml
View file @
8d5bbc69
...
@@ -95,10 +95,10 @@ spring:
...
@@ -95,10 +95,10 @@ spring:
# -----------------------------------------------------------
# -----------------------------------------------------------
global-auth
:
global-auth
:
exclude-url-pattern
:
exclude-url-pattern
:
#
- ${liquidnet.info.context}/doc.html
-
${liquidnet.info.context}/doc.html
#
- ${liquidnet.info.context}/webjars/**
-
${liquidnet.info.context}/webjars/**
#
- ${liquidnet.info.context}/swagger-resources/**
-
${liquidnet.info.context}/swagger-resources/**
#
- ${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/station/login
-
${liquidnet.info.context}/station/login
-
${liquidnet.info.context}/station/login/sms
-
${liquidnet.info.context}/station/login/sms
# -
# -
...
...
liquidnet-bus-config/liquidnet-config/liquidnet-service-order.yml
View file @
8d5bbc69
...
@@ -95,10 +95,10 @@ spring:
...
@@ -95,10 +95,10 @@ spring:
# -----------------------------------------------------------
# -----------------------------------------------------------
global-auth
:
global-auth
:
exclude-url-pattern
:
exclude-url-pattern
:
#
- ${liquidnet.info.context}/doc.html
-
${liquidnet.info.context}/doc.html
#
- ${liquidnet.info.context}/webjars/**
-
${liquidnet.info.context}/webjars/**
#
- ${liquidnet.info.context}/swagger-resources/**
-
${liquidnet.info.context}/swagger-resources/**
#
- ${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/order/syncOrder
-
${liquidnet.info.context}/order/syncOrder
-
${liquidnet.info.context}/order/pay/syncOrder
-
${liquidnet.info.context}/order/pay/syncOrder
-
${liquidnet.info.context}/order/pay/refundSyncOrder
-
${liquidnet.info.context}/order/pay/refundSyncOrder
...
...
liquidnet-bus-config/liquidnet-config/liquidnet-service-slime.yml
View file @
8d5bbc69
...
@@ -95,10 +95,10 @@ spring:
...
@@ -95,10 +95,10 @@ spring:
# -----------------------------------------------------------
# -----------------------------------------------------------
global-auth
:
global-auth
:
exclude-url-pattern
:
exclude-url-pattern
:
#
- ${liquidnet.info.context}/doc.html
-
${liquidnet.info.context}/doc.html
#
- ${liquidnet.info.context}/webjars/**
-
${liquidnet.info.context}/webjars/**
#
- ${liquidnet.info.context}/swagger-resources/**
-
${liquidnet.info.context}/swagger-resources/**
#
- ${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/fields/app/details
-
${liquidnet.info.context}/fields/app/details
# -----------------------------------------------------------
# -----------------------------------------------------------
...
...
liquidnet-bus-config/liquidnet-config/liquidnet-service-stone.yml
View file @
8d5bbc69
...
@@ -95,10 +95,10 @@ spring:
...
@@ -95,10 +95,10 @@ spring:
# -----------------------------------------------------------
# -----------------------------------------------------------
global-auth
:
global-auth
:
exclude-url-pattern
:
exclude-url-pattern
:
#
- ${liquidnet.info.context}/doc.html
-
${liquidnet.info.context}/doc.html
#
- ${liquidnet.info.context}/webjars/**
-
${liquidnet.info.context}/webjars/**
#
- ${liquidnet.info.context}/swagger-resources/**
-
${liquidnet.info.context}/swagger-resources/**
#
- ${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/item/**
-
${liquidnet.info.context}/item/**
-
${liquidnet.info.context}/user/inner/**
-
${liquidnet.info.context}/user/inner/**
-
${liquidnet.info.context}/user/logs/in2111
-
${liquidnet.info.context}/user/logs/in2111
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreMgtGoodsServiceImpl.java
View file @
8d5bbc69
package
com
.
liquidnet
.
service
.
goblin
.
service
.
impl
.
manage
;
package
com
.
liquidnet
.
service
.
goblin
.
service
.
impl
.
manage
;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.base.PagedResult
;
import
com.liquidnet.service.base.PagedResult
;
import
com.liquidnet.service.base.SqlMapping
;
import
com.liquidnet.service.base.SqlMapping
;
import
com.liquidnet.service.base.constant.MQConst
;
import
com.liquidnet.service.base.constant.MQConst
;
...
@@ -662,7 +663,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
...
@@ -662,7 +663,7 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
addSkuInfoVo
.
setSkuId
(
skuId
);
addSkuInfoVo
.
setSkuId
(
skuId
);
addSkuInfoVo
.
setSpuId
(
spuId
);
addSkuInfoVo
.
setSpuId
(
spuId
);
addSkuInfoVo
.
setSkuNo
(
goodsInfoVo
.
getSpuNo
());
addSkuInfoVo
.
setSkuNo
(
goodsInfoVo
.
getSpuNo
());
addSkuInfoVo
.
setName
(
goodsInfoVo
.
getName
());
//
addSkuInfoVo.setName(goodsInfoVo.getName());
addSkuInfoVo
.
setSubtitle
(
goodsInfoVo
.
getSubtitle
());
addSkuInfoVo
.
setSubtitle
(
goodsInfoVo
.
getSubtitle
());
addSkuInfoVo
.
setVirtualFlg
(
goodsInfoVo
.
getVirtualFlg
());
addSkuInfoVo
.
setVirtualFlg
(
goodsInfoVo
.
getVirtualFlg
());
addSkuInfoVo
.
setStatus
(
"3"
);
addSkuInfoVo
.
setStatus
(
"3"
);
...
@@ -756,18 +757,18 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
...
@@ -756,18 +757,18 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
for
(
List
<
GoblinGoodsSpecDto
>
goblinGoodsSpecDtos
:
remainSkuSpecDtoList
)
{
for
(
List
<
GoblinGoodsSpecDto
>
goblinGoodsSpecDtos
:
remainSkuSpecDtoList
)
{
for
(
GoblinGoodsSpecDto
goblinGoodsSpecDto
:
goblinGoodsSpecDtos
)
{
for
(
GoblinGoodsSpecDto
goblinGoodsSpecDto
:
goblinGoodsSpecDtos
)
{
String
specName
=
goblinGoodsSpecDto
.
getSpecName
(),
specVname
=
goblinGoodsSpecDto
.
getSpecVname
();
String
specName
=
goblinGoodsSpecDto
.
getSpecName
(),
specVname
=
goblinGoodsSpecDto
.
getSpecVname
();
Set
<
String
>
s
pecVnameSet
=
remainSkuSpecMap
.
get
(
specName
);
Set
<
String
>
remainSkuS
pecVnameSet
=
remainSkuSpecMap
.
get
(
specName
);
if
(
CollectionUtils
.
isEmpty
(
s
pecVnameSet
))
{
if
(
CollectionUtils
.
isEmpty
(
remainSkuS
pecVnameSet
))
{
s
pecVnameSet
=
CollectionUtil
.
getStringArraySet
();
remainSkuS
pecVnameSet
=
CollectionUtil
.
getStringArraySet
();
}
}
s
pecVnameSet
.
add
(
specVname
);
remainSkuS
pecVnameSet
.
add
(
specVname
);
remainSkuSpecMap
.
put
(
specName
,
s
pecVnameSet
);
remainSkuSpecMap
.
put
(
specName
,
remainSkuS
pecVnameSet
);
}
}
}
}
List
<
GoblinGoodsSpecVo
>
specVoList
=
mgtGoodsInfoVo
.
getSpecVoList
();
Map
<
String
,
String
>
delGoodsSkuSpecMap
=
goodsSkuInfoVo
.
getSkuSpecList
().
stream
()
Map
<
String
,
String
>
delGoodsSkuSpecMap
=
goodsSkuInfoVo
.
getSkuSpecList
().
stream
()
.
collect
(
Collectors
.
toMap
(
GoblinGoodsSpecDto:
:
getSpecName
,
GoblinGoodsSpecDto:
:
getSpecVname
));
.
collect
(
Collectors
.
toMap
(
GoblinGoodsSpecDto:
:
getSpecName
,
GoblinGoodsSpecDto:
:
getSpecVname
));
List
<
GoblinGoodsSpecVo
>
specVoList
=
mgtGoodsInfoVo
.
getSpecVoList
();
LinkedList
<
Object
[]>
updateGoodsSpuSpecObjs
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
updateGoodsSpuSpecObjs
=
CollectionUtil
.
linkedListObjectArr
();
for
(
int
i
=
0
;
i
<
specVoList
.
size
();
i
++)
{
// 处理商品规格信息
for
(
int
i
=
0
;
i
<
specVoList
.
size
();
i
++)
{
// 处理商品规格信息
GoblinGoodsSpecVo
specVo
=
specVoList
.
get
(
i
);
// 商品指定规格
GoblinGoodsSpecVo
specVo
=
specVoList
.
get
(
i
);
// 商品指定规格
...
@@ -811,6 +812,9 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
...
@@ -811,6 +812,9 @@ public class GoblinStoreMgtGoodsServiceImpl implements IGoblinstoreMgtGoodsServi
List
<
String
>
delSkuIdList
=
goblinRedisUtils
.
getSkuRe
(
delSkuId
);
List
<
String
>
delSkuIdList
=
goblinRedisUtils
.
getSkuRe
(
delSkuId
);
delSkuIdList
=
null
==
delSkuIdList
?
CollectionUtil
.
arrayListString
()
:
delSkuIdList
;
delSkuIdList
=
null
==
delSkuIdList
?
CollectionUtil
.
arrayListString
()
:
delSkuIdList
;
delSkuIdList
.
add
(
delSkuId
);
delSkuIdList
.
add
(
delSkuId
);
if
(
log
.
isDebugEnabled
())
{
log
.
debug
(
"商品管理:商品编辑:SKU删除[delSkuId={},skuReId={}]"
,
delSkuId
,
JsonUtils
.
toJson
(
delSkuIdList
));
}
if
(
goblinMongoUtils
.
delGoodsSkuInfoVo
(
goodsSkuInfoVo
,
delSkuIdList
))
{
if
(
goblinMongoUtils
.
delGoodsSkuInfoVo
(
goodsSkuInfoVo
,
delSkuIdList
))
{
delSkuIdList
.
forEach
(
skuId
->
{
delSkuIdList
.
forEach
(
skuId
->
{
goblinRedisUtils
.
delGoodsSkuInfoVo
(
skuId
);
goblinRedisUtils
.
delGoodsSkuInfoVo
(
skuId
);
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
8d5bbc69
...
@@ -328,7 +328,7 @@ public class GoblinMongoUtils {
...
@@ -328,7 +328,7 @@ public class GoblinMongoUtils {
public
boolean
delGoodsInfoVoBySpuIds
(
String
storeId
,
List
<
String
>
spuIdList
,
String
uid
,
LocalDateTime
time
)
{
public
boolean
delGoodsInfoVoBySpuIds
(
String
storeId
,
List
<
String
>
spuIdList
,
String
uid
,
LocalDateTime
time
)
{
return
mongoTemplate
.
updateMulti
(
return
mongoTemplate
.
updateMulti
(
Query
.
query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
).
and
(
"spuId"
).
in
(
spuIdList
.
toArray
()
).
and
(
"delFlg"
).
is
(
"0"
)),
Query
.
query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
).
and
(
"spuId"
).
in
(
spuIdList
).
and
(
"delFlg"
).
is
(
"0"
)),
Update
.
update
(
"delFlg"
,
"1"
).
set
(
"updatedBy"
,
uid
).
set
(
"updatedAt"
,
time
).
set
(
"deletedBy"
,
uid
).
set
(
"deletedAt"
,
time
),
Update
.
update
(
"delFlg"
,
"1"
).
set
(
"updatedBy"
,
uid
).
set
(
"updatedAt"
,
time
).
set
(
"deletedBy"
,
uid
).
set
(
"deletedAt"
,
time
),
GoblinGoodsInfoVo
.
class
.
getSimpleName
()
GoblinGoodsInfoVo
.
class
.
getSimpleName
()
).
getModifiedCount
()
>
0
;
).
getModifiedCount
()
>
0
;
...
@@ -525,7 +525,7 @@ public class GoblinMongoUtils {
...
@@ -525,7 +525,7 @@ public class GoblinMongoUtils {
}
}
public
boolean
delGoodsSkuInfoVo
(
GoblinGoodsSkuInfoVo
vo
,
List
<
String
>
skuIdList
)
{
public
boolean
delGoodsSkuInfoVo
(
GoblinGoodsSkuInfoVo
vo
,
List
<
String
>
skuIdList
)
{
return
mongoTemplate
.
getCollection
(
GoblinGoodsSkuInfoVo
.
class
.
getSimpleName
()).
update
One
(
return
mongoTemplate
.
getCollection
(
GoblinGoodsSkuInfoVo
.
class
.
getSimpleName
()).
update
Many
(
Query
.
query
(
Criteria
.
where
(
"skuId"
).
in
(
skuIdList
).
and
(
"delFlg"
).
is
(
"0"
)).
getQueryObject
(),
Query
.
query
(
Criteria
.
where
(
"skuId"
).
in
(
skuIdList
).
and
(
"delFlg"
).
is
(
"0"
)).
getQueryObject
(),
Update
.
update
(
"delFlg"
,
"1"
).
set
(
"updatedBy"
,
vo
.
getUpdatedBy
()).
set
(
"updatedAt"
,
vo
.
getUpdatedAt
())
Update
.
update
(
"delFlg"
,
"1"
).
set
(
"updatedBy"
,
vo
.
getUpdatedBy
()).
set
(
"updatedAt"
,
vo
.
getUpdatedAt
())
.
set
(
"deletedBy"
,
vo
.
getDeletedBy
()).
set
(
"deletedAt"
,
vo
.
getDeletedAt
()).
getUpdateObject
()
.
set
(
"deletedBy"
,
vo
.
getDeletedBy
()).
set
(
"deletedAt"
,
vo
.
getDeletedAt
()).
getUpdateObject
()
...
...
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