Commit c0df28ff by caosy

360 980 订单名称

parent 4597af45
...@@ -291,6 +291,7 @@ public abstract class AbstractOrderService<H extends AbstractOrderBean<T>, T> ex ...@@ -291,6 +291,7 @@ public abstract class AbstractOrderService<H extends AbstractOrderBean<T>, T> ex
ResponseMp<JSONObject> response = new ResponseMp<JSONObject>(); ResponseMp<JSONObject> response = new ResponseMp<JSONObject>();
JSONObject jSONObject = new JSONObject(); JSONObject jSONObject = new JSONObject();
try { try {
jSONObject = WeiXinAtcion.weixinPlay(userExt.getMiniAppOpenId(),needPayAmount.multiply(new BigDecimal("100")).intValue(), order.getOrderNo()+"", this.getNotifyUrlForWeiXinPay(order), "dingqiu"); jSONObject = WeiXinAtcion.weixinPlay(userExt.getMiniAppOpenId(),needPayAmount.multiply(new BigDecimal("100")).intValue(), order.getOrderNo()+"", this.getNotifyUrlForWeiXinPay(order), "dingqiu");
jSONObject.put("needWXPay", true); jSONObject.put("needWXPay", true);
......
...@@ -269,6 +269,10 @@ public class CommuneOrderService extends AbstractOrderService<CommuneOrderBean, ...@@ -269,6 +269,10 @@ public class CommuneOrderService extends AbstractOrderService<CommuneOrderBean,
public JSONObject placeOrderForMiniApp(CommuneOrderBean communeOrderBean) throws Exception{ public JSONObject placeOrderForMiniApp(CommuneOrderBean communeOrderBean) throws Exception{
this.checkParameters(communeOrderBean); this.checkParameters(communeOrderBean);
if (this.beforePlaceOrder(communeOrderBean)) { if (this.beforePlaceOrder(communeOrderBean)) {
if(communeOrderBean.getActivityId() != 0 ){
BuyVoucherActivity buyoucherActivity = buyVoucherActivityDao.findById(communeOrderBean.getActivityId());
communeOrderBean.setOrderName(buyoucherActivity.getActivityName());
}
Order order = this.saveOrder(communeOrderBean); Order order = this.saveOrder(communeOrderBean);
this.saveOrderItems(communeOrderBean, order.getOrderId()); this.saveOrderItems(communeOrderBean, order.getOrderId());
UserExt userExt = getUserExtDao().getByUid(communeOrderBean.getUid()); UserExt userExt = getUserExtDao().getByUid(communeOrderBean.getUid());
......
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