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
f20933e7
Commit
f20933e7
authored
Dec 11, 2024
by
Smile
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 放货收货人创建赋值不完整缺少常用网点修改
parent
4ccb3110
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
CustomerApiImpl.java
...er/yudao/module/customer/service/api/CustomerApiImpl.java
+7
-4
OrderCargoControlPickServiceImpl.java
...derCargoControlPick/OrderCargoControlPickServiceImpl.java
+6
-1
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/api/CustomerApiImpl.java
View file @
f20933e7
...
@@ -97,16 +97,19 @@ public class CustomerApiImpl implements CustomerApi {
...
@@ -97,16 +97,19 @@ public class CustomerApiImpl implements CustomerApi {
}
}
public
void
associateCargoCustomerAuto
(
Integer
transTypeId
,
String
areaCode
,
String
phone
,
String
newName
,
String
email
)
{
public
void
associateCargoCustomerAuto
(
String
destTitleEn
,
Integer
transTypeId
,
String
areaCode
,
String
phone
,
String
newName
,
String
email
)
{
//先查询此用户是否有关联老客户
//先查询此用户是否有关联老客户
CustomerContactsDO
customerContactsDO
=
customerContactsService
.
getUniqueOneAndValidate
(
areaCode
,
phone
,
null
);
CustomerContactsDO
customerContactsDO
=
customerContactsService
.
getUniqueOneAndValidate
(
areaCode
,
phone
,
null
);
if
(
customerContactsDO
==
null
)
{
if
(
customerContactsDO
==
null
)
{
CustomerCreateReqVO
customerCreateReqVO
=
new
CustomerCreateReqVO
();
CustomerCreateReqVO
customerCreateReqVO
=
new
CustomerCreateReqVO
();
DictDataRespDTO
transPortTypeDictDataRespDTO
=
DictFrameworkUtils
.
getDictDataFromCache
(
"transport_type"
,
String
.
valueOf
(
transTypeId
));
DictDataRespDTO
transPortTypeDictDataRespDTO
=
DictFrameworkUtils
.
getDictDataFromCache
(
"transport_type"
,
String
.
valueOf
(
transTypeId
));
DictDataRespDTO
customertTransPortTypeDictDataRespDTO
=
DictFrameworkUtils
.
parseDictDataFromCache
(
"customer_transport_type"
,
transPortTypeDictDataRespDTO
.
getLabel
());
DictDataRespDTO
customertTransPortTypeDictDataRespDTO
=
DictFrameworkUtils
.
parseDictDataFromCache
(
"customer_transport_type"
,
transPortTypeDictDataRespDTO
.
getLabel
());
String
value
=
customertTransPortTypeDictDataRespDTO
.
getValue
();
if
(
customertTransPortTypeDictDataRespDTO
!=
null
){
if
(
value
!=
null
){
customerCreateReqVO
.
setTransportType
(
customertTransPortTypeDictDataRespDTO
.
getValue
());
customerCreateReqVO
.
setTransportType
(
value
);
}
DictDataRespDTO
pickupPointDictDataRespDTO
=
DictFrameworkUtils
.
parseDictDataFromCache
(
"pickup_points"
,
destTitleEn
);
if
(
pickupPointDictDataRespDTO
!=
null
){
customerCreateReqVO
.
setPickupPoints
(
pickupPointDictDataRespDTO
.
getValue
());
}
}
//初始化名字为手机号
//初始化名字为手机号
customerCreateReqVO
.
setName
(
newName
);
customerCreateReqVO
.
setName
(
newName
);
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControlPick/OrderCargoControlPickServiceImpl.java
View file @
f20933e7
...
@@ -16,6 +16,7 @@ import cn.iocoder.yudao.module.bpm.api.BpmCreateServiceFactory;
...
@@ -16,6 +16,7 @@ import cn.iocoder.yudao.module.bpm.api.BpmCreateServiceFactory;
import
cn.iocoder.yudao.module.bpm.enums.WorkFlowEmus
;
import
cn.iocoder.yudao.module.bpm.enums.WorkFlowEmus
;
import
cn.iocoder.yudao.module.bpm.resp.TaskResp
;
import
cn.iocoder.yudao.module.bpm.resp.TaskResp
;
import
cn.iocoder.yudao.module.customer.service.api.CustomerApiImpl
;
import
cn.iocoder.yudao.module.customer.service.api.CustomerApiImpl
;
import
cn.iocoder.yudao.module.depository.dto.LogisticsInfoDto
;
import
cn.iocoder.yudao.module.ecw.api.internalMessage.ClientInternalMessageApi
;
import
cn.iocoder.yudao.module.ecw.api.internalMessage.ClientInternalMessageApi
;
import
cn.iocoder.yudao.module.ecw.api.internalMessage.dto.InternalMessageCreateDto
;
import
cn.iocoder.yudao.module.ecw.api.internalMessage.dto.InternalMessageCreateDto
;
import
cn.iocoder.yudao.module.ecw.api.paramValid.ParamValidatorApi
;
import
cn.iocoder.yudao.module.ecw.api.paramValid.ParamValidatorApi
;
...
@@ -32,6 +33,7 @@ import cn.iocoder.yudao.module.order.dal.mysql.approval.OrderApprovalMapper;
...
@@ -32,6 +33,7 @@ import cn.iocoder.yudao.module.order.dal.mysql.approval.OrderApprovalMapper;
import
cn.iocoder.yudao.module.order.dal.mysql.orderCargoControl.OrderCargoControlMapper
;
import
cn.iocoder.yudao.module.order.dal.mysql.orderCargoControl.OrderCargoControlMapper
;
import
cn.iocoder.yudao.module.order.dal.mysql.orderCargoControlPick.OrderCargoControlPickMapper
;
import
cn.iocoder.yudao.module.order.dal.mysql.orderCargoControlPick.OrderCargoControlPickMapper
;
import
cn.iocoder.yudao.module.order.dal.mysql.orderPickup.OrderPickupMapper
;
import
cn.iocoder.yudao.module.order.dal.mysql.orderPickup.OrderPickupMapper
;
import
cn.iocoder.yudao.module.order.dto.OrderBackInfoDto
;
import
cn.iocoder.yudao.module.order.dto.OrderCargoControlReleaseInfoDto
;
import
cn.iocoder.yudao.module.order.dto.OrderCargoControlReleaseInfoDto
;
import
cn.iocoder.yudao.module.order.param.OrderControlLogParam
;
import
cn.iocoder.yudao.module.order.param.OrderControlLogParam
;
import
cn.iocoder.yudao.module.order.service.order.OrderBusinessService
;
import
cn.iocoder.yudao.module.order.service.order.OrderBusinessService
;
...
@@ -341,8 +343,11 @@ public class OrderCargoControlPickServiceImpl extends AbstractService<OrderCargo
...
@@ -341,8 +343,11 @@ public class OrderCargoControlPickServiceImpl extends AbstractService<OrderCargo
// 订单控货信息日志补充
// 订单控货信息日志补充
orderBusinessService
.
createOrderControlLog
(
orderCargoControlPick
.
getOrderId
(),
4
,
"订单放货"
,
msg
,
0L
);
orderBusinessService
.
createOrderControlLog
(
orderCargoControlPick
.
getOrderId
(),
4
,
"订单放货"
,
msg
,
0L
);
orderBusinessService
.
addOrderOperateLog
(
orderCargoControlPick
.
getOrderId
(),
"订单放货"
,
msg
,
""
);
orderBusinessService
.
addOrderOperateLog
(
orderCargoControlPick
.
getOrderId
(),
"订单放货"
,
msg
,
""
);
OrderBackInfoDto
info
=
orderQueryService
.
info
(
orderDO
.
getOrderId
());
LogisticsInfoDto
logisticsInfoDto
=
info
.
getLogisticsInfoDto
();
String
destTitleEn
=
logisticsInfoDto
.
getDestAddressEn
();
//控货收货人自动创建客户
//控货收货人自动创建客户
customerApiImpl
.
associateCargoCustomerAuto
(
orderDO
.
getTransportId
(),
orderCargoControlPick
.
getConsigneeCountryCode
(),
orderCargoControlPick
.
getConsigneePhone
(),
orderCargoControlPick
.
getConsigneeName
(),
orderCargoControlPick
.
getConsigneeEmail
());
customerApiImpl
.
associateCargoCustomerAuto
(
destTitleEn
,
orderDO
.
getTransportId
(),
orderCargoControlPick
.
getConsigneeCountryCode
(),
orderCargoControlPick
.
getConsigneePhone
(),
orderCargoControlPick
.
getConsigneeName
(),
orderCargoControlPick
.
getConsigneeEmail
());
// 返回
// 返回
return
orderCargoControlPick
.
getId
();
return
orderCargoControlPick
.
getId
();
}
}
...
...
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