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
4a47291a
Commit
4a47291a
authored
Mar 11, 2025
by
Smile
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求134后台-集运-包裹列表-转运
parent
abaa0888
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
6 deletions
+39
-6
20250311.sql
sql/cons_sql/20250311.sql
+4
-0
OrderDO.java
...oder/yudao/module/order/dal/dataobject/order/OrderDO.java
+6
-0
ConsServiceImpl.java
...oder/yudao/module/order/service/cons/ConsServiceImpl.java
+17
-6
OrderBackVO.java
...a/cn/iocoder/yudao/module/order/vo/order/OrderBackVO.java
+6
-0
OrderBaseVO.java
...a/cn/iocoder/yudao/module/order/vo/order/OrderBaseVO.java
+6
-0
No files found.
sql/cons_sql/20250311.sql
0 → 100644
View file @
4a47291a
ALTER
TABLE
ecw_order
ADD
COLUMN
transfer_source
TINYINT
NULL
COMMENT
'转运来源,0-客户申请,1-后台申请'
,
ADD
COLUMN
transfer_price_confirmation_status
TINYINT
NULL
COMMENT
'转运价格确认状态,0-未生成,1-待确认,2-已确认'
;
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dal/dataobject/order/OrderDO.java
View file @
4a47291a
...
...
@@ -700,4 +700,10 @@ public class OrderDO extends BaseDO {
@ApiModelProperty
(
value
=
"日志描述信息传值封装字段"
)
@TableField
(
exist
=
false
)
private
String
msg
=
""
;
@ApiModelProperty
(
value
=
"转运来源,0-客户申请,1-后台申请"
)
private
Integer
transferSource
;
@ApiModelProperty
(
value
=
"转运价格确认状态,0-未生成,1-待确认,2-已确认"
)
private
Integer
transferPriceConfirmationStatus
;
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/cons/ConsServiceImpl.java
View file @
4a47291a
...
...
@@ -9,6 +9,7 @@ import cn.iocoder.yudao.framework.mybatis.core.util.MyBatisUtils;
import
cn.iocoder.yudao.framework.mybatis.core.vo.PageVO
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customerContacts.CustomerContactsDO
;
import
cn.iocoder.yudao.module.customer.service.customerContacts.CustomerContactsService
;
import
cn.iocoder.yudao.module.depository.dal.mysql.warehouse.WarehouseLineMapper
;
import
cn.iocoder.yudao.module.depository.dto.LogisticsInfoDto
;
import
cn.iocoder.yudao.module.order.convert.cons.ConsConvert
;
import
cn.iocoder.yudao.module.order.dal.dataobject.cons.ConsDO
;
...
...
@@ -30,10 +31,8 @@ import cn.iocoder.yudao.module.order.vo.orderConsignor.OrderConsignorBackVO;
import
cn.iocoder.yudao.module.order.vo.orderItem.OrderItemBackVO
;
import
cn.iocoder.yudao.module.product.dal.dataobject.product.ProductDO
;
import
cn.iocoder.yudao.module.product.dal.mysql.product.ProductMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
org.apache.commons.lang3.StringUtils
;
import
org.checkerframework.checker.units.qual.C
;
import
org.redisson.api.RAtomicLong
;
import
org.redisson.api.RLock
;
import
org.redisson.api.RedissonClient
;
...
...
@@ -49,6 +48,7 @@ import java.util.concurrent.TimeUnit;
import
java.util.stream.Collectors
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
exception
.
util
.
ServiceExceptionUtil
.
exception
;
import
static
cn
.
iocoder
.
yudao
.
module
.
order
.
enums
.
ErrorCodeConstants
.
NOT_FIND_LOGISTICS_INFO
;
/**
* 集运包裹主 Service 实现类
...
...
@@ -80,6 +80,9 @@ public class ConsServiceImpl extends AbstractService<ConsMapper, ConsDO> impleme
@Resource
private
CustomerContactsService
customerContactsService
;
@Resource
private
WarehouseLineMapper
warehouseLineMapper
;
@Override
@Transactional
public
Long
createCons
(
ConsCreateReqVO
createReqVO
)
{
...
...
@@ -383,6 +386,9 @@ public class ConsServiceImpl extends AbstractService<ConsMapper, ConsDO> impleme
orderBackVO
.
setIsCargoControl
(
false
);
orderBackVO
.
setCustomsType
(
1
);
orderBackVO
.
setWarehouseType
(
1
);
orderBackVO
.
setIsCollection
(
false
);
orderBackVO
.
setType
(
"1"
);
orderBackVO
.
setDrawee
(
2
);
LogisticsInfoDto
logisticsInfo
=
new
LogisticsInfoDto
();
List
<
ConsItemDO
>
consItemDOS
=
consItemService
.
selectList
(
new
LambdaQueryWrapperX
<
ConsItemDO
>().
in
(
ConsItemDO:
:
getConsId
,
ids
));
List
<
OrderItemBackVO
>
orderItemVOList
=
new
ArrayList
<>();
...
...
@@ -433,13 +439,18 @@ public class ConsServiceImpl extends AbstractService<ConsMapper, ConsDO> impleme
if
(
consDO
.
getTransportId
()
!=
null
&&
orderBackVO
.
getTransportId
()
==
null
)
{
orderBackVO
.
setTransportId
(
consDO
.
getTransportId
());
}
if
(
consDO
.
getWarehouseLineId
()
!=
null
&&
logisticsInfo
.
getLineId
()
==
null
)
{
if
(
consDO
.
getWarehouseLineId
()!=
null
&&
logisticsInfo
.
getLineId
()==
null
){
logisticsInfo
=
warehouseLineMapper
.
getStartInfoAndDestInfoByLineId
(
consDO
.
getWarehouseLineId
());
if
(
Objects
.
isNull
(
logisticsInfo
))
{
throw
exception
(
NOT_FIND_LOGISTICS_INFO
);
}
logisticsInfo
.
setLineId
(
consDO
.
getWarehouseLineId
());
logisticsInfo
.
setDestCityId
(
consDO
.
getConsigneeCityId
());
logisticsInfo
.
setDestCountryId
(
consDO
.
getConsigneeCountryId
());
logisticsInfo
.
setTransportId
(
consDO
.
getTransportId
());
orderBackVO
.
setLogisticsInfoDto
(
logisticsInfo
);
orderBackVO
.
setLineId
(
consDO
.
getWarehouseLineId
());
orderBackVO
.
setObjectiveId
(
consDO
.
getConsigneeCityId
());
orderBackVO
.
setObjectiveId
(
logisticsInfo
.
getDestCityId
());
orderBackVO
.
setDepartureId
(
logisticsInfo
.
getStartCityId
());
}
//包裹内商品处理
List
<
ConsItemDO
>
consItemDOList
=
consItemsMap
.
get
(
consDO
.
getId
());
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderBackVO.java
View file @
4a47291a
...
...
@@ -662,6 +662,12 @@ public class OrderBackVO {
@ApiModelProperty
(
value
=
"到仓重量"
)
private
BigDecimal
checkWeight
;
@ApiModelProperty
(
value
=
"转运来源,0-客户申请,1-后台申请"
)
private
Integer
transferSource
;
@ApiModelProperty
(
value
=
"转运价格确认状态,0-未生成,1-待确认,2-已确认"
)
private
Integer
transferPriceConfirmationStatus
;
public
void
setExternalWarehouseJson
(
String
externalWarehouseJson
)
{
this
.
externalWarehouseJson
=
externalWarehouseJson
;
if
(
StringUtils
.
isNotBlank
(
externalWarehouseJson
))
{
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderBaseVO.java
View file @
4a47291a
...
...
@@ -402,6 +402,12 @@ public class OrderBaseVO {
@ApiModelProperty
(
value
=
"到仓重量"
)
private
BigDecimal
checkWeight
;
@ApiModelProperty
(
value
=
"转运来源,0-客户申请,1-后台申请"
)
private
Integer
transferSource
;
@ApiModelProperty
(
value
=
"转运价格确认状态,0-未生成,1-待确认,2-已确认"
)
private
Integer
transferPriceConfirmationStatus
;
public
void
setExceptionReason
(
String
exceptionReason
)
{
this
.
exceptionReason
=
StringUtils
.
isNotBlank
(
exceptionReason
)
?
I18nMessage
.
getMessage
(
exceptionReason
)
:
exceptionReason
;
}
...
...
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