记得上下班打卡 | 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
ddf6a58b
Commit
ddf6a58b
authored
Jan 07, 2023
by
zhanggb
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_erp_gjy' into dev_erp_gjy
parents
d593f722
9d0f56e4
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
45 additions
and
33 deletions
+45
-33
GoblinStoreMgtDigitalGoodsAddParam.java
...goblin/dto/manage/GoblinStoreMgtDigitalGoodsAddParam.java
+2
-2
GoblinStoreMgtDigitalGoodsAddSkuParam.java
...lin/dto/manage/GoblinStoreMgtDigitalGoodsAddSkuParam.java
+2
-2
GoblinStoreMgtGoodsAddParam.java
...ervice/goblin/dto/manage/GoblinStoreMgtGoodsAddParam.java
+2
-2
GoblinStoreMgtGoodsAddSkuParam.java
...ice/goblin/dto/manage/GoblinStoreMgtGoodsAddSkuParam.java
+2
-2
GoblinStoreMgtGoodsEditSkuParam.java
...ce/goblin/dto/manage/GoblinStoreMgtGoodsEditSkuParam.java
+2
-2
GoblinGoodsInfoVo.java
...om/liquidnet/service/goblin/dto/vo/GoblinGoodsInfoVo.java
+1
-1
GoblinGoodsSkuInfoVo.java
...liquidnet/service/goblin/dto/vo/GoblinGoodsSkuInfoVo.java
+1
-1
GoblinGoods.java
...java/com/liquidnet/service/goblin/entity/GoblinGoods.java
+1
-1
GoblinGoodsSku.java
...a/com/liquidnet/service/goblin/entity/GoblinGoodsSku.java
+1
-1
GoblinNftOrder.java
...a/com/liquidnet/service/goblin/entity/GoblinNftOrder.java
+2
-2
GoblinOrderSku.java
...a/com/liquidnet/service/goblin/entity/GoblinOrderSku.java
+2
-2
db_ln_goblin_initialdata.sql
...net-service-goblin-impl/docu/db_ln_goblin_initialdata.sql
+5
-5
WdtServiceImpl.java
...idnet/service/goblin/service/impl/erp/WdtServiceImpl.java
+9
-8
GoblinStoreOrderServiceImpl.java
...blin/service/impl/manage/GoblinStoreOrderServiceImpl.java
+12
-1
GoblinOrderUtils.java
...a/com/liquidnet/service/order/utils/GoblinOrderUtils.java
+1
-1
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtDigitalGoodsAddParam.java
View file @
ddf6a58b
...
...
@@ -68,8 +68,8 @@ public class GoblinStoreMgtDigitalGoodsAddParam implements Serializable {
@ApiModelProperty
(
position
=
26
,
required
=
true
,
value
=
"ERP类型[WANGDIAN-旺店通]"
)
@Pattern
(
regexp
=
"\\b(WANGDIAN)\\b"
,
message
=
"ERP类型无效"
)
private
String
erpType
;
@ApiModelProperty
(
position
=
26
,
required
=
false
,
value
=
"ERP
商品编码
[藏品品对应在ERP的商品编码,默认为空]"
)
@Size
(
max
=
40
,
message
=
"ERP
商品编码
长度限制40"
)
@ApiModelProperty
(
position
=
26
,
required
=
false
,
value
=
"ERP
货品编号
[藏品品对应在ERP的商品编码,默认为空]"
)
@Size
(
max
=
40
,
message
=
"ERP
货品编号
长度限制40"
)
private
String
spuErpCode
;
/**
...
...
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtDigitalGoodsAddSkuParam.java
View file @
ddf6a58b
...
...
@@ -113,8 +113,8 @@ public class GoblinStoreMgtDigitalGoodsAddSkuParam implements Serializable {
@Size
(
max
=
10000
,
message
=
"藏品详情内容过长"
)
private
String
details
;
@ApiModelProperty
(
position
=
30
,
required
=
false
,
value
=
"ERP
规格
编码"
)
@Size
(
max
=
40
,
message
=
"ERP
规格
编码长度限制40"
)
@ApiModelProperty
(
position
=
30
,
required
=
false
,
value
=
"ERP
商家
编码"
)
@Size
(
max
=
40
,
message
=
"ERP
商家
编码长度限制40"
)
private
String
skuErpCode
;
@ApiModelProperty
(
position
=
30
,
value
=
"ERP托管[0-否|1-是],默认0"
)
@Pattern
(
regexp
=
"\\b(0|1)\\b"
,
message
=
"ERP托管参数无效"
)
...
...
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtGoodsAddParam.java
View file @
ddf6a58b
...
...
@@ -99,8 +99,8 @@ public class GoblinStoreMgtGoodsAddParam implements Serializable {
@ApiModelProperty
(
position
=
26
,
required
=
true
,
value
=
"ERP类型[WANGDIAN-旺店通]"
)
@Pattern
(
regexp
=
"\\b(WANGDIAN)\\b"
,
message
=
"ERP类型无效"
)
private
String
erpType
;
@ApiModelProperty
(
position
=
26
,
required
=
false
,
value
=
"ERP
商品编码
[商品对应在ERP的商品编码,默认为空]"
)
@Size
(
max
=
40
,
message
=
"ERP
商品编码
长度限制40"
)
@ApiModelProperty
(
position
=
26
,
required
=
false
,
value
=
"ERP
货品编号
[商品对应在ERP的商品编码,默认为空]"
)
@Size
(
max
=
40
,
message
=
"ERP
货品编号
长度限制40"
)
private
String
spuErpCode
;
/**
...
...
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtGoodsAddSkuParam.java
View file @
ddf6a58b
...
...
@@ -24,8 +24,8 @@ public class GoblinStoreMgtGoodsAddSkuParam implements Serializable {
@ApiModelProperty
(
position
=
10
,
required
=
false
,
value
=
"单品条码"
)
@Pattern
(
regexp
=
LnsRegex
.
Valid
.
ALPHABET_NUMBER_32
,
message
=
"单品条码格式或长度有误"
)
private
String
skuBarCode
;
@ApiModelProperty
(
position
=
10
,
required
=
false
,
value
=
"ERP
规格
编码"
)
@Size
(
max
=
40
,
message
=
"ERP
规格
编码长度限制40"
)
@ApiModelProperty
(
position
=
10
,
required
=
false
,
value
=
"ERP
商家
编码"
)
@Size
(
max
=
40
,
message
=
"ERP
商家
编码长度限制40"
)
private
String
skuErpCode
;
@ApiModelProperty
(
position
=
10
,
value
=
"ERP托管[0-否|1-是],默认0"
)
@Pattern
(
regexp
=
"\\b(0|1)\\b"
,
message
=
"ERP托管参数无效"
)
...
...
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtGoodsEditSkuParam.java
View file @
ddf6a58b
...
...
@@ -34,8 +34,8 @@ public class GoblinStoreMgtGoodsEditSkuParam implements Serializable {
@ApiModelProperty
(
position
=
12
,
required
=
false
,
value
=
"单品条码"
)
@Pattern
(
regexp
=
LnsRegex
.
Valid
.
ALPHABET_NUMBER_32
,
message
=
"单品条码格式或长度有误"
)
private
String
skuBarCode
;
@ApiModelProperty
(
position
=
12
,
required
=
false
,
value
=
"ERP
规格
编码"
)
@Size
(
max
=
40
,
message
=
"ERP
规格
编码长度限制40"
)
@ApiModelProperty
(
position
=
12
,
required
=
false
,
value
=
"ERP
商家
编码"
)
@Size
(
max
=
40
,
message
=
"ERP
商家
编码长度限制40"
)
private
String
skuErpCode
;
@ApiModelProperty
(
position
=
12
,
value
=
"ERP托管[0-否|1-是],默认0"
)
@Pattern
(
regexp
=
"\\b(0|1)\\b"
,
message
=
"ERP托管参数无效"
)
...
...
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinGoodsInfoVo.java
View file @
ddf6a58b
...
...
@@ -26,7 +26,7 @@ public class GoblinGoodsInfoVo implements Serializable, Cloneable {
private
String
spuNo
;
@ApiModelProperty
(
position
=
12
,
value
=
"商品条码[32]"
)
private
String
spuBarCode
;
@ApiModelProperty
(
position
=
12
,
value
=
"ERP
商品编码
[64]"
)
@ApiModelProperty
(
position
=
12
,
value
=
"ERP
货品编号
[64]"
)
private
String
spuErpCode
;
@ApiModelProperty
(
position
=
12
,
value
=
"ERP类型[WANGDIAN-旺店通]"
)
private
String
erpType
;
...
...
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinGoodsSkuInfoVo.java
View file @
ddf6a58b
...
...
@@ -27,7 +27,7 @@ public class GoblinGoodsSkuInfoVo implements Serializable, Cloneable {
private
String
skuNo
;
@ApiModelProperty
(
position
=
12
,
value
=
"单品条码[32]"
)
private
String
skuBarCode
;
@ApiModelProperty
(
position
=
12
,
value
=
"
ERP规格
编码[64]"
)
@ApiModelProperty
(
position
=
12
,
value
=
"
商家
编码[64]"
)
private
String
skuErpCode
;
@ApiModelProperty
(
position
=
12
,
value
=
"ERP类型[WANGDIAN-旺店通]"
)
private
String
erpType
;
...
...
liquidnet-bus-do/liquidnet-service-goblin-do/src/main/java/com/liquidnet/service/goblin/entity/GoblinGoods.java
View file @
ddf6a58b
...
...
@@ -41,7 +41,7 @@ public class GoblinGoods implements Serializable {
private
String
spuBarCode
;
/**
* ERP
商品编码
* ERP
货品编号
*/
private
String
spuErpCode
;
...
...
liquidnet-bus-do/liquidnet-service-goblin-do/src/main/java/com/liquidnet/service/goblin/entity/GoblinGoodsSku.java
View file @
ddf6a58b
...
...
@@ -38,7 +38,7 @@ public class GoblinGoodsSku implements Serializable {
private
String
skuBarCode
;
/**
* ERP
规格
编码
* ERP
商家
编码
*/
private
String
skuErpCode
;
...
...
liquidnet-bus-do/liquidnet-service-goblin-do/src/main/java/com/liquidnet/service/goblin/entity/GoblinNftOrder.java
View file @
ddf6a58b
...
...
@@ -226,12 +226,12 @@ public class GoblinNftOrder implements Serializable, Cloneable {
private
LocalDateTime
updatedAt
;
/**
* ERP
商品编码
* ERP
货品编号
*/
private
String
spuErpCode
;
/**
* ERP
规格
编码
* ERP
商家
编码
*/
private
String
skuErpCode
;
...
...
liquidnet-bus-do/liquidnet-service-goblin-do/src/main/java/com/liquidnet/service/goblin/entity/GoblinOrderSku.java
View file @
ddf6a58b
...
...
@@ -126,12 +126,12 @@ public class GoblinOrderSku implements Serializable,Cloneable {
private
BigDecimal
cateRate
;
/**
* ERP
商品编码
* ERP
货品编号
*/
private
String
spuErpCode
;
/**
* ERP
规格
编码
* ERP
商家
编码
*/
private
String
skuErpCode
;
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/docu/db_ln_goblin_initialdata.sql
View file @
ddf6a58b
...
...
@@ -1201,7 +1201,7 @@ create table goblin_goods_anticipate_mix
#
-- >>------------------------------------------------------------------------------------ |20221110商品导入扫码
alter
table
goblin_goods
modify
spu_no
varchar
(
64
)
not
null
comment
'商品编码'
;
alter
table
goblin_goods
add
spu_bar_code
varchar
(
64
)
null
comment
'商品条码'
after
spu_no
;
alter
table
goblin_goods
add
spu_erp_code
varchar
(
64
)
null
comment
'ERP
商品编码
'
after
spu_bar_code
;
alter
table
goblin_goods
add
spu_erp_code
varchar
(
64
)
null
comment
'ERP
货品编号
'
after
spu_bar_code
;
alter
table
goblin_goods_sku
modify
sku_no
varchar
(
64
)
not
null
comment
'单品编码'
;
alter
table
goblin_goods_sku
add
sku_bar_code
varchar
(
64
)
null
comment
'单品条码'
after
sku_no
;
...
...
@@ -1215,14 +1215,14 @@ alter table goblin_goods_sku add erp_warehouse_no varchar(64) null comment 'ERP
alter
table
goblin_order_sku
add
erp_type
varchar
(
64
)
null
comment
'ERP类型[WANGDIAN-旺店通]'
after
push_time
;
alter
table
goblin_order_sku
add
erp_hosting
tinyint
default
0
comment
'ERP托管[0-否|1-是]默认0'
after
erp_type
;
alter
table
goblin_order_sku
add
spu_erp_code
varchar
(
64
)
null
comment
'ERP
商品编码
'
after
erp_hosting
;
alter
table
goblin_order_sku
add
sku_erp_code
varchar
(
64
)
null
comment
'ERP
规格
编码'
after
spu_erp_code
;
alter
table
goblin_order_sku
add
spu_erp_code
varchar
(
64
)
null
comment
'ERP
货品编号
'
after
erp_hosting
;
alter
table
goblin_order_sku
add
sku_erp_code
varchar
(
64
)
null
comment
'ERP
商家
编码'
after
spu_erp_code
;
alter
table
goblin_order_sku
add
erp_warehouse_no
varchar
(
64
)
null
comment
'ERP仓库编号'
after
sku_erp_code
;
alter
table
goblin_nft_order
add
erp_type
varchar
(
64
)
null
comment
'ERP类型[WANGDIAN-旺店通]'
after
mix_code
;
alter
table
goblin_nft_order
add
erp_hosting
tinyint
default
0
comment
'ERP托管[0-否|1-是]默认0'
after
erp_type
;
alter
table
goblin_nft_order
add
spu_erp_code
varchar
(
64
)
null
comment
'ERP
商品编码
'
after
erp_hosting
;
alter
table
goblin_nft_order
add
sku_erp_code
varchar
(
64
)
null
comment
'ERP
规格
编码'
after
spu_erp_code
;
alter
table
goblin_nft_order
add
spu_erp_code
varchar
(
64
)
null
comment
'ERP
货品编号
'
after
erp_hosting
;
alter
table
goblin_nft_order
add
sku_erp_code
varchar
(
64
)
null
comment
'ERP
商家
编码'
after
spu_erp_code
;
alter
table
goblin_nft_order
add
erp_warehouse_no
varchar
(
64
)
null
comment
'ERP仓库编号'
after
sku_erp_code
;
drop
table
if
exists
goblin_store_erp_config
;
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/erp/WdtServiceImpl.java
View file @
ddf6a58b
...
...
@@ -108,8 +108,8 @@ public class WdtServiceImpl implements IGoblinErpService {
// for (int i = 0; i < pageCount; i++) {
// param.put("page_no", i + "");
GoblinStoreErpConfigVo
storeErpConfigVo
=
goblinRedisUtils
.
getStoreErpConfigVoByStoreId
(
data
.
getStoreId
());
if
(
storeErpConfigVo
==
null
)
{
log
.
error
(
"storeId:{},查询失败"
,
data
.
getStoreId
());
if
(
storeErpConfigVo
==
null
)
{
log
.
error
(
"storeId:{},查询失败"
,
data
.
getStoreId
());
continue
;
}
json
=
erpWdtClient
.
execute
(
ErpEnum
.
WdtAPI
.
STOCK_QUERY
.
getUri
(),
param
,
storeErpConfigVo
.
getAppKey
(),
storeErpConfigVo
.
getSid
(),
storeErpConfigVo
.
getAppSecret
());
...
...
@@ -163,7 +163,7 @@ public class WdtServiceImpl implements IGoblinErpService {
for
(
SyncStockVo
vo
:
stockMap
)
{
String
skuId
=
""
;
try
{
GoblinGoodsSkuInfoVo
skuInfoVo
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"skuErpCode"
).
is
(
vo
.
getSpecNo
()).
and
(
"erpWarehouseNo"
).
is
(
vo
.
getWarehouseNo
())),
GoblinGoodsSkuInfoVo
.
class
,
GoblinGoodsSkuInfoVo
.
class
.
getSimpleName
());
GoblinGoodsSkuInfoVo
skuInfoVo
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"skuErpCode"
).
is
(
vo
.
getSpecNo
()).
and
(
"erpWarehouseNo"
).
is
(
vo
.
getWarehouseNo
())
.
and
(
"erpHosting"
).
is
(
1
)
),
GoblinGoodsSkuInfoVo
.
class
,
GoblinGoodsSkuInfoVo
.
class
.
getSimpleName
());
int
changeStock
=
vo
.
getStockErpNum
().
subtract
(
BigDecimal
.
valueOf
(
skuInfoVo
.
getSkuStock
())).
intValue
();
skuId
=
skuInfoVo
.
getSkuId
();
//mongo修改
...
...
@@ -207,9 +207,13 @@ public class WdtServiceImpl implements IGoblinErpService {
String
orderId
=
goblinRedisUtils
.
erpLeftPop
(
shopNo
);
if
(
orderId
!=
null
)
{
list
.
add
(
orderId
);
}
else
{
break
;
}
}
orderIdList
.
add
(
list
);
if
(
list
.
size
()
!=
0
)
{
orderIdList
.
add
(
list
);
}
}
else
{
List
<
String
>
a
=
CollectionUtil
.
arrayListString
();
a
.
add
(
singleId
);
...
...
@@ -435,13 +439,10 @@ public class WdtServiceImpl implements IGoblinErpService {
paramAck
.
put
(
"spec_no"
,
spec_no
);
paramAck
.
put
(
"goods_no"
,
goods_no
);
GoblinStoreErpConfigVo
storeErpConfigVo
=
goblinRedisUtils
.
getStoreErpConfigVoByStoreId
(
storeId
);
String
json
=
erpWdtClient
.
execute
(
ErpEnum
.
WdtAPI
.
GOODS_QUERY
.
getUri
(),
paramAck
,
storeErpConfigVo
.
getAppKey
(),
storeErpConfigVo
.
getSid
(),
storeErpConfigVo
.
getAppSecret
());
log
.
error
(
"json = "
+
json
);
CheckGoodsBaseVo
checkGoodsBaseVo
=
JsonUtils
.
fromJson
(
json
,
CheckGoodsBaseVo
.
class
);
log
.
error
(
"checkGoodsBaseVo = "
+
checkGoodsBaseVo
);
if
(
checkGoodsBaseVo
.
getTotal_count
()
==
0
)
{
return
ResponseDto
.
failure
(
"ERP
商品编码或ERP规格
编码不存在"
);
return
ResponseDto
.
failure
(
"ERP
货品编号或ERP商家
编码不存在"
);
}
else
{
return
ResponseDto
.
success
(
true
);
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreOrderServiceImpl.java
View file @
ddf6a58b
...
...
@@ -163,6 +163,17 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
break
;
}
}
if
(
null
==
vo
.
getStoreUcouponId
())
{
List
<
CouponOutLineVo
>
outLineVos
=
redisUtils
.
getOutLineCoupon
();
for
(
CouponOutLineVo
outLineVo
:
outLineVos
)
{
if
(
outLineVo
.
getStoreCouponId
().
equals
(
orderVo
.
getStoreCouponId
()))
{
vo
.
setStoreUcouponId
(
outLineVo
.
getStoreCouponId
());
vo
.
setStoreUcouponName
(
outLineVo
.
getName
());
vo
.
setStoreUcouponPrice
(
orderVo
.
getStorePriceCoupon
());
break
;
}
}
}
}
else
{
vo
.
setStoreUcouponId
(
""
);
...
...
@@ -565,7 +576,7 @@ public class GoblinStoreOrderServiceImpl implements IGoblinStoreOrderService {
// return ResponseDto.failure("无法查看");
// }
GoblinStoreOrderVo
orderVo
=
null
;
if
(
null
==
orderCode
||
""
.
equals
(
orderCode
))
{
if
(
null
==
orderCode
||
""
.
equals
(
orderCode
))
{
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
}
else
{
orderVo
=
mongoUtils
.
getGoblinStoreOrderVoByCode
(
orderCode
);
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/GoblinOrderUtils.java
View file @
ddf6a58b
...
...
@@ -255,7 +255,7 @@ public class GoblinOrderUtils {
for
(
CouponOutLineVo
data
:
couponList
)
{
if
(
data
.
getStoreCouponId
().
equals
(
ucouponId
))
{
isOutLine
=
true
;
BigDecimal
tempPrice
=
totalPrice
.
subtract
(
totalPrice
.
multiply
(
BigDecimal
.
valueOf
(
data
.
getDiscount
())).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_DOWN
));
BigDecimal
tempPrice
=
totalPrice
.
subtract
(
totalPrice
.
multiply
(
BigDecimal
.
valueOf
(
data
.
getDiscount
())
.
divide
(
BigDecimal
.
valueOf
(
100
)).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_DOWN
)
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_DOWN
));
returnVo
.
setSpuIds
(
CollectionUtil
.
linkedListString
());
returnVo
.
setValue
(
tempPrice
);
returnVo
.
setCouType
(
data
.
getCouType
());
...
...
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