Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
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
后端-黄柯铭
lingxi-lxy-yanshou
Commits
1cdeb106
Commit
1cdeb106
authored
Aug 06, 2021
by
xyt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/v2' into v2
parents
a6fed8d6
7da87fd4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ContractPurchaseMaterielServiceImpl.java
...ract/serviceimpl/ContractPurchaseMaterielServiceImpl.java
+5
-4
No files found.
contract-service/src/main/java/com/ssy/lingxi/contract/serviceimpl/ContractPurchaseMaterielServiceImpl.java
View file @
1cdeb106
...
...
@@ -98,8 +98,8 @@ public class ContractPurchaseMaterielServiceImpl implements IContractPurchaseMat
}
}
}
Map
<
Long
,
CommoditySkuStockResponse
>
commoditySkuStock
=
getCommoditySkuStock
(
user
,
goodsIds
,
pageVO
.
getShopId
());
boolean
stockFlag
=
CollectionUtil
.
isNotEmpty
(
commoditySkuStock
);
/*暂不显示0806 Map<Long, CommoditySkuStockResponse> commoditySkuStock =
getCommoditySkuStock(user, goodsIds,pageVO.getShopId());
boolean stockFlag = CollectionUtil.isNotEmpty(commoditySkuStock);
*/
List
<
PurchaseMaterielQueryVO
>
resultList
=
result
.
getContent
().
stream
().
map
(
o
->
{
PurchaseMaterielQueryVO
entity
=
new
PurchaseMaterielQueryVO
();
entity
.
setId
(
o
.
getId
());
...
...
@@ -126,7 +126,7 @@ public class ContractPurchaseMaterielServiceImpl implements IContractPurchaseMat
entity
.
setAssociatedBrand
(
o
.
getAssociatedBrand
());
Double
contractFreeCount
=
o
.
getContractFreeCount
();
entity
.
setContractFreeCount
((
contractFreeCount
==
null
||
contractFreeCount
<
0
)?
0
D:
contractFreeCount
);
if
(
stockFlag
){
/* 暂不显示0806
if(stockFlag){
CommoditySkuStockResponse stockResponse = commoditySkuStock.get(o.getAssociatedDataId());
if(stockResponse!=null) {
//供方库存
...
...
@@ -134,7 +134,7 @@ public class ContractPurchaseMaterielServiceImpl implements IContractPurchaseMat
}else{
entity.setSupplierInventory(0D);
}
}
}
*/
return
entity
;
}).
collect
(
Collectors
.
toList
());
...
...
@@ -205,6 +205,7 @@ public class ContractPurchaseMaterielServiceImpl implements IContractPurchaseMat
entity
.
setPurchaseCount
(
o
.
getPurchaseCount
());
entity
.
setBidAmount
(
o
.
getBidAmount
());
entity
.
setBidCount
(
o
.
getBidCount
());
entity
.
setContractFreeCount
(
o
.
getBidCount
());
entity
.
setAssociatedDataId
(
o
.
getAssociatedDataId
());
entity
.
setAssociatedGoods
(
o
.
getAssociatedGoods
());
entity
.
setAssociatedMaterielNo
(
o
.
getAssociatedMaterielNo
());
...
...
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