Commit 7016bed3 authored by zhangzc's avatar zhangzc

添加运单回单接口

parent 3d6d8e5b
......@@ -56,6 +56,14 @@ public interface TmsWaybillInterface {
@PostMapping(value = "tms/waybill/sign")
JSONObject sign(JSONObject bodyJson);
/**
* 运单回单
* @param bodyJson
* @return
*/
@PostMapping(value = "tms/waybill/receipt")
JSONObject receipt(JSONObject bodyJson);
/**
* 模糊搜索
* @param bodyJson
......
......@@ -142,7 +142,7 @@ public class OwnerWaybillController {
@PostMapping("/sign")
public EResponse sign(@RequestBody(required=false) @Validated(ValidatorDetail.class) WaybillQueryForm waybillQueryForm) {
// 调用上传发货单据接口
// 调用运单签收接口
JSONObject reqJson = new JSONObject();
reqJson.put("id", waybillQueryForm.getWaybillId());
log.info(reqJson.toJSONString());
......@@ -156,6 +156,30 @@ public class OwnerWaybillController {
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 运单搜索
* param waybillQueryForm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment