Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
app-service
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
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SuperHive
back-end
app-service
Commits
7016bed3
Commit
7016bed3
authored
Jun 18, 2020
by
zhangzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加运单回单接口
parent
3d6d8e5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
TmsWaybillInterface.java
...n/java/com/esv/freight/app/feign/TmsWaybillInterface.java
+8
-0
OwnerWaybillController.java
...app/module/waybill/controller/OwnerWaybillController.java
+25
-1
No files found.
src/main/java/com/esv/freight/app/feign/TmsWaybillInterface.java
View file @
7016bed3
...
@@ -56,6 +56,14 @@ public interface TmsWaybillInterface {
...
@@ -56,6 +56,14 @@ public interface TmsWaybillInterface {
@PostMapping
(
value
=
"tms/waybill/sign"
)
@PostMapping
(
value
=
"tms/waybill/sign"
)
JSONObject
sign
(
JSONObject
bodyJson
);
JSONObject
sign
(
JSONObject
bodyJson
);
/**
* 运单回单
* @param bodyJson
* @return
*/
@PostMapping
(
value
=
"tms/waybill/receipt"
)
JSONObject
receipt
(
JSONObject
bodyJson
);
/**
/**
* 模糊搜索
* 模糊搜索
* @param bodyJson
* @param bodyJson
...
...
src/main/java/com/esv/freight/app/module/waybill/controller/OwnerWaybillController.java
View file @
7016bed3
...
@@ -142,7 +142,7 @@ public class OwnerWaybillController {
...
@@ -142,7 +142,7 @@ public class OwnerWaybillController {
@PostMapping
(
"/sign"
)
@PostMapping
(
"/sign"
)
public
EResponse
sign
(
@RequestBody
(
required
=
false
)
@Validated
(
ValidatorDetail
.
class
)
WaybillQueryForm
waybillQueryForm
)
{
public
EResponse
sign
(
@RequestBody
(
required
=
false
)
@Validated
(
ValidatorDetail
.
class
)
WaybillQueryForm
waybillQueryForm
)
{
// 调用
上传发货单据
接口
// 调用
运单签收
接口
JSONObject
reqJson
=
new
JSONObject
();
JSONObject
reqJson
=
new
JSONObject
();
reqJson
.
put
(
"id"
,
waybillQueryForm
.
getWaybillId
());
reqJson
.
put
(
"id"
,
waybillQueryForm
.
getWaybillId
());
log
.
info
(
reqJson
.
toJSONString
());
log
.
info
(
reqJson
.
toJSONString
());
...
@@ -156,6 +156,30 @@ public class OwnerWaybillController {
...
@@ -156,6 +156,30 @@ public class OwnerWaybillController {
return
EResponse
.
ok
();
return
EResponse
.
ok
();
}
}
/**
* description 运单回单
* param waybillQueryForm
* return com.esv.freight.common.response.EResponse
* author 张志臣
* createTime 2020/06/18 14:32
**/
@PostMapping
(
"/receipt"
)
public
EResponse
receipt
(
@RequestBody
(
required
=
false
)
@Validated
(
ValidatorDetail
.
class
)
WaybillQueryForm
waybillQueryForm
)
{
// 调用运单回单接口
JSONObject
reqJson
=
new
JSONObject
();
reqJson
.
put
(
"id"
,
waybillQueryForm
.
getWaybillId
());
log
.
info
(
reqJson
.
toJSONString
());
JSONObject
result
=
tmsWaybillInterface
.
receipt
(
reqJson
);
log
.
info
(
result
.
toJSONString
());
if
(
result
.
getInteger
(
"code"
)
!=
200
)
{
return
EResponse
.
error
(
result
.
getInteger
(
"code"
),
result
.
getString
(
"message"
));
}
return
EResponse
.
ok
();
}
/**
/**
* description 运单搜索
* description 运单搜索
* param waybillQueryForm
* param waybillQueryForm
...
...
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