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
370dc895
Commit
370dc895
authored
Jun 21, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-21提交
parent
22776506
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
572 additions
and
289 deletions
+572
-289
ZTestMapper.java
.../java/cn/iocoder/yudao/framework/toolkit/ZTestMapper.java
+0
-9
OrderBusinessServiceImpl.java
...le/order/service/order/impl/OrderBusinessServiceImpl.java
+102
-46
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+19
-5
OrderSpecialNeedServiceImpl.java
...order/service/order/impl/OrderSpecialNeedServiceImpl.java
+5
-2
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+1
-2
OrderCommissionPayableJob.java
...er/yudao/module/order/task/OrderCommissionPayableJob.java
+7
-2
ProdCostCalculation.java
...r/yudao/module/product/component/ProdCostCalculation.java
+396
-215
zTest3.java
...er/yudao/module/product/dal/dataobject/coupon/zTest3.java
+2
-3
BasePrice.java
...udao/module/product/dal/dataobject/product/BasePrice.java
+1
-0
ZTestMapper3.java
...r/yudao/module/product/dal/mysql/coupon/ZTestMapper3.java
+10
-0
ProdCostDto.java
...java/cn/iocoder/yudao/module/product/dto/ProdCostDto.java
+1
-0
ProductPriceStepServiceImpl.java
...uct/service/product/impl/ProductPriceStepServiceImpl.java
+12
-3
ProdLinePriceController.java
...roduct/controller/admin/prod/ProdLinePriceController.java
+13
-1
ReceivableController.java
...lth/controller/admin/receivable/ReceivableController.java
+3
-1
No files found.
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/toolkit/ZTestMapper.java
deleted
100644 → 0
View file @
22776506
package
cn
.
iocoder
.
yudao
.
framework
.
toolkit
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
ZTestMapper
extends
BaseMapper
<
zTest
>
{
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderBusinessServiceImpl.java
View file @
370dc895
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/OrderServiceImpl.java
View file @
370dc895
...
...
@@ -6271,7 +6271,9 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
OrderConsigneeDO
orderConsigneeDO
=
orderConsigneeService
.
getOne
(
new
LambdaQueryWrapper
<
OrderConsigneeDO
>().
eq
(
OrderConsigneeDO:
:
getOrderId
,
orderDO
.
getOrderId
()).
orderByDesc
(
OrderConsigneeDO:
:
getId
).
last
(
"limit 1"
));
// 更新所属客户经理(业务员)
if
(
Objects
.
isNull
(
orderDO
.
getParentOrderId
())
||
orderDO
.
getParentOrderId
()
==
0
||
orderDO
.
getSplitSeparateOrder
())
{
if
(
Objects
.
isNull
(
orderDO
.
getParentOrderId
())
||
orderDO
.
getParentOrderId
()
==
0
||
orderDO
.
getSplitSeparateOrder
())
{
// 拆单子订单不执行客户经理分配规则,以原单为主
if
(
Objects
.
nonNull
(
orderDO
.
getCustomerId
())
&&
orderDO
.
getCustomerId
()
>
0
)
{
addOrderCustomerService
(
orderDO
,
...
...
@@ -6279,8 +6281,14 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
orderDO
.
getCustomerId
())
?
1
:
2
);
}
}
orderBusinessService
.
costCalculation
(
userId
,
orderDO
,
orderConsignorDO
.
getCustomerId
(),
orderConsigneeDO
.
getCustomerId
(),
orderConsignorDO
.
getCustomerContactsId
(),
orderConsigneeDO
.
getCustomerContactsId
(),
orderItemDOList
,
15
);
orderBusinessService
.
costCalculation
(
userId
,
orderDO
,
orderConsignorDO
.
getCustomerId
(),
orderConsigneeDO
.
getCustomerId
(),
orderConsignorDO
.
getCustomerContactsId
(),
orderConsigneeDO
.
getCustomerContactsId
(),
orderItemDOList
,
15
);
}
@Override
...
...
@@ -6297,8 +6305,14 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
addOrderCustomerService
(
orderDO
,
Objects
.
equals
(
orderConsignorDO
.
getCustomerId
(),
orderDO
.
getCustomerId
())
?
1
:
2
);
}
}
orderBusinessService
.
costCalculation
(
userId
,
orderDO
,
orderConsignorDO
.
getCustomerId
(),
orderConsigneeDO
.
getCustomerId
(),
orderConsignorDO
.
getCustomerContactsId
(),
orderConsigneeDO
.
getCustomerContactsId
(),
orderItemDOList
,
10
);
orderBusinessService
.
costCalculation
(
userId
,
orderDO
,
orderConsignorDO
.
getCustomerId
(),
orderConsigneeDO
.
getCustomerId
(),
orderConsignorDO
.
getCustomerContactsId
(),
orderConsigneeDO
.
getCustomerContactsId
(),
orderItemDOList
,
10
);
}
@Override
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderSpecialNeedServiceImpl.java
View file @
370dc895
...
...
@@ -353,9 +353,12 @@ public class OrderSpecialNeedServiceImpl extends AbstractService<OrderSpecialNee
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
buildSpecialReceivable
(
Long
orderId
,
int
type
)
{
List
<
OrderSpecialNeedDO
>
orderSpecialNeedDOS
=
orderSpecialNeedMapper
.
selectList
(
OrderSpecialNeedDO:
:
getOrderId
,
orderId
);
List
<
OrderSpecialNeedDO
>
orderSpecialNeedDOS
=
orderSpecialNeedMapper
.
selectList
(
OrderSpecialNeedDO:
:
getOrderId
,
orderId
);
if
(
CollectionUtil
.
isNotEmpty
(
orderSpecialNeedDOS
))
{
orderSpecialNeedDOS
.
stream
().
filter
(
item
->
item
.
getTransFee
().
compareTo
(
BigDecimal
.
ZERO
)
==
1
).
forEach
(
item
->
build
(
item
,
type
));
orderSpecialNeedDOS
.
stream
().
filter
(
item
->
item
.
getTransFee
().
compareTo
(
BigDecimal
.
ZERO
)
==
1
).
forEach
(
item
->
build
(
item
,
type
));
}
}
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
370dc895
...
...
@@ -1074,9 +1074,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
finishWarehouseIn
(
OrderWarehouseInFinishReqVO
finishReqVO
)
{
String
msg
=
"完成入仓"
;
Long
orderId
=
finishReqVO
.
getOrderId
();
OrderDO
orderDO
=
orderService
.
getById
(
orderId
);
if
(
orderDO
==
null
)
{
...
...
@@ -1283,6 +1281,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
boolean
firstRucang
=
orderDO
.
getRucangTime
()
==
null
;
if
(
firstRucang
)
{
//在下面的函数中弯沉费用计算 lanbm 2024-06-20 添加注释
orderService
.
finishOrderWarehouseIn
(
orderDO
.
getOrderId
());
}
else
{
orderService
.
finishOrderWarehouseInUpdate
(
orderDO
.
getOrderId
());
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/task/OrderCommissionPayableJob.java
View file @
370dc895
...
...
@@ -138,7 +138,11 @@ public class OrderCommissionPayableJob implements JobHandler {
return
""
;
}
private
void
addCommissionPayable
(
CommissionPayableDO
commissionPayable
,
OrderItemDO
orderItemDO
,
OrderDO
orderDO
,
Integer
feeType
,
BigDecimal
amount
)
{
private
void
addCommissionPayable
(
CommissionPayableDO
commissionPayable
,
OrderItemDO
orderItemDO
,
OrderDO
orderDO
,
Integer
feeType
,
BigDecimal
amount
)
{
commissionPayable
.
setOrderId
(
orderItemDO
.
getOrderId
());
commissionPayable
.
setOrderNo
(
orderItemDO
.
getOrderNo
());
commissionPayable
.
setPayableNo
(
orderDO
.
getContainerNumber
());
...
...
@@ -168,7 +172,8 @@ public class OrderCommissionPayableJob implements JobHandler {
commissionPayable
.
setTotalAmount
(
amount
.
multiply
(
orderItemDO
.
getChargeVolume
()).
setScale
(
2
,
RoundingMode
.
HALF_UP
));
}
else
if
(
StringUtils
.
equals
(
"kg"
,
unitDO
.
getFuhao
()))
{
// 重量
commissionPayable
.
setTotalAmount
(
amount
.
multiply
(
orderItemDO
.
getChargeWeight
()).
setScale
(
2
,
RoundingMode
.
HALF_UP
));
commissionPayable
.
setTotalAmount
(
amount
.
multiply
(
orderItemDO
.
getChargeWeight
()).
setScale
(
2
,
RoundingMode
.
HALF_UP
));
}
else
if
(
StringUtils
.
equals
(
"a"
,
unitDO
.
getFuhao
()))
{
// 数量
commissionPayable
.
setTotalAmount
(
amount
.
multiply
(
orderItemDO
.
getChargeQuantity
()).
setScale
(
2
,
RoundingMode
.
HALF_UP
));
...
...
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/component/ProdCostCalculation.java
View file @
370dc895
This diff is collapsed.
Click to expand it.
yudao-
framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/toolkit/zTest
.java
→
yudao-
module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/coupon/zTest3
.java
View file @
370dc895
package
cn
.
iocoder
.
yudao
.
framework
.
toolkit
;
package
cn
.
iocoder
.
yudao
.
module
.
product
.
dal
.
dataobject
.
coupon
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.util.Date
;
@TableName
(
"z_test"
)
@Data
public
class
zTest
{
public
class
zTest
3
{
private
Long
id
;
private
String
testname
;
...
...
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/product/BasePrice.java
View file @
370dc895
...
...
@@ -67,6 +67,7 @@ public class BasePrice extends BaseDO {
* 全包价金额单位
*/
private
Long
allPriceUnit
;
/**
* 全包价体积单位
*/
...
...
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/coupon/ZTestMapper3.java
0 → 100644
View file @
370dc895
package
cn
.
iocoder
.
yudao
.
module
.
product
.
dal
.
mysql
.
coupon
;
import
cn.iocoder.yudao.framework.mybatis.core.mapper.AbstractMapper
;
import
cn.iocoder.yudao.module.product.dal.dataobject.coupon.zTest3
;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
ZTestMapper3
extends
AbstractMapper
<
zTest3
>
{
}
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/dto/ProdCostDto.java
View file @
370dc895
...
...
@@ -81,6 +81,7 @@ public class ProdCostDto {
*/
private
Long
freightVolume
;
//返回给前端页面的清关价
@ApiModelProperty
(
value
=
"商品清关费单价(成交)"
)
private
BigDecimal
oneClearanceFee
;
...
...
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/service/product/impl/ProductPriceStepServiceImpl.java
View file @
370dc895
...
...
@@ -58,9 +58,15 @@ public class ProductPriceStepServiceImpl extends AbstractService<ProductPriceSte
);
}
//获取阶梯价
@Override
public
BasePrice
getProductPriceStep
(
Long
productPriceId
,
BigDecimal
num
,
Integer
priceType
)
{
List
<
ProductPriceStepDO
>
list
=
this
.
list
(
new
LambdaQueryWrapperX
<
ProductPriceStepDO
>()
public
BasePrice
getProductPriceStep
(
Long
productPriceId
,
BigDecimal
num
,
Integer
priceType
)
{
//0-运费,1-全包价, 2-清关费
List
<
ProductPriceStepDO
>
list
=
this
.
list
(
new
LambdaQueryWrapperX
<
ProductPriceStepDO
>()
.
eq
(
ProductPriceStepDO:
:
getProductPriceId
,
productPriceId
)
.
eq
(
ProductPriceStepDO:
:
getPriceType
,
priceType
)
.
eq
(
ProductPriceStepDO:
:
getDeleted
,
0
)
...
...
@@ -72,7 +78,10 @@ public class ProductPriceStepServiceImpl extends AbstractService<ProductPriceSte
if
(
CollectionUtil
.
isEmpty
(
list
)){
productPriceEmptyType
=
1
;
}
else
{
ProductPriceStepDO
priceStepDO
=
list
.
stream
().
filter
(
priceStep
->
priceStep
.
getStartNum
().
compareTo
(
num
)
<=
0
&&
priceStep
.
getEndNum
().
compareTo
(
num
)
>=
0
).
findFirst
().
orElse
(
null
);
ProductPriceStepDO
priceStepDO
=
list
.
stream
().
filter
(
priceStep
->
priceStep
.
getStartNum
().
compareTo
(
num
)
<=
0
&&
priceStep
.
getEndNum
().
compareTo
(
num
)
>=
0
).
findFirst
().
orElse
(
null
);
basePrice
=
new
BasePrice
();
if
(
Objects
.
isNull
(
priceStepDO
)){
productPriceEmptyType
=
2
;
...
...
yudao-module-product/yudao-module-product-rest/src/main/java/cn/iocoder/yudao/module/product/controller/admin/prod/ProdLinePriceController.java
View file @
370dc895
...
...
@@ -2,11 +2,13 @@ package cn.iocoder.yudao.module.product.controller.admin.prod;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.iocoder.yudao.framework.common.pojo.CommonResult
;
import
cn.iocoder.yudao.framework.common.util.json.JsonUtils
;
import
cn.iocoder.yudao.module.product.component.ProdCostCalculation
;
import
cn.iocoder.yudao.module.product.dto.CalculationCostResultDto
;
import
cn.iocoder.yudao.module.product.param.ConditionParam
;
import
cn.iocoder.yudao.module.product.param.ProdConditionParam
;
import
cn.iocoder.yudao.module.product.service.coupon.CouponService
;
import
com.alibaba.fastjson.JSON
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -44,11 +46,20 @@ public class ProdLinePriceController {
public
CommonResult
<
CalculationCostResultDto
>
calculationProdCost
(
@RequestBody
ConditionParam
param
)
{
//lanbm 2024-06-20 记录的参数日志
//String listToString = JSON.toJSONString(param);
//JsonUtils.SaveLog(listToString);
if
(
CollectionUtil
.
isEmpty
(
param
.
getProdConditionParamList
()))
{
return
error
(
ORDER_ITEM_PROD_NOT_EXISTS
);
}
// 前端实时计价时需要将订单的固定价格参数进行格式化,转为未定价,否则不会去查询当前实时价格
param
.
setProdConditionParamList
(
param
.
getProdConditionParamList
().
stream
().
peek
(
it
->
it
.
setIsPriced
(
false
)).
collect
(
Collectors
.
toList
()));
param
.
setProdConditionParamList
(
param
.
getProdConditionParamList
().
stream
().
peek
(
it
->
it
.
setIsPriced
(
false
)).
collect
(
Collectors
.
toList
()));
//获取价格信息 lanbm 2024-06-20 添加注释
List
<
ProdConditionParam
>
prodConditionParams
=
prodCostCalculation
.
obtainProdLineOnePrice
(
param
.
getProdConditionParamList
(),
...
...
@@ -59,6 +70,7 @@ public class ProdLinePriceController {
param
.
getLineId
(),
param
.
getChannelId
(),
false
);
CalculationCostResultDto
dto
=
prodCostCalculation
.
calculationProdCost
(
prodConditionParams
,
""
,
...
...
yudao-module-wealth/yudao-module-wealth-rest/src/main/java/cn/iocoder/yudao/module/wealth/controller/admin/receivable/ReceivableController.java
View file @
370dc895
...
...
@@ -63,7 +63,9 @@ public class ReceivableController {
@GetMapping
(
"/getReceivableListByOrderId"
)
@ApiOperation
(
"根据订单ID获得应收款列表"
)
@ApiImplicitParam
(
name
=
"id"
,
value
=
"订单ID"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
public
CommonResult
<
List
<
ReceivableBackVO
>>
getReceivableListByOrderId
(
@RequestParam
(
"id"
)
Long
id
)
{
public
CommonResult
<
List
<
ReceivableBackVO
>>
getReceivableListByOrderId
(
@RequestParam
(
"id"
)
Long
id
)
{
//lanbm 2024-06-20 添加注释
return
success
(
receivableService
.
getReceivableListByOrderId
(
id
));
}
...
...
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