...
|
...
|
@@ -27,6 +27,7 @@ import com.yohoufo.dal.order.*; |
|
|
import com.yohoufo.dal.order.model.*;
|
|
|
import com.yohoufo.order.common.ExpressForMqSend;
|
|
|
import com.yohoufo.order.constants.MetaKey;
|
|
|
import com.yohoufo.order.constants.SellerConfig;
|
|
|
import com.yohoufo.order.event.BuyerOrderSellerDeliveryCheckEvent;
|
|
|
import com.yohoufo.order.event.ErpBuyerOrderEvent;
|
|
|
import com.yohoufo.order.model.OperateTransferExpressInfo;
|
...
|
...
|
@@ -1127,12 +1128,34 @@ public class ExpressInfoServiceImpl implements IExpressInfoService { |
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
public AppraiseAddressResp noticeAppraiseAddressChanged(Integer uid, Long orderCode) {
|
|
|
public AppraiseAddressResp forceNoticeAppraiseAddress(Integer uid, Long orderCode) {
|
|
|
|
|
|
if (null == uid || orderCode == null) {
|
|
|
LOGGER.warn("in noticeAppraiseAddressChanged check in-param fail, uid {}, orderCode {}", uid, orderCode);
|
|
|
LOGGER.warn("in forceNoticeAppraiseAddress check in-param fail, uid {}, orderCode {}", uid, orderCode);
|
|
|
throw new ServiceException(ServiceError.ORDER_REQUEST_PARM_IS_EMPTY);
|
|
|
}
|
|
|
AppraiseAddressResp resp = null;
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectOnlyByOrderCode(orderCode);
|
|
|
if (Objects.isNull(buyerOrder)){
|
|
|
LOGGER.warn("in forceNoticeAppraiseAddress buyerOrder not exist,uid {}, orderCode {}", uid, orderCode);
|
|
|
return resp;
|
|
|
}
|
|
|
if(BuyerOrderUtils.isDeposit(buyerOrder)){
|
|
|
resp = getAppraiseAddressResp4Deposit(uid, orderCode);
|
|
|
}
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
private AppraiseAddressResp getAppraiseAddressResp4Deposit(Integer uid, Long orderCode){
|
|
|
LOGGER.info("in getAppraiseAddressResp4Deposit uid {}, orderCode {}", uid, orderCode);
|
|
|
AppraiseAddressResp resp = appraiseAddressService.findByDepotType(DepotType.NJ.getCode());
|
|
|
final String tips = SellerConfig.DELIVER2DEPOTTIPS4DEPOSITGOODS;
|
|
|
resp.setForceShow(true);
|
|
|
resp.setTips(tips);
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
private AppraiseAddressResp getAppraiseAddressResp4AddrressChange(int uid, long orderCode){
|
|
|
BuyerOrderGoods pbog = buyerOrderGoodsMapper.selectOnlyByOrderCode(orderCode);
|
|
|
if (Objects.isNull(pbog)){
|
|
|
LOGGER.warn("in noticeAppraiseAddressChanged BuyerOrderGoods not exist, uid {}, order code {}", uid, orderCode);
|
...
|
...
|
|