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
30d92b54
Commit
30d92b54
authored
Jun 26, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-26-4提交
parent
9c2be8ef
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
246 additions
and
100 deletions
+246
-100
OrderBusinessServiceImpl.java
...le/order/service/order/impl/OrderBusinessServiceImpl.java
+145
-57
OrderSpecialNeedServiceImpl.java
...order/service/order/impl/OrderSpecialNeedServiceImpl.java
+22
-7
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+17
-6
ProdCostCalculation.java
...r/yudao/module/product/component/ProdCostCalculation.java
+59
-29
ProdConditionParam.java
...ocoder/yudao/module/product/param/ProdConditionParam.java
+2
-0
ProdLinePriceController.java
...roduct/controller/admin/prod/ProdLinePriceController.java
+1
-1
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderBusinessServiceImpl.java
View file @
30d92b54
This diff is collapsed.
Click to expand it.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderSpecialNeedServiceImpl.java
View file @
30d92b54
...
...
@@ -356,19 +356,30 @@ public class OrderSpecialNeedServiceImpl extends AbstractService<OrderSpecialNee
List
<
OrderSpecialNeedDO
>
orderSpecialNeedDOS
=
orderSpecialNeedMapper
.
selectList
(
OrderSpecialNeedDO:
:
getOrderId
,
orderId
);
//垫付的内陆运输费用 getTransFee
if
(
CollectionUtil
.
isNotEmpty
(
orderSpecialNeedDOS
))
{
orderSpecialNeedDOS
.
stream
().
filter
(
item
->
item
.
getTransFee
().
compareTo
(
BigDecimal
.
ZERO
)
==
1
).
forEach
(
item
->
build
(
item
,
type
));
item
->
item
.
getTransFee
().
compareTo
(
BigDecimal
.
ZERO
)
==
1
).
forEach
(
item
->
build
(
item
,
type
));
}
}
private
void
build
(
OrderSpecialNeedDO
orderSpecialNeed
,
int
type
)
{
// 插入应收款
// 预付在完成入仓时生成应收
DictDataRespDTO
dictDto
=
DictFrameworkUtils
.
getDictDataFromCache
(
"receivable_fee_type"
,
orderSpecialNeed
.
getAdvanceType
());
if
(
type
==
1
&&
orderSpecialNeed
.
getPayType
()
!=
null
&&
orderSpecialNeed
.
getPayType
()
!=
4
)
{
DictDataRespDTO
dictDto
=
DictFrameworkUtils
.
getDictDataFromCache
(
"receivable_fee_type"
,
orderSpecialNeed
.
getAdvanceType
());
//付款类型 getPayType 付款类型
/*
if (type == 1 && orderSpecialNeed.getPayType() != null
&& orderSpecialNeed.getPayType() != 4) {*/
if
(
type
==
1
&&
orderSpecialNeed
.
getPayType
()
!=
null
)
{
//完成入仓可多次,故先删除掉已有应收再重新生成
if
(
orderSpecialNeed
.
getReceivableId
()
!=
null
&&
orderSpecialNeed
.
getReceivableId
()
>
0L
)
{
if
(
orderSpecialNeed
.
getReceivableId
()
!=
null
&&
orderSpecialNeed
.
getReceivableId
()
>
0L
)
{
receivableService
.
deleteReceivable
(
orderSpecialNeed
.
getReceivableId
());
}
OrderBackVO
order
=
orderQueryService
.
getOrder
(
orderSpecialNeed
.
getOrderId
());
...
...
@@ -387,12 +398,16 @@ public class OrderSpecialNeedServiceImpl extends AbstractService<OrderSpecialNee
receivableCreateReqVO
.
setUnitPrice
(
orderSpecialNeed
.
getTransFee
());
receivableCreateReqVO
.
setPaymentUser
(
String
.
valueOf
(
order
.
getDrawee
()
!=
3
?
order
.
getDrawee
()
:
orderQueryService
.
customDrawee
(
OrderConvert
.
INSTANCE
.
convert
(
order
),
Integer
.
valueOf
(
orderSpecialNeed
.
getAdvanceType
()))));
receivableCreateReqVO
.
setFeeSource
(
3
);
Long
receivableId
=
receivableService
.
createReceivable
(
receivableCreateReqVO
);
Long
receivableId
=
receivableService
.
createReceivable
(
receivableCreateReqVO
);
orderSpecialNeed
.
setReceivableId
(
receivableId
);
orderSpecialNeedMapper
.
updateById
(
orderSpecialNeed
);
}
else
if
(
type
==
2
&&
orderSpecialNeed
.
getPayType
()
!=
null
&&
orderSpecialNeed
.
getPayType
()
==
4
)
{
}
else
if
(
type
==
2
&&
orderSpecialNeed
.
getPayType
()
!=
null
&&
orderSpecialNeed
.
getPayType
()
==
4
)
{
//装柜反审后再审批,故先删除掉已有应收再重新生成
if
(
orderSpecialNeed
.
getReceivableId
()
!=
null
&&
orderSpecialNeed
.
getReceivableId
()
>
0L
)
{
if
(
orderSpecialNeed
.
getReceivableId
()
!=
null
&&
orderSpecialNeed
.
getReceivableId
()
>
0L
)
{
receivableService
.
deleteReceivable
(
orderSpecialNeed
.
getReceivableId
());
}
OrderBackVO
order
=
orderQueryService
.
getOrder
(
orderSpecialNeed
.
getOrderId
());
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
30d92b54
...
...
@@ -1156,20 +1156,26 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
// orderLocationService.batchOrderUpdate(orderLocationCreateReqVOList);
// }
// 保存特需
// 保存特需
特需应收请求列表
List
<
OrderSpecialNeedReceivableReqVo
>
orderSpecialNeedReceivableReqVoList
=
finishReqVO
.
getOrderSpecialNeedReceivableReqVoList
();
if
(
CollectionUtil
.
isNotEmpty
(
orderSpecialNeedReceivableReqVoList
))
{
List
<
Long
>
specialNeedIds
=
orderSpecialNeedReceivableReqVoList
.
stream
().
map
(
OrderSpecialNeedReceivableReqVo:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Long
>
specialNeedIds
=
orderSpecialNeedReceivableReqVoList
.
stream
().
map
(
OrderSpecialNeedReceivableReqVo:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
OrderSpecialNeedDO
>
orderSpecialNeedList
=
orderSpecialNeedService
.
getOrderSpecialNeedList
(
specialNeedIds
);
orderSpecialNeedList
.
forEach
(
orderSpecialNeedDO
->
orderSpecialNeedReceivableReqVoList
.
stream
()
.
filter
(
t
->
t
.
getId
().
equals
(
orderSpecialNeedDO
.
getId
())).
findFirst
().
ifPresent
(
orderSpecialNeedReceivableReqVo
->
{
BigDecimal
money
=
orderSpecialNeedReceivableReqVo
.
getReceivableMoney
();
Integer
currency
=
orderSpecialNeedReceivableReqVo
.
getReceivableMoneyCurrency
();
String
advanceType
=
orderSpecialNeedDO
.
getAdvanceType
();
//receivable_money 应收费
BigDecimal
money
=
orderSpecialNeedReceivableReqVo
.
getReceivableMoney
();
Integer
currency
=
orderSpecialNeedReceivableReqVo
.
getReceivableMoneyCurrency
();
String
advanceType
=
orderSpecialNeedDO
.
getAdvanceType
();
//垫付的内陆运输费用
orderSpecialNeedDO
.
setTransFee
(
money
);
orderSpecialNeedDO
.
setTransCurrency
(
currency
);
}));
...
...
@@ -1177,9 +1183,14 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
// 更新
orderSpecialNeedService
.
updateBatchById
(
orderSpecialNeedList
);
}
else
{
}
// 生成特需应收
orderSpecialNeedService
.
buildSpecialReceivable
(
orderId
,
1
);
List
<
OrderWarehouseInDO
>
orderWarehouseInDOList
=
orderWarehouseInMapper
.
selectList
(
OrderWarehouseInDO:
:
getOrderId
,
orderDO
.
getOrderId
());
...
...
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/component/ProdCostCalculation.java
View file @
30d92b54
This diff is collapsed.
Click to expand it.
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/param/ProdConditionParam.java
View file @
30d92b54
...
...
@@ -185,8 +185,10 @@ public class ProdConditionParam {
@ApiModelProperty
(
value
=
"应收运费单价(原始价格(无牌无液无电)+特殊加价+明佣)"
)
private
BigDecimal
receivableOneSeaFreight
;
@ApiModelProperty
(
value
=
"商品运费单价(成交)"
)
private
BigDecimal
oneFreight
;
@ApiModelProperty
(
value
=
"商品运费单价(成交)-前端传值转换字段"
)
private
BigDecimal
oneSeaFreight
;
...
...
yudao-module-product/yudao-module-product-rest/src/main/java/cn/iocoder/yudao/module/product/controller/admin/prod/ProdLinePriceController.java
View file @
30d92b54
...
...
@@ -59,7 +59,7 @@ public class ProdLinePriceController {
peek
(
it
->
it
.
setIsPriced
(
false
)).
collect
(
Collectors
.
toList
()));
//获取价格信息
lanbm 2024-06-20 添加注释
//获取价格信息
List
<
ProdConditionParam
>
prodConditionParams
=
prodCostCalculation
.
obtainProdLineOnePrice
(
param
.
getProdConditionParamList
(),
...
...
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