Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
0e786af8
Commit
0e786af8
authored
Jul 22, 2024
by
zhaobiyan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
实时计价接口对入仓数据做参数转换 See merge request
!6
parents
052ea5fd
28f34692
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
ProdLinePriceController.java
...roduct/controller/admin/prod/ProdLinePriceController.java
+10
-1
No files found.
yudao-module-product/yudao-module-product-rest/src/main/java/cn/iocoder/yudao/module/product/controller/admin/prod/ProdLinePriceController.java
View file @
0e786af8
...
@@ -8,6 +8,7 @@ import cn.iocoder.yudao.module.product.component.ProdCostCalculation;
...
@@ -8,6 +8,7 @@ import cn.iocoder.yudao.module.product.component.ProdCostCalculation;
import
cn.iocoder.yudao.module.product.dto.CalculationCostResultDto
;
import
cn.iocoder.yudao.module.product.dto.CalculationCostResultDto
;
import
cn.iocoder.yudao.module.product.param.ConditionParam
;
import
cn.iocoder.yudao.module.product.param.ConditionParam
;
import
cn.iocoder.yudao.module.product.param.ProdConditionParam
;
import
cn.iocoder.yudao.module.product.param.ProdConditionParam
;
import
cn.iocoder.yudao.module.product.param.WarehouseInInfoParam
;
import
cn.iocoder.yudao.module.product.service.coupon.CouponService
;
import
cn.iocoder.yudao.module.product.service.coupon.CouponService
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -52,7 +53,15 @@ public class ProdLinePriceController {
...
@@ -52,7 +53,15 @@ public class ProdLinePriceController {
// 前端实时计价时需要将订单的固定价格参数进行格式化,转为未定价,否则不会去查询当前实时价格
// 前端实时计价时需要将订单的固定价格参数进行格式化,转为未定价,否则不会去查询当前实时价格
param
.
setProdConditionParamList
(
param
.
getProdConditionParamList
().
stream
().
peek
(
it
->{
param
.
setProdConditionParamList
(
param
.
getProdConditionParamList
().
stream
().
peek
(
it
->{
it
.
setIsPriced
(
false
);
it
.
setIsPriced
(
false
);
it
.
setPackages
(
Arrays
.
asList
(
Objects
.
isNull
(
it
.
getWarehouseInInfoVO
())
?
it
.
getUnit
().
split
(
StrUtil
.
COMMA
)
:
it
.
getWarehouseInInfoVO
().
getUnits
().
split
(
StrUtil
.
COMMA
)));
WarehouseInInfoParam
warehouseInInfoVO
=
it
.
getWarehouseInInfoVO
();
if
(
Objects
.
nonNull
(
warehouseInInfoVO
)){
it
.
setPackages
(
Arrays
.
asList
(
warehouseInInfoVO
.
getUnits
().
split
(
StrUtil
.
COMMA
)));
it
.
setVolume
(
warehouseInInfoVO
.
getVolume
());
it
.
setWeight
(
warehouseInInfoVO
.
getWeight
());
it
.
setQuantity
(
warehouseInInfoVO
.
getQuantityAll
());
}
else
{
it
.
setPackages
(
Arrays
.
asList
(
it
.
getUnit
().
split
(
StrUtil
.
COMMA
)));
}
}).
collect
(
Collectors
.
toList
()));
}).
collect
(
Collectors
.
toList
()));
List
<
ProdConditionParam
>
prodConditionParams
=
prodCostCalculation
.
obtainProdLineOnePrice
(
param
.
getProdConditionParamList
(),
""
,
List
<
ProdConditionParam
>
prodConditionParams
=
prodCostCalculation
.
obtainProdLineOnePrice
(
param
.
getProdConditionParamList
(),
""
,
Objects
.
nonNull
(
param
.
getCustomsType
())
?
param
.
getCustomsType
()
:
1
,
param
.
getCustomerId
(),
Objects
.
nonNull
(
param
.
getCustomsType
())
?
param
.
getCustomsType
()
:
1
,
param
.
getCustomerId
(),
...
...
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