|
@ -62,7 +62,7 @@ public class SFExpressController extends BaseController {
|
|
|
@ResponseBody
|
|
|
@ApiOperation("向顺丰快递下订单")
|
|
|
public String SFOrderService(
|
|
|
@ApiParam(name="prescriptionCode", value="订单编号(处方编号)") @RequestParam(value = "prescriptionCode",required = true) String prescriptionCode
|
|
|
@ApiParam(name="prescriptionCode", value="处方编号") @RequestParam(value = "prescriptionCode",required = true) String prescriptionCode
|
|
|
// @ApiParam(name="j_company", value="寄件方公司名称") @RequestParam(value = "j_company") String j_company,
|
|
|
// @ApiParam(name="j_contact", value="寄件方联系人") @RequestParam(value = "j_contact") String j_contact,
|
|
|
// @ApiParam(name="j_tel", value="寄件方联系电话") @RequestParam(value = "j_tel") String j_tel,
|
|
@ -88,9 +88,9 @@ public class SFExpressController extends BaseController {
|
|
|
return write(-1, "顺丰快递下单失败,未找到该处方的派送地址!");
|
|
|
}
|
|
|
|
|
|
//先判断地址是否可派送
|
|
|
boolean delivery = sfexpressService.getSFOrderFilterService(sfexpress_obj.getProvinceName()+sfexpress_obj.getCityName()+sfexpress_obj.getTownName()+sfexpress_obj.getAddress());
|
|
|
|
|
|
//先判断地址是否可派送
|
|
|
if(delivery){
|
|
|
// sfexpress_obj.setCode("SF"+UUID.randomUUID().toString().replace("-",""));
|
|
|
// sfexpress_obj.setPrescriptionCode(prescriptionCode);
|
|
@ -108,8 +108,8 @@ public class SFExpressController extends BaseController {
|
|
|
//请求顺丰接口下单,成功下单后,返回快递单号
|
|
|
sfexpress_obj = sfexpressService.postSFOrderService(sfexpress_obj);
|
|
|
|
|
|
//保存处方物流记录
|
|
|
prescriptionExpressageService.addPrescriptionExpressage(sfexpress_obj,getUID());
|
|
|
//保存快递单号和增加处方物流记录为配送
|
|
|
prescriptionExpressageService.updatePrescriptionExpressage(sfexpress_obj,getUID());
|
|
|
|
|
|
return write(200, "顺丰快递下单成功!");
|
|
|
}else{
|
|
@ -123,5 +123,18 @@ public class SFExpressController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value="/SFOrderService",method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("通过快递单号或者业务订单号查询包裹路由信息")
|
|
|
public String SFRouteService(
|
|
|
@ApiParam(name="tracking_number", value="快递单号或者订单编号") @RequestParam(value = "tracking_number",required = true) String tracking_number,
|
|
|
@ApiParam(name="tracking_type", value="查询号类别:1为快递单号,2为订单编号") @RequestParam(value = "tracking_type",required = true) Integer tracking_type){
|
|
|
|
|
|
//1.先从本地获取
|
|
|
|
|
|
return "";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|