Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ufo
/
ufo-platform
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
caoyan
6 years ago
Commit
8ca4726d1fa09aac42855f1da8e9a63fd6ff686b
1 parent
4f824bd0
确认收货优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
order/src/main/java/com/yoho/ufo/order/controller/BuyerOrderController.java
order/src/main/java/com/yoho/ufo/order/controller/BuyerOrderController.java
View file @
8ca4726
...
...
@@ -9,7 +9,6 @@ import org.apache.commons.lang3.StringUtils;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -78,6 +77,9 @@ public class BuyerOrderController {
@RequestMapping
(
value
=
"/batchConfirmReceive"
)
public
ApiResponse
batchConfirmReceive
(
BuyerOrderReq
req
)
{
LOGGER
.
info
(
"batchConfirmReceive in. req is {}"
,
req
);
if
(
StringUtils
.
isEmpty
(
req
.
getSellerWaybillCode
())){
return
new
ApiResponse
.
ApiResponseBuilder
().
code
(
400
).
message
(
"卖家快递单号不能为空"
).
build
();
}
buyerOrderService
.
batchConfirmReceive
(
req
);
return
new
ApiResponse
.
ApiResponseBuilder
().
code
(
200
).
message
(
"确认收货成功"
).
build
();
}
...
...
@@ -347,7 +349,7 @@ public class BuyerOrderController {
}
@RequestMapping
(
value
=
"/queryByOrderCodeOrWaybillCode"
)
public
ApiResponse
queryByOrderCodeOrWaybillCode
(
@RequestBody
BuyerOrderReq
req
)
{
public
ApiResponse
queryByOrderCodeOrWaybillCode
(
BuyerOrderReq
req
)
{
LOGGER
.
info
(
"queryByOrderCodeOrWaybillCode in. queryStr is {}"
,
req
.
getQueryStr
());
PageResponseBO
<
BuyerOrderResp
>
result
=
buyerOrderService
.
queryByOrderCodeOrWaybillCode
(
req
.
getQueryStr
());
return
new
ApiResponse
.
ApiResponseBuilder
().
code
(
200
).
message
(
"查询成功"
).
data
(
result
).
build
();
...
...
@@ -430,6 +432,9 @@ public class BuyerOrderController {
@RequestMapping
(
value
=
"/queryByWaybillCode4Qc"
)
public
ApiResponse
queryByWaybillCode4Qc
(
BuyerOrderReq
req
)
{
LOGGER
.
info
(
"queryByWaybillCode4Qc in. queryStr is {}"
,
req
.
getSellerWaybillCode
());
if
(
StringUtils
.
isEmpty
(
req
.
getSellerWaybillCode
())){
return
new
ApiResponse
.
ApiResponseBuilder
().
code
(
400
).
message
(
"卖家快递单号不能为空"
).
build
();
}
JSONObject
result
=
buyerOrderService
.
queryOrderBySellerWaybillCodeForQc
(
req
.
getSellerWaybillCode
());
return
new
ApiResponse
.
ApiResponseBuilder
().
code
(
200
).
message
(
"查询成功"
).
data
(
result
).
build
();
}
...
...
Please
register
or
login
to post a comment