...
|
...
|
@@ -6,6 +6,7 @@ import com.yoho.error.ServiceError; |
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yohobuy.ufo.model.order.bo.*;
|
|
|
import com.yohobuy.ufo.model.order.common.*;
|
|
|
import com.yohobuy.ufo.model.order.constants.ConfirmDesc;
|
|
|
import com.yohobuy.ufo.model.order.constants.SkupType;
|
|
|
import com.yohobuy.ufo.model.order.req.*;
|
|
|
import com.yohobuy.ufo.model.order.resp.*;
|
...
|
...
|
@@ -855,7 +856,39 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi |
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
private final static String FLAG_PRE = "#*", FLAG_SUFFIX = "*#";
|
|
|
/**
|
|
|
* 您确定取消出售吗?取消后将根据《卖家须知》扣除对应保证金作为赔偿打入卖家账户
|
|
|
* “扣除对应保证金” 加粗标红
|
|
|
* @version 6.8.6
|
|
|
* @return
|
|
|
*/
|
|
|
public OrderCancelComputeResult cancelConfirm(SellerOrderCancelReq req){
|
|
|
log.info("seller self cancel order Confirm ,req {}", req);
|
|
|
int uid = req.getUid();
|
|
|
long orderCode = req.getOrderCode();
|
|
|
|
|
|
if (uid <= 0 || orderCode <= 0L){
|
|
|
throw new ServiceException(ServiceError.ORDER_REQUEST_PARM_IS_EMPTY);
|
|
|
}
|
|
|
CodeMeta codeMeta = orderCodeGenerator.expId(orderCode);
|
|
|
if (Objects.isNull(codeMeta)){
|
|
|
log.warn("seller cancel Confirm orderCode illegal, req {}", req);
|
|
|
throw new ServiceException(ServiceError.ORDER_REQUEST_PARM_IS_EMPTY);
|
|
|
}
|
|
|
OrderCodeType codeType = OrderCodeType.getOrderCodeType(codeMeta.getType());
|
|
|
log.info("in seller cancel Confirm uid {},orderCode {}, actor {}", uid, orderCode, codeType);
|
|
|
OrderCancelComputeResult occr = new OrderCancelComputeResult();
|
|
|
if (OrderCodeType.SELLER_TYPE.equals(codeType)){
|
|
|
occr.setConfirmDesc(ConfirmDesc.SELF_BEFORE_PAY);
|
|
|
}
|
|
|
|
|
|
if (OrderCodeType.BUYER_TYPE.equals(codeType)){
|
|
|
String confirmDesc = "您确定取消出售吗?取消后将根据《卖家须知》"+ FLAG_PRE +"扣除对应保证金"+ FLAG_SUFFIX + "作为赔偿打入卖家账户";
|
|
|
occr.setConfirmDesc(confirmDesc);
|
|
|
}
|
|
|
return occr;
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|