Commit a15fc5d7 by caosy

APP 会员专享

parent e4a9fcac
......@@ -101,7 +101,14 @@ public abstract class AbstractOrderService<H extends AbstractOrderBean<T>, T> ex
private UserExtService userExtService = null;
/**
* 980
*/
private BigDecimal COMMUNE_AMOUNT = BigDecimal.valueOf(980);
/**
* 360
*/
private BigDecimal COMMUNE_AMOUNT2 = BigDecimal.valueOf(360);
protected abstract void sendMessage(Order order, int messageId);
......@@ -231,6 +238,9 @@ public abstract class AbstractOrderService<H extends AbstractOrderBean<T>, T> ex
}
public Response<PlaceOrderResponseBean> placeOrder(H abstractOrderBean) throws Exception{
if( abstractOrderBean.getAmount().compareTo(COMMUNE_AMOUNT)==0 || abstractOrderBean.getAmount().compareTo(COMMUNE_AMOUNT2)==0){
abstractOrderBean.setOrderSource(13);
}
this.checkParameters(abstractOrderBean);
if (this.beforePlaceOrder(abstractOrderBean)) {
this.adjustOrderPayAmount(abstractOrderBean);
......
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 sign in to comment