记得上下班打卡 | 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
9d0f56e4
Commit
9d0f56e4
authored
Jan 07, 2023
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需改 erphosting 不是1不处理
parent
c2dcf08e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
WdtServiceImpl.java
...idnet/service/goblin/service/impl/erp/WdtServiceImpl.java
+8
-4
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/erp/WdtServiceImpl.java
View file @
9d0f56e4
...
@@ -108,8 +108,8 @@ public class WdtServiceImpl implements IGoblinErpService {
...
@@ -108,8 +108,8 @@ public class WdtServiceImpl implements IGoblinErpService {
// for (int i = 0; i < pageCount; i++) {
// for (int i = 0; i < pageCount; i++) {
// param.put("page_no", i + "");
// param.put("page_no", i + "");
GoblinStoreErpConfigVo
storeErpConfigVo
=
goblinRedisUtils
.
getStoreErpConfigVoByStoreId
(
data
.
getStoreId
());
GoblinStoreErpConfigVo
storeErpConfigVo
=
goblinRedisUtils
.
getStoreErpConfigVoByStoreId
(
data
.
getStoreId
());
if
(
storeErpConfigVo
==
null
)
{
if
(
storeErpConfigVo
==
null
)
{
log
.
error
(
"storeId:{},查询失败"
,
data
.
getStoreId
());
log
.
error
(
"storeId:{},查询失败"
,
data
.
getStoreId
());
continue
;
continue
;
}
}
json
=
erpWdtClient
.
execute
(
ErpEnum
.
WdtAPI
.
STOCK_QUERY
.
getUri
(),
param
,
storeErpConfigVo
.
getAppKey
(),
storeErpConfigVo
.
getSid
(),
storeErpConfigVo
.
getAppSecret
());
json
=
erpWdtClient
.
execute
(
ErpEnum
.
WdtAPI
.
STOCK_QUERY
.
getUri
(),
param
,
storeErpConfigVo
.
getAppKey
(),
storeErpConfigVo
.
getSid
(),
storeErpConfigVo
.
getAppSecret
());
...
@@ -163,7 +163,7 @@ public class WdtServiceImpl implements IGoblinErpService {
...
@@ -163,7 +163,7 @@ public class WdtServiceImpl implements IGoblinErpService {
for
(
SyncStockVo
vo
:
stockMap
)
{
for
(
SyncStockVo
vo
:
stockMap
)
{
String
skuId
=
""
;
String
skuId
=
""
;
try
{
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
();
int
changeStock
=
vo
.
getStockErpNum
().
subtract
(
BigDecimal
.
valueOf
(
skuInfoVo
.
getSkuStock
())).
intValue
();
skuId
=
skuInfoVo
.
getSkuId
();
skuId
=
skuInfoVo
.
getSkuId
();
//mongo修改
//mongo修改
...
@@ -207,9 +207,13 @@ public class WdtServiceImpl implements IGoblinErpService {
...
@@ -207,9 +207,13 @@ public class WdtServiceImpl implements IGoblinErpService {
String
orderId
=
goblinRedisUtils
.
erpLeftPop
(
shopNo
);
String
orderId
=
goblinRedisUtils
.
erpLeftPop
(
shopNo
);
if
(
orderId
!=
null
)
{
if
(
orderId
!=
null
)
{
list
.
add
(
orderId
);
list
.
add
(
orderId
);
}
else
{
break
;
}
}
}
}
orderIdList
.
add
(
list
);
if
(
list
.
size
()
!=
0
)
{
orderIdList
.
add
(
list
);
}
}
else
{
}
else
{
List
<
String
>
a
=
CollectionUtil
.
arrayListString
();
List
<
String
>
a
=
CollectionUtil
.
arrayListString
();
a
.
add
(
singleId
);
a
.
add
(
singleId
);
...
...
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