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
b5b5012d
Commit
b5b5012d
authored
Dec 31, 2024
by
wux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据放货ID生成客户信息
parent
eea7b5ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
OrderCargoControlPickService.java
...e/orderCargoControlPick/OrderCargoControlPickService.java
+5
-0
OrderCargoControlPickServiceImpl.java
...derCargoControlPick/OrderCargoControlPickServiceImpl.java
+9
-0
OrderCargoControlPickController.java
...rderCargoControlPick/OrderCargoControlPickController.java
+12
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControlPick/OrderCargoControlPickService.java
View file @
b5b5012d
...
...
@@ -165,4 +165,9 @@ public interface OrderCargoControlPickService extends IService<OrderCargoControl
* 查询控货订单列表统计
*/
StatisticsOrderVO
statisticsOrderControl
(
OrderQueryVO
query
);
/**
* 根据放货信息生成客户信息
*/
void
createCustomerByCargoControlPickId
(
OrderCargoControlPickDO
orderCargoControlPick
);
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControlPick/OrderCargoControlPickServiceImpl.java
View file @
b5b5012d
...
...
@@ -1547,4 +1547,13 @@ public class OrderCargoControlPickServiceImpl extends AbstractService<OrderCargo
return
orderCargoControlPickMapper
.
statisticsOrderControl
(
query
);
}
@Override
public
void
createCustomerByCargoControlPickId
(
OrderCargoControlPickDO
orderCargoControlPick
)
{
OrderDO
orderDO
=
orderService
.
getById
(
orderCargoControlPick
.
getOrderId
());
OrderBackInfoDto
info
=
orderQueryService
.
info
(
orderDO
.
getOrderId
());
LogisticsInfoDto
logisticsInfoDto
=
info
.
getLogisticsInfoDto
();
String
destTitleEn
=
logisticsInfoDto
.
getDestAddressEn
();
//控货收货人自动创建客户
customerApiImpl
.
associateCargoCustomerAuto
(
destTitleEn
,
orderDO
.
getTransportId
(),
orderCargoControlPick
.
getConsigneeCountryCode
(),
orderCargoControlPick
.
getConsigneePhone
(),
orderCargoControlPick
.
getConsigneeName
(),
orderCargoControlPick
.
getConsigneeEmail
());
}
}
yudao-module-order/yudao-module-order-rest/src/main/java/cn/iocoder/yudao/module/order/controller/admin/orderCargoControlPick/OrderCargoControlPickController.java
View file @
b5b5012d
...
...
@@ -221,4 +221,16 @@ public class OrderCargoControlPickController {
orderCargoControlPickService
.
cancelApprovalByOrderApprovalId
(
orderApprovalId
,
reason
);
return
success
(
Boolean
.
TRUE
);
}
@GetMapping
(
"create/customer/{id}"
)
@ApiOperation
(
"根据放货ID生成客户信息"
)
@ApiImplicitParam
(
name
=
"id"
,
value
=
"放货记录ID"
,
required
=
true
,
example
=
"1024"
,
dataType
=
"Long"
)
public
CommonResult
<
Boolean
>
createCustomerByCargoControlPickId
(
@PathVariable
(
value
=
"id"
)
Long
id
)
{
OrderCargoControlPickDO
orderCargoControlPickDO
=
orderCargoControlPickService
.
getById
(
id
);
if
(
Objects
.
isNull
(
orderCargoControlPickDO
))
{
throw
exception
(
ORDER_CARGO_CONTROL_PICK_NOT_EXISTS
);
}
orderCargoControlPickService
.
createCustomerByCargoControlPickId
(
orderCargoControlPickDO
);
return
success
(
true
);
}
}
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