...
|
...
|
@@ -139,7 +139,7 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
saveExpress(sellerUid,expressCompanyId,orderCode,wayBillCode,expressType,depotNum);
|
|
|
|
|
|
// 发送mq获取物流信息
|
|
|
sendExpressMQ(sellerUid,expressCompanyId,orderCode,wayBillCode);
|
|
|
sendExpressMQ(sellerUid,expressCompanyId,orderCode,wayBillCode,appraiseAddressService.queryInitAddressByDepotNum(depotNum).getMobile());
|
|
|
psog = sellerOrderGoodsMapper.selectByPrimaryKey(skup);
|
|
|
LOGGER.info("deliverToDepot end ! send express to erp ");
|
|
|
inBoxFacade.sellerDeliver2Depot(buyerUid, orderCode, psog.getProductName());
|
...
|
...
|
@@ -157,47 +157,47 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void returnBack(Integer sellerUid,Integer expressCompanyId, Long orderCode, String wayBillCode,Integer depotNum){
|
|
|
public void returnBack(Integer sellerUid,Integer expressCompanyId, Long orderCode, String wayBillCode,Integer depotNum,String mobile){
|
|
|
Integer expressType = ExpressInfoConstant.EXPRESS_TYPE_REBACK;
|
|
|
|
|
|
LOGGER.info("returnBack expressCompanyId = {}, orderCode = {}, wayBillCode = {} " +
|
|
|
",expressType = {},depotNum={}", new Object[]{expressCompanyId, orderCode, wayBillCode,expressType,depotNum});
|
|
|
",expressType = {},depotNum={},mobile={}", new Object[]{expressCompanyId, orderCode, wayBillCode,expressType,depotNum,mobile});
|
|
|
|
|
|
// 保存订单物流信息
|
|
|
saveExpress(sellerUid,expressCompanyId,orderCode,wayBillCode,expressType,depotNum);
|
|
|
|
|
|
// 发送mq获取物流信息
|
|
|
sendExpressMQ(sellerUid,expressCompanyId,orderCode,wayBillCode);
|
|
|
sendExpressMQ(sellerUid,expressCompanyId,orderCode,wayBillCode,mobile);
|
|
|
LOGGER.info("returnBack end ! send express to erp ");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void appraiseFail(Integer sellerUid ,Integer expressCompanyId, Long orderCode, String wayBillCode,Integer depotNum) {
|
|
|
public void appraiseFail(Integer sellerUid ,Integer expressCompanyId, Long orderCode, String wayBillCode,Integer depotNum,String mobile) {
|
|
|
Integer expressType = ExpressInfoConstant.EXPRESS_TYPE_3;
|
|
|
|
|
|
LOGGER.info("appraiseFail expressCompanyId = {}, orderCode = {}, wayBillCode = {} " +
|
|
|
",expressType = {},depotNum={}", new Object[]{expressCompanyId, orderCode, wayBillCode,expressType,depotNum});
|
|
|
",expressType = {},depotNum={},mobile={}", new Object[]{expressCompanyId, orderCode, wayBillCode,expressType,depotNum,mobile});
|
|
|
|
|
|
// 保存订单物流信息
|
|
|
saveExpress(sellerUid,expressCompanyId,orderCode,wayBillCode,expressType,depotNum);
|
|
|
|
|
|
// 发送mq获取物流信息
|
|
|
sendExpressMQ(sellerUid,expressCompanyId,orderCode,wayBillCode);
|
|
|
sendExpressMQ(sellerUid,expressCompanyId,orderCode,wayBillCode,mobile);
|
|
|
LOGGER.info("appraiseFail end ! send express to erp ");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void appraiseSuccess(Integer uid,Integer expressCompanyId, Long orderCode, String wayBillCode,Integer depotNum) {
|
|
|
public void appraiseSuccess(Integer uid,Integer expressCompanyId, Long orderCode, String wayBillCode,Integer depotNum,String mobile) {
|
|
|
Integer expressType = ExpressInfoConstant.EXPRESS_TYPE_2;
|
|
|
|
|
|
LOGGER.info("appraiseSuccess expressCompanyId = {}, orderCode = {}, wayBillCode = {} " +
|
|
|
",expressType = {},depotNum={} ", new Object[]{expressCompanyId, orderCode, wayBillCode,expressType,depotNum});
|
|
|
",expressType = {},depotNum={},mobile={} ", new Object[]{expressCompanyId, orderCode, wayBillCode,expressType,depotNum,mobile});
|
|
|
|
|
|
// 保存订单物流信息
|
|
|
saveExpress(uid,expressCompanyId,orderCode,wayBillCode,expressType,depotNum);
|
|
|
|
|
|
// 发送mq获取物流信息
|
|
|
sendExpressMQ(uid,expressCompanyId,orderCode,wayBillCode);
|
|
|
sendExpressMQ(uid,expressCompanyId,orderCode,wayBillCode,mobile);
|
|
|
LOGGER.info("appraiseSuccess end ! send express to erp ");
|
|
|
}
|
|
|
|
...
|
...
|
@@ -227,13 +227,14 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
/**
|
|
|
* 发送mq消息,获取物流信息
|
|
|
*/
|
|
|
private void sendExpressMQ(Integer uid,Integer expressCompanyId,Long orderCode,String wayBillCode ){
|
|
|
private void sendExpressMQ(Integer uid,Integer expressCompanyId,Long orderCode,String wayBillCode,String mobile ){
|
|
|
ExpressForMqSend mqInfo=new ExpressForMqSend();
|
|
|
mqInfo.setExpressNumber(wayBillCode);
|
|
|
mqInfo.setExpressId(expressCompanyId);
|
|
|
mqInfo.setOrderCode(orderCode);
|
|
|
mqInfo.setUid(uid);
|
|
|
mqInfo.setBusinessType(5);
|
|
|
mqInfo.setMobile(mobile);
|
|
|
|
|
|
try{
|
|
|
ufoExpressInfoProducer.send(EXPRESS_MQ_SEND, mqInfo);
|
...
|
...
|
|